|
1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Dynamic light limit
[Re: Matt_Aufderheide]
#49106
07/17/05 08:27
07/17/05 08:27
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Quote:
Quote:
8 lights to be processed in one frame, the next 8 lights processed in the next frame, then the final 8 in the third frame.
this is a very bad idea.. this will make all of your light flicker..ugly. Bascially you cant get around the 8 light limit yet, so dont try, just design around it..instead of using 2 lights for each car headlights, just use one for each car. of course, only activate lights that are near to the camera, and can easlity fade them in and out..when you think about it, 8 lights at once is an awful lot of lights, more than you should reasonably need.
In case you're wondering, I'm thinking that this'll still have the lights being shown, but have a delay not getting updated after some time. That is, when light 8 is processed and the wait instruction is encountered, when light 9 starts up, light 1 remains in the same position it was in earlier and light 9 is processed. Because of the frame advance, lights 1 through 8 would have their old positions kept without being changed. Then, when the whole cycle went through and back to 1 again, light 1, being behind some, will get updated to it's new position. It's a weird concept, but it works best with high frame rates. At low frame rates, it's more easily noticed.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
|
|
|