Shadow question

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
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Shadow question

Post by joy »

Hi, I have a problem with shadows. When I use a very simple environment with no viewport and no 2D Elements the function addShadowVolumeSceneNode works. But as I set an viewport and have a 2D Window in the background of my meshes the shadow doesn't work. I have no idea why. Normally the shadow should be influenced by the viewport or any 2D objects...
Any help?
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

ok, it has nothing to do with the viewport or other 2D objects. When I load the meshes right away and set the shadow immediatly it works. But when I optionally set the shadow it doesn't work.

ShadowVol = (pScreenOb->EdSScr[0].EdEl[1].pElNode)->addShadowVolumeSceneNode();

This is called when I change a special checkbox for Shadows in my application. But it doesn't show a shadow afterwards.
Post Reply