
I have surpassed the eight light limit!
I have surpassed the eight light limit, at almost no cost. using one light, like so ->
glPushMatrix();
light1.lightPosition(0.0f, 0.0f, -2.5f, 1.0f);
light1.restorePosition();
glPopMatrix();
glPushMatrix();
light1.lightPosition(0.0f, -0.5f, -5.0f, 1.0f);
light1.restorePosition();
glPopMatrix();
Of course, you have to take into account that this causes a "flicker" on the geometry. thanks to GamerSG for the idea.
This can also lead to "dynamically" changing the values as you need to (i.e. changing values to the nearest eight lights needed). i''ve always but this is the first time ive ever posted
and looking back i''ve noticed this issue has come up numerous times.
-"watch out for the flying bullets!"

-"watch out for the flying bullets!"-"Its not the birds but the bees that I'm worried about"
btw, i think games like GTA3 use little texture billboard thingys for lights that aren''t being actually "lit" or enabled ...
-"watch out for the flying bullets!"-"Its not the birds but the bees that I'm worried about"
quote:
Original post by EvilShadow
little texture billboard thingys
Very well stated

[edited by - tHiSiSbOb on July 25, 2003 9:28:27 PM]
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement