PDA

View Full Version : nehe texture mapping



08-20-2004, 08: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
http://members.iinet.com.au/~jpsomers/nehe.rar

Any help would be great thanks! :)
-Jem

georgemarios
08-20-2004, 09: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, 01:53 AM
Thanks very much :D