Results 1 to 3 of 3

Thread: nehe texture mapping

  1. #1
    Guest

    nehe texture mapping

    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

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2004
    Location
    greece
    Posts
    6

    Re: nehe texture mapping

    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

  3. #3
    Guest

    Re: nehe texture mapping

    Thanks very much

Similar Threads

  1. projective texture mapping and shadow mapping
    By phoenix_gl in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-08-2012, 08:00 PM
  2. questions on nehe texture map code
    By in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 10-30-2003, 05:22 AM
  3. Nehe Bump mapping tutorial question.
    By dabeav in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 08-01-2002, 12:26 PM
  4. Questions abt Nehe's tutorial 6(texture loading)
    By nicky in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 01-25-2002, 07:12 AM
  5. Texture Mapping / Environmental Mapping.
    By imported_Andrew in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-09-2000, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean