Is there some problem about setVisible().
I get a sub node from scene::IAnimatedMeshSceneNode and hide it with setVisible() function but this function help me nothing.
Here is my code
// loading
scene::IAnimatedMesh* MyAnimatedMesh = 0;
scene::IAnimatedMesh* MyAnimatedMesh = device->getSceneManager()->getMesh("XFile.x");
if(!MyAnimatedMesh)
{
.
.
}
.
.
scene::IAnimatedMeshSceneNode* MyAnimatedMeshSceneNode = 0;
MyAnimatedMeshSceneNode = Device->getSceneManager()->addAnimatedMeshSceneNode(MyAnimatedMesh);
MyAnimatedMeshSceneNode->setMaterialType(video::EMT_SOLID);
MyAnimatedMeshSceneNode->setMaterialFlag(video::EMF_LIGHTING, false);
.
.
// get sub node and hide it with setVisible() function
scene::ISceneNode *MySceneNode = MyAnimatedMeshSceneNode->getXJointNode("Box");
MySceneNode->setVisible(false);
The program works fine except my hiding ISceneNode is still visible. Could anybody help me, Please.