Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: BionicBytes

Search: Search took 0.00 seconds.

  1. Have you used glScalef any where? If so your...

    Have you used glScalef any where? If so your normals will not be unit length. You may need glenable (GL_RESCALE_NORMAL) to fix it.
    There are usually only 4 reasons why FF lighting does not work as...
  2. Ah the fixed function lighting thing! With FF...

    Ah the fixed function lighting thing!
    With FF lighting the glLightv command MUST come after you have setup the camera - but BEFORE you alter the model aspect of it when drawing your models (eg...
  3. It looks like it's due to the way you have...

    It looks like it's due to the way you have calculated the normal. If you think about it, for this shape every triangle on the top of the cyslinder would have the same normal value (eg 0,1,0). It...
Results 1 to 3 of 3