Commit 5912267f authored by Christopher Tenter's avatar Christopher Tenter

set debug names for renderobjects

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15772 383ad7c9-94d9-4d36-a494-682f7c89f535
parent db603bdb
......@@ -191,39 +191,46 @@ void CoordsysNode::drawCoordsys(IRenderer* _renderer, RenderObject* _baseRO)
// Origin
_baseRO->debugName = "coordsys.sphere";
_baseRO->emissive = Vec3f(1.0f, 1.0f, 1.0f);
sphere_->addToRenderer(_renderer, _baseRO, sphereRadius);
// X-Axis
_baseRO->debugName = "coordsys.x.axis";
_baseRO->emissive = Vec3f(1.0f, 0.0f, 0.0f);
_baseRO->modelview = mModelView;
_baseRO->modelview.rotate (-90, 0, 1, 0);
_baseRO->modelview.translate ( 0, 0, -bodyLength );
cylinder_->addToRenderer(_renderer, _baseRO, bodyLength);
_baseRO->debugName = "coordsys.x.head";
_baseRO->modelview.translate ( 0, 0, -arrowLength );
cone_->addToRenderer(_renderer, _baseRO, arrowLength);
// Y-Axis
_baseRO->debugName = "coordsys.y.axis";
_baseRO->emissive = Vec3f(0.0f, 1.0f, 0.0f);
_baseRO->modelview = mModelView;
_baseRO->modelview.rotate (90, 1, 0, 0);
_baseRO->modelview.translate ( 0, 0, -bodyLength );
cylinder_->addToRenderer(_renderer, _baseRO, bodyLength);
_baseRO->debugName = "coordsys.y.head";
_baseRO->modelview.translate ( 0, 0, -arrowLength );
cone_->addToRenderer(_renderer, _baseRO, arrowLength);
// Z-Axis
_baseRO->debugName = "coordsys.z.axis";
_baseRO->emissive = Vec3f(0.0f, 0.0f, 1.0f);
_baseRO->modelview = mModelView;
_baseRO->modelview.rotate (180, 0, 1, 0);
_baseRO->modelview.translate ( 0, 0, -bodyLength );
cylinder_->addToRenderer(_renderer, _baseRO, bodyLength);
_baseRO->debugName = "coordsys.z.head";
_baseRO->modelview.translate ( 0, 0, -arrowLength );
cone_->addToRenderer(_renderer, _baseRO, arrowLength);
}
......
......@@ -583,7 +583,9 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
{
RenderObject ro;
ro.initFromState(&_state);
ro.debugName = "MeshNode";
// shader gen setup (lighting, shademode, vertex-colors..)
for (unsigned int i = 0; i < _drawMode.getNumLayers(); ++i)
......
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