I tried your second suggestion first, with the same result as before. My animnode mesh was moving; my other meshes were not.
I tried your first suggestion as well. I can't get it to work, and logically, there's no reason to believe it would do anything that my original code didn't. Here is an example of one of my nodes.
Code: Select all
IAnimatedMeshSceneNode* maletorsonode = smgr->addAnimatedMeshSceneNode(smgr->getMesh("C:/Users/James/Documents/Psychophagus/Assets/Male/Male_Chest.b3d"));
ISkinnedMesh* skintorso = (ISkinnedMesh*) (maletorsonode->getMesh());
maletorsonode->setMaterialFlag(EMF_LIGHTING, false);
skintorso->useAnimationFrom(animnode->getMesh());
||=== Build: Debug in Psychophagus (compiler: GNU GCC Compiler) ===|
C:\Users\James\Documents\Psychophagus\main.cpp||In function 'int main(int, char**)':|
C:\Users\James\Documents\Psychophagus\main.cpp|57|error: invalid conversion from 'irr::scene::IAnimatedMesh*' to 'const irr::scene::ISkinnedMesh*' [-fpermissive]|
C:\Users\James\Downloads\irrlicht-1.8.2\irrlicht-1.8.2\include\ISkinnedMesh.h|57|error: initializing argument 1 of 'virtual bool irr::scene::ISkinnedMesh::useAnimationFrom(const irr::scene::ISkinnedMesh*)' [-fpermissive]|
C:\Users\James\Documents\Psychophagus\main.cpp|63|error: invalid conversion from 'irr::scene::IAnimatedMesh*' to 'const irr::scene::ISkinnedMesh*' [-fpermissive]|
C:\Users\James\Downloads\irrlicht-1.8.2\irrlicht-1.8.2\include\ISkinnedMesh.h|57|error: initializing argument 1 of 'virtual bool irr::scene::ISkinnedMesh::useAnimationFrom(const irr::scene::ISkinnedMesh*)' [-fpermissive]|
C:\Users\James\Documents\Psychophagus\main.cpp|69|error: invalid conversion from 'irr::scene::IAnimatedMesh*' to 'const irr::scene::ISkinnedMesh*' [-fpermissive]|
C:\Users\James\Downloads\irrlicht-1.8.2\irrlicht-1.8.2\include\ISkinnedMesh.h|57|error: initializing argument 1 of 'virtual bool irr::scene::ISkinnedMesh::useAnimationFrom(const irr::scene::ISkinnedMesh*)' [-fpermissive]|
C:\Users\James\Documents\Psychophagus\main.cpp|75|error: invalid conversion from 'irr::scene::IAnimatedMesh*' to 'const irr::scene::ISkinnedMesh*' [-fpermissive]|
C:\Users\James\Downloads\irrlicht-1.8.2\irrlicht-1.8.2\include\ISkinnedMesh.h|57|error: initializing argument 1 of 'virtual bool irr::scene::ISkinnedMesh::useAnimationFrom(const irr::scene::ISkinnedMesh*)' [-fpermissive]|
C:\Users\James\Documents\Psychophagus\main.cpp|81|error: invalid conversion from 'irr::scene::IAnimatedMesh*' to 'const irr::scene::ISkinnedMesh*' [-fpermissive]|
C:\Users\James\Downloads\irrlicht-1.8.2\irrlicht-1.8.2\include\ISkinnedMesh.h|57|error: initializing argument 1 of 'virtual bool irr::scene::ISkinnedMesh::useAnimationFrom(const irr::scene::ISkinnedMesh*)' [-fpermissive]|
||=== Build failed: 10 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
Something about the way I tried to declare my skinned meshes must be wrong, and I guess I need to find a way to declare a skinned mesh for animnode.