[try Beta version]
Not logged in

 
OpenGL texture not mapping

Dec 29, 2015 at 11:45pm
Decided to finally start learning 3D!

I'm able to draw 4 blue walls around the camera, but I'm unable to get a wood texture mapped onto it. The texture is 1024x1024. My LoadBitmap function seems to work fine, so the problem is probably how I'm setting everything up.

Can't get code insertion to work for some reason so I just posted it to http://pastebin.com/paiuY9pe
Dec 30, 2015 at 12:28am
You should use this great tutorial, it has a texture section - http://learnopengl.com/
Dec 30, 2015 at 12:33am
Sorry I can't help you Angeljruiz, but I do agree with TarikNeaj, that link teaches modern OpenGL and not the deprecated "immediate mode" OpenGL.

Would suggest https://www.opengl.org/discussion_boards/forum.php for better help, btw.
Dec 30, 2015 at 1:50am
Thanks :)
Topic archived. No new replies allowed.