Lights in Blittz 3D

Blitz3D Forums/Blitz3D Programming/Lights in Blittz 3D

Hi guys,

Some time ago i watched a demo, in this demo you have something like 256 lights on screen at the same time... anybody remember this?, i´d like to have it but i lost the link

thanks,

You're probably mistaken. The limitations of DirectX make this technically impossible.

You need to do render-based cubic lighting(As opposed to multi-pass), then additional per-pixel/colored/even specular lights add about 4 polys worth of overhead, I've had 50 close by per-pixel lights running in cryo no probs.

Gfk:

is it not possible to multirender, repositioning the lights each time?

Cygnus: no; it's a limitation of the real-time hardware. If the demo you mention is the demo I remember they were 'faked' sprite lights, balls bouncing against the walls and 'flashing' when they hit. That's all faked. You can never plan on more than 8 hardware lights available for any given card, though some have more.

I remember the demo about 2 years ago.
I think they were sprites or quads aligned to plane

You could also use the LightMesh command but I just
tried the example and it seems to be broken.