Revision: 8939
http://playerstage.svn.sourceforge.net/playerstage/?rev=8939&view=rev
Author: hsujohnhsu
Date: 2010-10-12 00:27:37 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
bug fix, ambient light setting should happen regardless there's shadows or not
Modified Paths:
--------------
code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc
Modified: code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc
===================================================================
--- code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc 2010-10-11
17:00:22 UTC (rev 8938)
+++ code/gazebo/branches/wg/server/rendering/OgreAdaptor.cc 2010-10-12
00:27:37 UTC (rev 8939)
@@ -215,6 +215,9 @@
(**this->backgroundColorP).y,
(**this->backgroundColorP).z));
+ // Ambient lighting
+ this->sceneMgr->setAmbientLight(ambient);
+
// Not sure if this does something useful.
if (**(this->shadowsP))
{
@@ -222,9 +225,6 @@
this->sceneMgr->setShadowTextureSettings(512,2);
this->sceneMgr->setShadowColour(Ogre::ColourValue(0.5,0.5,0.5));
- // Ambient lighting
- this->sceneMgr->setAmbientLight(ambient);
-
this->sceneMgr->setShadowTexturePixelFormat(Ogre::PF_FLOAT16_R);
this->sceneMgr->setShadowTextureSelfShadow(true);
this->sceneMgr->setShadowCasterRenderBackFaces(false);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit