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?
Shadow question
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.
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.