In example two the user makes a scene node, then seems to, redefine? it as some kind of other scene node?IAnimatedMesh* mesh = smgr->getMesh("../../media/test.obj");
if (!mesh)
{
device->drop();
return 1;
}
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
I added a mesh in the code abovescene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
scene::IAnimatedMesh* buildingmesh = smgr->getMesh("../../media/buildingtest2.obj");
scene::ISceneNode* node = 0;
scene::ISceneNode* buildingnode = 0;
if (mesh)
node = smgr->addOctTreeSceneNode(mesh->getMesh(0), 0, -1, 1024);
if (buildingmesh)
buildingnode = smgr->addMeshSceneNode(buildingmesh->getMesh(0));
I'm just wondering why he took this seemingly extra step.