How to light a scene evenly?

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
nzervu
Posts: 17
Joined: Tue Oct 21, 2008 7:44 pm

How to light a scene evenly?

Post by nzervu »

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 »

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 »

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 »

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 »

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));
Post Reply