Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Scale & Lights

  1. #1
    Guest

    Scale & Lights

    When I make a "scale" on a 3D shape (ex a sphere) happen that light on it change drastically... Exactly when I "enlarge" it, the sphere become darker while, when I "reduce" it, the sphere become very bright... Where is my error ? What can I do ?

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2000
    Posts
    26

    Re: Scale & Lights

    Use ...
    glEnable(GL_NORMALIZE);

    [CS]
    -<[CS]>-

  3. #3
    Junior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Lubbock, TX, USA
    Posts
    197

    Re: Scale & Lights

    or glEnable(GL_RESCALE_NORMALS) if available. Might be slightly faster then GL_NORMALIZE, depending on the OpenGL-implementation.

  4. #4
    Guest

    Re: Scale & Lights

    Thanks a lot!!!

    It works finally

    I love you !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •