Maximum Lights/Destroying Lights

Blitz3D Forums/Blitz3D Programming/Maximum Lights/Destroying Lights

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

After running a test it seems Blitz lets you create as many lights as you want!

After you reach your graphics cards limit though, the call to createlight() still keeps returning an entity id number ( i.e. not '0' ) and lets you set the properties/colour/position etc of these non existant lights.

8 lights is the most I am aware of any graphics card supporting but since createlight() never fails there is no way you can test in your program.

To be precise the DX limit is dependant on your graphics card, and the limit is only on the number of active lights so you can create many lights but make sure you stick to the limit of how many can be on at once.

But as Mustang says, every hardware light you use is a light too many =)

Try using static/dynamic lightmapping and just 1 or 2 hardware lights.