Author: ArcRiley Date: 2008-07-18 02:04:10 -0400 (Fri, 18 Jul 2008) New Revision: 1330
Modified: trunk/pysoy/src/scenes/Landscape.pym Log: Ticket #929 : * fixed heightmap geom to match scale Modified: trunk/pysoy/src/scenes/Landscape.pym =================================================================== --- trunk/pysoy/src/scenes/Landscape.pym 2008-07-18 04:47:13 UTC (rev 1329) +++ trunk/pysoy/src/scenes/Landscape.pym 2008-07-18 06:04:10 UTC (rev 1330) @@ -53,16 +53,18 @@ self._elementArray = <Face *> py.PyMem_Malloc(sizeof(Face)*(heightmap._width-1)*(heightmap._height-1)*2) ode.dGeomHeightfieldDataBuildByte(self._heightmapID, <unsigned char*> heightmap._texels, - 0, # copy data? - self._width, - self._depth, - heightmap._width, - heightmap._height, - 1.0, # scale - 0.0, # offset - 1.0, # thickness - 0) # wrapped + 0, # copy? + self._width, # width + self._depth, # depth + heightmap._width, # dataX + heightmap._height, # dataY + 1.0 / 255.0 * self._height, # scale + 0, # offset + 4.0, # thick + 0) # wrapped self._heightmap = ode.dCreateHeightfield(self._spaceID, self._heightmapID, 1) #the ode heightmap + ode.dGeomSetPosition(self._heightmap, self._position[0], + self._position[1], self._position[2]) self._heightmapTex = heightmap self._createArrays() _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn