How can I add a parallel light?
How can I add a parallel light?
I found there is a type of light scenenode which can be used as a dynamic point light. But I want add a parallel light that is emitted from infinity. How can I do that?
Change the light type to directional. To do this, you may find the documentation to be useful. Once you have the right light type, you need to be able to control the direction. To figure out how this works, you will want to look at the source. The code that calculates the direction of the light is in doLightRecalc().
Travis
Travis
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
But how should I do that? I was going to use my keyboard for typing, and my monitor to view the results, but I thought I should check first.
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
sorry, guys. I am not tending to bother you. But it is really difficult for a 3d beginners to precisely manipulate irrlicht. It will take you just a minute but few hours of me to solve a problem. I just want to integrate irrlicht into my spatial analysis framework MicroCity.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
To be honest, we still have no good tutorial for lights in Irrlicht, hence the usage might be not too obvious in the beginning. However, going through the API docs should lead to to the existing methods and members which might be of interest. So just put the code together in a way you'd expect it to work. If it fails show us the code and we'll help you without so many complaints