Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jonnii

Lighting Questions :: OGL

This topic is 5838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, let me get this straight... Is it possible to have more than 8 lights in an opengl application...?? I''m asking this becuase i want to write a CLight class that encapsulates the light objects in a nice little package, but i''m thinking that i want these lights to be able to do all the cool new lighting tricks. It just seems that 8 lights seems a little limiting. Also, does the per pixel lighting stuff use a different kind of lighting technique than the opengl lights, and if so would it be better to mix and match both? thanks -jonnii

Share this post


Link to post
Share on other sites
Advertisement
That''s 8 lights per polygon; that''s a lot of lights . Turn off the lights that are far away from a surface/model/whatever, use the closest ones. Perpixel lighting is most commonly done with register combiners (NVidia) and fragment shaders (ATI).

Share this post


Link to post
Share on other sites
I think the OpenGL spec allows up to 32 lights, but most (if not all) implementations can only do 8 lights in hardware.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!