Commit f2a70abb authored by hybrid's avatar hybrid

Don't render debug boxes with complete transparency

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1609 dfc29bdd-3216-0410-991c-e03cc46cb475
parent a091e4fa
...@@ -395,14 +395,14 @@ void CAnimatedMeshSceneNode::render() ...@@ -395,14 +395,14 @@ void CAnimatedMeshSceneNode::render()
if (Mesh->getMeshType() == EAMT_SKINNED) if (Mesh->getMeshType() == EAMT_SKINNED)
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation * ((SSkinMeshBuffer*)mb)->Transformation); driver->setTransform(video::ETS_WORLD, AbsoluteTransformation * ((SSkinMeshBuffer*)mb)->Transformation);
driver->draw3DBox( mb->getBoundingBox(), driver->draw3DBox( mb->getBoundingBox(),
video::SColor(0,190,128,128) ); video::SColor(255,190,128,128) );
} }
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
} }
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
if ( DebugDataVisible & scene::EDS_BBOX ) if ( DebugDataVisible & scene::EDS_BBOX )
driver->draw3DBox(Box, video::SColor(0,255,255,255)); driver->draw3DBox(Box, video::SColor(255,255,255,255));
// show skeleton // show skeleton
if ( DebugDataVisible & scene::EDS_SKELETON ) if ( DebugDataVisible & scene::EDS_SKELETON )
...@@ -419,7 +419,7 @@ void CAnimatedMeshSceneNode::render() ...@@ -419,7 +419,7 @@ void CAnimatedMeshSceneNode::render()
{ {
driver->draw3DLine(joint->GlobalAnimatedMatrix.getTranslation(), driver->draw3DLine(joint->GlobalAnimatedMatrix.getTranslation(),
joint->Children[n]->GlobalAnimatedMatrix.getTranslation(), joint->Children[n]->GlobalAnimatedMatrix.getTranslation(),
video::SColor(0,51,66,255)); video::SColor(255,51,66,255));
} }
} }
} }
......
...@@ -184,7 +184,7 @@ void CMeshSceneNode::render() ...@@ -184,7 +184,7 @@ void CMeshSceneNode::render()
video::SMaterial m; video::SMaterial m;
m.Lighting = false; m.Lighting = false;
driver->setMaterial(m); driver->setMaterial(m);
driver->draw3DBox(Box, video::SColor(0,255,255,255)); driver->draw3DBox(Box, video::SColor(255,255,255,255));
} }
if ( DebugDataVisible & scene::EDS_BBOX_BUFFERS ) if ( DebugDataVisible & scene::EDS_BBOX_BUFFERS )
{ {
...@@ -195,7 +195,7 @@ void CMeshSceneNode::render() ...@@ -195,7 +195,7 @@ void CMeshSceneNode::render()
{ {
driver->draw3DBox( driver->draw3DBox(
Mesh->getMeshBuffer(g)->getBoundingBox(), Mesh->getMeshBuffer(g)->getBoundingBox(),
video::SColor(0,190,128,128)); video::SColor(255,190,128,128));
} }
} }
......
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