Code: Select all
scene::ISceneManager *pSceneManager;
pSceneManager = pIrrlichtDevice->getSceneManager();
scene::IAnimatedMeshSceneNode *pAnimatedMeshSceneNode;
pAnimatedMeshSceneNode = pSceneManager->addAnimatedMeshSceneNode(pSceneManager->getMesh("Mesh.md2"));
scene::IShadowVolumeSceneNode *pShadowVolumeSceneNode;
pShadowVolumeSceneNode = pAnimatedMeshSceneNode->addShadowVolumeSceneNode();
scene::ISceneNode *pLightSceneNode;
pLightSceneNode = pSceneManager->addLightSceneNode(0, 0, 0x00ff0000, 40.0f);
pLightSceneNode = pSceneManager->addBillboardSceneNode(pLightSceneNode, core::dimension2d<f32>(128, 128));
pLightSceneNode->setMaterialTexture(0, pVideoDriver->getTexture("Light.bmp"));
1. How to remove pLightSceneNode (that has a BillboardSceneNode) from pSceneManager.
2. How to remove pShadowVolumeSceneNode from pAnimatedMeshSceneNode.
Please help.