Commit f2145fd2 authored by hybrid's avatar hybrid

Added bbox testing for skinned meshes.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2769 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 8292b7fe
...@@ -40,6 +40,7 @@ bool b3dAnimation(void) ...@@ -40,6 +40,7 @@ bool b3dAnimation(void)
node1->setMaterialFlag(EMF_LIGHTING, false); node1->setMaterialFlag(EMF_LIGHTING, false);
node1->setAnimationSpeed(0.f); node1->setAnimationSpeed(0.f);
node1->setCurrentFrame(10.f); node1->setCurrentFrame(10.f);
node1->setDebugDataVisible(irr::scene::EDS_BBOX_BUFFERS);
} }
node2 = smgr->addAnimatedMeshSceneNode(mesh); node2 = smgr->addAnimatedMeshSceneNode(mesh);
...@@ -50,13 +51,14 @@ bool b3dAnimation(void) ...@@ -50,13 +51,14 @@ bool b3dAnimation(void)
node2->setMaterialFlag(EMF_LIGHTING, false); node2->setMaterialFlag(EMF_LIGHTING, false);
node2->setAnimationSpeed(0.f); node2->setAnimationSpeed(0.f);
node2->setCurrentFrame(62.f); node2->setCurrentFrame(62.f);
node2->setDebugDataVisible(irr::scene::EDS_BBOX_BUFFERS);
} }
(void)smgr->addCameraSceneNode(); (void)smgr->addCameraSceneNode();
// Just jump to the last frame since that's all we're interested in. // Just jump to the last frame since that's all we're interested in.
device->run(); device->run();
driver->beginScene(true, true, SColor(255, 255, 255, 0)); driver->beginScene(true, true, SColor(255, 60, 60, 60));
smgr->drawAll(); smgr->drawAll();
driver->endScene(); driver->endScene();
......
Test suite pass at GMT Fri Oct 23 17:47:51 2009 Test suite pass at GMT Wed Oct 28 15:55:33 2009
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment