Archived

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

EvilShadow

I have surpassed the eight light limit!

Recommended Posts

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!"

Share this post


Link to post
Share on other sites
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();

Share this post


Link to post
Share on other sites