View Full Version : nehe texture mapping

08-20-2004, 07:43 PM
Hey, I have been going through the NeHe tutorial and got up to Texture Mapping, I typed it all out into MSVC++ etc, compiled and ran the program but the texture did not show up, just a black screen.

Click down here to download the sourcecode

Any help would be great thanks! :)

08-20-2004, 08:29 PM
in your DrawGLScene,
change this:
glTranslatef(0.0f, 0.0f, 5.0f);
with this:
glTranslatef(0.0f, 0.0f, -5.0f);

you simply were drawing outside of the visible screen ;)

08-21-2004, 12:53 AM
Thanks very much :D