Revision: 8539
http://playerstage.svn.sourceforge.net/playerstage/?rev=8539&view=rev
Author: natepak
Date: 2010-01-30 16:30:21 +0000 (Sat, 30 Jan 2010)
Log Message:
-----------
Added in loading of normals from meshes
Modified Paths:
--------------
code/gazebo/trunk/server/AssimpLoader.cc
Modified: code/gazebo/trunk/server/AssimpLoader.cc
===================================================================
--- code/gazebo/trunk/server/AssimpLoader.cc 2010-01-28 21:06:18 UTC (rev
8538)
+++ code/gazebo/trunk/server/AssimpLoader.cc 2010-01-30 16:30:21 UTC (rev
8539)
@@ -198,6 +198,11 @@
subMesh->AddVertex(p.x, p.y, p.z);
+ p.x = aMesh->mNormals[j].x;
+ p.y = aMesh->mNormals[j].y;
+ p.z = aMesh->mNormals[j].z;
+
+ subMesh->AddNormal(p.x, p.y, p.z);
if (aMesh->mNumUVComponents[0])
subMesh->AddTexCoord(aMesh->mTextureCoords[0][j].x,
1.0-aMesh->mTextureCoords[0][j].y);
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