Exclude a mesh from a light

Blitz3D Forums/Blitz3D Programming/Exclude a mesh from a light

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.

Uhm I have a problem now:the particle sprites are always behind the chars and if I don't hide them, they are rendered 3 times.
please don't tell me that sprites don't write on the Zbuffer :(
here's my loop:

Show level
Hide chars
Show particles
CameraClsMode camera,True,True
*RenderWorld*

Hide Cur_Level
Hide particles
CameraClsMode camera,False,False
Show chars(for light1)
*RenderWorld*

Show chars(for light2)
*RenderWorld*