Page 1 of 1

Mesh geometries can cast shadow ??

Posted: Wed May 11, 2011 8:02 am
by thanvilk
As i tried to cast shadow of of mesh objects created by IGeometry class's method name as createSphereMesh()...that creates mesh sphere scene node !

But may be there is not any method addShadowVolumeSceneNode() for static meshes in irrlicht !

My question : Is it is not possible to cast shadows those are not animated in irrlicht engine !
as addShadowVolumeSceneNode() method is available for only animated meshes !

I want to cast shadow for those objects that are not animated meshes.. for only static meshes or simple primities !

is there is any method available or procedure for casting shadows that are static mesh or for primitives shapes ???

Please if it is possible then notify me !

thanks in advance !

Posted: Thu May 12, 2011 3:01 pm
by hybrid
For now, you have to add your static mesh into an animated mesh (with just one frame) and use the shadow routine there. Starting with Irrlicht 1.8 it will also be possible with static meshes without this burden.