Author: JonNeal Date: 2008-07-18 23:21:49 -0400 (Fri, 18 Jul 2008) New Revision: 1335
Modified: trunk/pysoy/src/scenes/Landscape.pym Log: Ticket #929 : * Added underscores that were causing the landscape mesh to not render. Modified: trunk/pysoy/src/scenes/Landscape.pym =================================================================== --- trunk/pysoy/src/scenes/Landscape.pym 2008-07-19 03:08:49 UTC (rev 1334) +++ trunk/pysoy/src/scenes/Landscape.pym 2008-07-19 03:21:49 UTC (rev 1335) @@ -115,11 +115,11 @@ # They're used in determining edge collapses in LOD generation below. # _deltaCols = <float*> py.PyMem_Malloc(sizeof(float) * \ - self.heightmapTex._width * \ - self.heightmapTex._height) + self._heightmapTex._width * \ + self._heightmapTex._height) _deltaRows = <float*> py.PyMem_Malloc(sizeof(float) * \ - self.heightmapTex._width * \ - self.heightmapTex._height) + self._heightmapTex._width * \ + self._heightmapTex._height) # # Calculate positions and texcoords first for _i from 0 <= _i < self._heightmapTex._height : @@ -169,7 +169,7 @@ # While we are in this loop, calculate the delta map for LOD _deltaRows[_offset] = self._vertArray[_offset].py-self._vertArray[_offset+1].py - stdio.printf("%d : %d\n", _offset, _deltaRows[_offset]); + stdio.printf("%d : %f\n", _offset, _deltaRows[_offset]); else : # subtract the vertices to get vectors _v1[0] = self._vertArray[_c].px _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn