|
From: <axl...@us...> - 2010-06-30 01:47:05
|
Revision: 755
http://hgengine.svn.sourceforge.net/hgengine/?rev=755&view=rev
Author: axlecrusher
Date: 2010-06-30 01:46:59 +0000 (Wed, 30 Jun 2010)
Log Message:
-----------
Reorganize headers and math data structures to allow for much easier inclusion into tools. Tools no longer need to pull in a huge mess of HG2 source files when compiling.
Modified Paths:
--------------
Mercury2/modules/Terrain.cpp
Modified: Mercury2/modules/Terrain.cpp
===================================================================
--- Mercury2/modules/Terrain.cpp 2010-06-30 01:46:02 UTC (rev 754)
+++ Mercury2/modules/Terrain.cpp 2010-06-30 01:46:59 UTC (rev 755)
@@ -173,7 +173,9 @@
const VertexDataMessage& v( dynamic_cast<const VertexDataMessage&>(data) );
//compute local space position
- MercuryVertex local = v.Vertex * m_parentNode->GetGlobalMatrix();
+ MercuryMatrix m = m_parentNode->GetGlobalMatrix();
+ m.Transpose();
+ MercuryVertex local = m * v.Vertex;
local[3] = 1; //no W
Terrain* t = (Terrain*)m_asset.Ptr();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|