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!"
btw, i think games like GTA3 use little texture billboard thingys for lights that aren''t being actually "lit" or enabled ...
quote:Original post by EvilShadow
little texture billboard thingys
Very well stated
[edited by - tHiSiSbOb on July 25, 2003 9:28:27 PM]
Hey thanks for the credit.
Btw it was something i thought of but never tried out(Im sure many ppl b4 me must have thought of it).
I think u forgot to include the drawObject in between your code.
Shouldnt it be
Movelight();
DrawObject();
Movelight();
DrawObject();
Btw it was something i thought of but never tried out(Im sure many ppl b4 me must have thought of it).
I think u forgot to include the drawObject in between your code.
Shouldnt it be
Movelight();
DrawObject();
Movelight();
DrawObject();
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement