How I can get a correct shaded node with just ambient light ? I mean like on this screenshot :
In spite of trying many things with material, my cube is fully white.
Ambient lighting
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
directional light is what you're looking for, and as Lonesome Ducky pointed out, setting it as a child of the camera will make it behave nicely (as lights usually do in 3d editing programs) if not entirely naturally. You'll also want to play with the angle it's at relative to the camera to get a nice effect. Sending it directly forwards can feel a little weird.
Also you probably want to keep some ambient light (not much), so that your shadows don't become too dark.
Also you probably want to keep some ambient light (not much), so that your shadows don't become too dark.
To light up the whole scene it might not have to be directional - then you can use ambient light. Another solution is using lightmaps (textures) for the light. For testing out the effect of light on models with and without textures and with and without lights you can also play around with Example 22 MaterialViewer.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
If you want to do something like this:
http://www.youtube.com/watch?v=zK_MsOuKXzo
take a look here:
http://irrlicht.sourceforge.net/phpBB2/ ... 077#228077
http://www.youtube.com/watch?v=zK_MsOuKXzo
take a look here:
http://irrlicht.sourceforge.net/phpBB2/ ... 077#228077