Dynamic shadows artifacts
Posted: Sun Aug 20, 2006 12:08 pm
I've been trying to enable dynamic shadows on a model, and when I add the ShadowVolumeSceneNode, I get the following result:
The code I'm using to load the level and enable the lightning is the following:
scene::IAnimatedMesh* mesh;
mesh = smgr->getMesh("./data/scene.ms3d");
scene::IAnimatedMeshSceneNode*q3node = 0;
q3node = smgr->addAnimatedMeshSceneNode(mesh);
q3node->setMaterialType(video::EMT_SOLID);
q3node->setMaterialFlag(video::EMF_LIGHTING, true);
scene::ILightSceneNode* light1 =
smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 1.0f, 1.0f, 0.0f), 500.0f);
I'm using ms3d (MilkShape) for the mesh and I'm unable to see what I've done wrong. Any suggestion?
Thanks in advance!
The code I'm using to load the level and enable the lightning is the following:
scene::IAnimatedMesh* mesh;
mesh = smgr->getMesh("./data/scene.ms3d");
scene::IAnimatedMeshSceneNode*q3node = 0;
q3node = smgr->addAnimatedMeshSceneNode(mesh);
q3node->setMaterialType(video::EMT_SOLID);
q3node->setMaterialFlag(video::EMF_LIGHTING, true);
scene::ILightSceneNode* light1 =
smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 1.0f, 1.0f, 0.0f), 500.0f);
I'm using ms3d (MilkShape) for the mesh and I'm unable to see what I've done wrong. Any suggestion?
Thanks in advance!