Dynamic Lights questions

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

Dynamic Lights questions

Post by Guest »

2 questions about dynamic lighting:

1. How do I change the color of a dynamic light once it has been added to the smgr? (throw an example my way, hehe =) )

2. Every time I add light number 2 to the scene, the already present light seem to change in a way...get more blurry or something....
When I add light number 3 they start to act very weird...flickering, changing colors, magnitudes, switching places - all sorts of weird things!
My scene consists of:
- A ms3d landscape mesh
- Green dynamic light that moves around in circles over the landscape
- Red dynamic light that moves around in very small circles very rapidly to simulate the light cast from:
- A fire (particle system) located at 0,0,0
- Another particle system that repeatedly moves in a straight line over the landscape with a billboard and
- A blue light attached

As said, when adding the first 2 lights everything seems (almost except from blurryness) fine - when adding light 3 everything goes braindead....
Am I hitting some kind of limit here? 3 lights?
Or is it simply my code that sucks =)
Post Reply