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 2 of 2

Thread: quick question about lights

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2000
    Location
    Johannesburg, Gauteng, South-Africa
    Posts
    11

    quick question about lights

    i've been wondering, if GL_MAX_LIGHTS = 8
    is there any way to set more allowed lights?

  2. #2
    Guest

    Re: quick question about lights

    the number of allowed lights is set by the implementation on your system (i think on sgi's it is more than 8).... so you cannot change it, but this limit means you can only use 8 lights at a time so you can do something like this

    in one portion of the scene set light 1's properties
    turn on light 1
    draw that portion
    turn off light 1
    set the proporties in a different portion of the scene
    turn on light 1
    draw the other portion

    so you could really have millions of lights (ha, ha) that effect only portions of the scene

Posting Permissions

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