Archived

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

SonShadowCat

yea yea yea i love OGL and i have a question

Recommended Posts

after putting off OGL for about 1 month i finally went bak at it and im up and running at mach 5 i just created a scene that has 2 textured cubes floating around with 2 light sources. 1 light is red and on the left and the other is on the right and is green i was wondering how many different lights can u put into one scene? i would do it myself but i dont want to risk screwing up my comp when i can ask one u of brilliant humans ^^ thx "Those who serve no purpose, have no purpose"

Share this post


Link to post
Share on other sites
quote:
Original post by SonShadowCat
i just created a scene that has 2 textured cubes floating around with 2 light sources. 1 light is red and on the left and the other is on the right and is green


As many as your hardware or software renderer supports. Do you want it to be fast? Well, then exclude the software rendered. Use glGet (with GL_MAX_LIGHTS) to look up how many lights are supported.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites
OpenGL compliance guarantees at least 8 lights.
Usually you don''t get more. You can check it as Null and Void said.

Share this post


Link to post
Share on other sites
hmm 8 huh, hmm i can have fun with 8

i can just imagine 8 lights, 2 textured cubes, and blending


oh yea, i get an orgasm just thinkin about it ^^

"Those who serve no purpose, have no purpose"

Share this post


Link to post
Share on other sites