Revision: 8536 http://playerstage.svn.sourceforge.net/playerstage/?rev=8536&view=rev Author: natepak Date: 2010-01-28 18:55:36 +0000 (Thu, 28 Jan 2010)
Log Message: ----------- Added shadow color parameter Modified Paths: -------------- code/gazebo/trunk/server/rendering/OgreAdaptor.cc code/gazebo/trunk/server/rendering/OgreAdaptor.hh code/gazebo/trunk/worlds/pioneer2dx.world Modified: code/gazebo/trunk/server/rendering/OgreAdaptor.cc =================================================================== --- code/gazebo/trunk/server/rendering/OgreAdaptor.cc 2010-01-28 18:05:34 UTC (rev 8535) +++ code/gazebo/trunk/server/rendering/OgreAdaptor.cc 2010-01-28 18:55:36 UTC (rev 8536) @@ -80,6 +80,7 @@ this->drawGridP = new ParamT<bool>("grid", true, 0); this->skyMaterialP = new ParamT<std::string>("material","",1); this->shadowIndexSizeP = new ParamT<int>("shadowIndexSize",32768, 0); + this->shadowColorP = new ParamT<Vector3>("shadowColor",Vector3(0.4,0.4,0.4), 0); Param::End(); } @@ -99,6 +100,7 @@ delete this->shadowTextureSizeP; delete this->shadowIndexSizeP; delete this->shadowTechniqueP; + delete this->shadowColorP; delete this->drawGridP; delete this->skyMaterialP; @@ -209,6 +211,7 @@ this->shadowTextureSizeP->Load(node); this->shadowIndexSizeP->Load(node); this->shadowTechniqueP->Load(node); + this->shadowColorP->Load(node); this->drawGridP->Load(node); ambient.r = (**(this->ambientP)).x; @@ -238,7 +241,10 @@ this->sceneMgr->setShadowTextureSize(**(this->shadowTextureSizeP)); this->sceneMgr->setShadowIndexBufferSize(**(this->shadowIndexSizeP) ); this->sceneMgr->setShadowTextureSettings(512,2); - this->sceneMgr->setShadowColour(Ogre::ColourValue(0.2, 0.2, 0.2)); + this->sceneMgr->setShadowColour(Ogre::ColourValue( + (**this->shadowColorP).x, + (**this->shadowColorP).y, + (**this->shadowColorP).z)); this->sceneMgr->setShadowFarDistance(30); } Modified: code/gazebo/trunk/server/rendering/OgreAdaptor.hh =================================================================== --- code/gazebo/trunk/server/rendering/OgreAdaptor.hh 2010-01-28 18:05:34 UTC (rev 8535) +++ code/gazebo/trunk/server/rendering/OgreAdaptor.hh 2010-01-28 18:55:36 UTC (rev 8536) @@ -160,6 +160,7 @@ private: ParamT<std::string> *shadowTechniqueP; private: ParamT<int> *shadowTextureSizeP; private: ParamT<int> *shadowIndexSizeP; + private: ParamT<Vector3> *shadowColorP; private: ParamT<bool> *drawGridP; private: ParamT<std::string> *skyMaterialP; private: std::vector<Param*> parameters; Modified: code/gazebo/trunk/worlds/pioneer2dx.world =================================================================== --- code/gazebo/trunk/worlds/pioneer2dx.world 2010-01-28 18:05:34 UTC (rev 8535) +++ code/gazebo/trunk/worlds/pioneer2dx.world 2010-01-28 18:55:36 UTC (rev 8536) @@ -52,7 +52,7 @@ <grid>false</grid> <shadowTechnique>stencilModulative</shadowTechnique> - <!--<shadowTechnique>none</shadowTechnique>--> + <shadowColor>0.4 0.4 0.4</shadowColor> </rendering:ogre> <!-- Ground Plane --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit