VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Point Lights - Why won't they just go away!??!? PyroBoy (9 replies, 0 views) (2000-Aug-22) I'm currently dealing with several unruly and possibly intoxicated D3DIM point light sources that will not get the hell out of my scene when I ask them to... :-)
Does RenderingDevice.LightEnable(LightIndex, True/False) not enable/disable a light inside a scene? I set my lights to enable when they're created, and they shine their little hearts out, but the time comes to remove them from the scene, so the above function gets called with the corresponding light index and False, but the light doesn't go out.
What's up? Do I have to pass an empty D3DLIGHT7 structure at the SetLight function with the same index of the offending light to shut it off? I'm sure that would work, but if that's the only way to do it, what did MS include this dandy LightEnable function for?
|