I think I read somewhere that I can only add upto 8 lights into a scene. What If my scene has many rooms? I should lightmap then?
Is it possible that I add lights to my scene but irrlicht precalculate the lightmap?
maximum lights
Re: maximum lights
Use lightmaps in your scene if both your scene and the lights are static - For moving lights you could probably go dynamic for just the dynamic ones.jontan6 wrote:I think I read somewhere that I can only add upto 8 lights into a scene. What If my scene has many rooms? I should lightmap then?
Is it possible that I add lights to my scene but irrlicht precalculate the lightmap?
Also, I don't know how Irrlicht handles it, but you can have up to 8 lights if you only ever see 8 or less at a time. You can just manage them by setting all 8 of the lights to the closest 8. Irrlicht may or may not handle this for you.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Irrlicht will turn on the 8 lights closest to the active camera, without consideration of their type, radius or intensity.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Yes, but they may not be the lights that you want to be on. You said "rooms", but the lighting algorithm doesn't take occlusion into account, just distance from the camera, so lights will leak through from nearby rooms.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way