Revision: 7518
http://playerstage.svn.sourceforge.net/playerstage/?rev=7518&view=rev
Author: hsujohnhsu
Date: 2009-03-17 01:32:39 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
initialize no-material visuals to Gazebo/White.
debug message update.
Modified Paths:
--------------
code/gazebo/branches/ogre-1.4.9/server/rendering/OgreVisual.cc
Modified: code/gazebo/branches/ogre-1.4.9/server/rendering/OgreVisual.cc
===================================================================
--- code/gazebo/branches/ogre-1.4.9/server/rendering/OgreVisual.cc
2009-03-17 01:31:58 UTC (rev 7517)
+++ code/gazebo/branches/ogre-1.4.9/server/rendering/OgreVisual.cc
2009-03-17 01:32:39 UTC (rev 7518)
@@ -72,7 +72,7 @@
this->meshTileP = new ParamT< Vector2<double> >("uvTile",
Vector2<double>(1.0, 1.0), 0 );
- this->materialNameP = new ParamT<std::string>("material",std::string(),0);
+ this->materialNameP = new
ParamT<std::string>("material",std::string("Gazebo/White"),0); //default to
Gazebo/White
this->materialNameP->Callback( &OgreVisual::SetMaterial, this );
this->castShadowsP = new ParamT<bool>("castShadows",true,0);
@@ -131,6 +131,7 @@
boost::lexical_cast<std::string>(this->meshTileP->GetValue().x) + "V" +
boost::lexical_cast<std::string>(this->meshTileP->GetValue().y);
+ if ( meshName != "unit_box_U1V1")
if (!this->sceneNode->getCreator()->hasEntity(meshName))
{
OgreSimpleShape::CreateBox(meshName, Vector3(1,1,1),
**this->meshTileP);
@@ -365,8 +366,8 @@
if (this->myMaterial.isNull())
{
- gzmsg(0) << "The visual " << this->sceneNode->getName() << " can't set
transparency for this geom without a material\n";
-
+ gzmsg(0) << "The visual can't set transparency for this geom (" << /*geom
name? << */ ") without a material"
+ << " sceneNode(" << this->sceneNode->getName() << ")\n";
return;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit