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.
nzervu
Posts: 17 Joined: Tue Oct 21, 2008 7:44 pm
Post
by nzervu » Wed Jul 29, 2009 3:48 pm
Hi,
I would like to ask how to light a scene evenly?
Can I use a single light node? If I use many lights, meshes have multiple shadows, and I prefer to avoid that.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Wed Jul 29, 2009 4:00 pm
Do you want to have a lighting effect on each node (then probably directional light is good) or do you want a base light which lights all meshes similar (then ambient light would be good)?!
nzervu
Posts: 17 Joined: Tue Oct 21, 2008 7:44 pm
Post
by nzervu » Thu Jul 30, 2009 4:39 pm
Thank you for your answer. I believe ambient light would be good.
nzervu
Posts: 17 Joined: Tue Oct 21, 2008 7:44 pm
Post
by nzervu » Thu Jul 30, 2009 4:54 pm
I believe the default light type is :
ELT_POINT //! point light, it has a position in space and radiates light in all directions
Is this ambient light? My problem is that I cannot simulate sun light in my scene.. Some points in scene are very dark, others very lighted.
Virion
Competition winner
Posts: 2148 Joined: Mon Dec 18, 2006 5:04 am
Post
by Virion » Thu Jul 30, 2009 5:42 pm
no. point light is point light not ambient.
you can set your ambient light directly at the scene manager
smgr->setAmbientLight(SColorf(255, 255, 255));