From: <Jef...@us...> - 2007-09-27 22:31:44
|
Revision: 15982 http://bzflag.svn.sourceforge.net/bzflag/?rev=15982&view=rev Author: JeffM2501 Date: 2007-09-27 15:31:31 -0700 (Thu, 27 Sep 2007) Log Message: ----------- support global shift and scale for drawinfo meshes. Modified Paths: -------------- trunk/bzflag/tools/modeltool/modeltool.cxx Modified: trunk/bzflag/tools/modeltool/modeltool.cxx =================================================================== --- trunk/bzflag/tools/modeltool/modeltool.cxx 2007-09-27 22:28:54 UTC (rev 15981) +++ trunk/bzflag/tools/modeltool/modeltool.cxx 2007-09-27 22:31:31 UTC (rev 15982) @@ -947,7 +947,7 @@ // first verts inxexesSection += "#indexes\n"; for ( int v = 0; v < (int)verts.size(); v++ ) - inxexesSection += TextUtils::format("vertex %f %f %f\n",verts[v].x,verts[v].y,verts[v].z); + inxexesSection += TextUtils::format("vertex %f %f %f\n",verts[v].x*globalScale+globalShift[0],verts[v].y*globalScale+globalShift[1],verts[v].z*globalScale+globalShift[2]); for ( int n = 0; n < (int)norms.size(); n++ ) inxexesSection += TextUtils::format("normal %f %f %f\n",norms[n].x,norms[n].y,norms[n].z); for ( int u = 0; u < (int)uvs.size(); u++ ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |