Revision: 8535
http://playerstage.svn.sourceforge.net/playerstage/?rev=8535&view=rev
Author: natepak
Date: 2010-01-28 18:05:34 +0000 (Thu, 28 Jan 2010)
Log Message:
-----------
Recalc normals for meshes by default, and sets a materials default ambient and
diffuse colors to white
Modified Paths:
--------------
code/gazebo/trunk/server/MeshManager.cc
code/gazebo/trunk/server/rendering/Material.cc
Modified: code/gazebo/trunk/server/MeshManager.cc
===================================================================
--- code/gazebo/trunk/server/MeshManager.cc 2010-01-28 17:56:15 UTC (rev
8534)
+++ code/gazebo/trunk/server/MeshManager.cc 2010-01-28 18:05:34 UTC (rev
8535)
@@ -85,7 +85,6 @@
iter!=gazeboPaths.end(); ++iter)
{
fullname = (*iter)+"/Media/models/"+filename;
- //std::cout << "FullName[" << fullname << "]\n";
if (stat(fullname.c_str(), &st) == 0)
{
found = true;
@@ -129,6 +128,7 @@
else
gzerr(0) << "Unable to find file[" << filename << "]\n";
+ mesh->RecalculateNormals();
return mesh;
}
Modified: code/gazebo/trunk/server/rendering/Material.cc
===================================================================
--- code/gazebo/trunk/server/rendering/Material.cc 2010-01-28 17:56:15 UTC
(rev 8534)
+++ code/gazebo/trunk/server/rendering/Material.cc 2010-01-28 18:05:34 UTC
(rev 8535)
@@ -16,6 +16,8 @@
this->shadeMode= GOURAUD;
this->transparency = 0;
this->shininess = 0;
+ this->ambient.Set(1,1,1,1);
+ this->diffuse.Set(1,1,1,1);
}
////////////////////////////////////////////////////////////////////////////////
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit