Author: JonNeal Date: 2008-07-16 00:55:18 -0400 (Wed, 16 Jul 2008) New Revision: 1324
Modified: trunk/pysoy/src/scenes/Landscape.pym Log: Ticket #929 : * Small bug fix Modified: trunk/pysoy/src/scenes/Landscape.pym =================================================================== --- trunk/pysoy/src/scenes/Landscape.pym 2008-07-16 04:40:54 UTC (rev 1323) +++ trunk/pysoy/src/scenes/Landscape.pym 2008-07-16 04:55:18 UTC (rev 1324) @@ -55,8 +55,8 @@ 0, # copy data? self._width, self._depth, - self._heightmapTex._width, - self._heightmapTex._height, + heightmap._width, + heightmap._height, 1.0, # scale 0.0, # offset 1.0, # thickness @@ -241,20 +241,15 @@ # # Setup projection matrix cdef int _i - #stdio.printf("_render\n"); gl.glEnable(gl.GL_DEPTH_TEST) gl.glEnable(gl.GL_LIGHTING) gl.glLightModelfv(gl.GL_LIGHT_MODEL_AMBIENT, self._ambient._rgba) # # Turn on each light, keep it's iteration locked against mod until done self._lights._iterStart() - #stdio.printf("_render1a\n"); for _i from 0 <= _i < self._lights._current : - #stdio.printf("_render1b Index: %d\n",_i); - # This is a quick hack (gl.GL_LIGHT0 + _i) (<soy.bodies.Light> self._lights._list[_i])._on(gl.GL_LIGHT0 + _i) - #stdio.printf("_render1c\n"); gl.glMatrixMode(gl.GL_PROJECTION) gl.glLoadIdentity() gl.gluPerspective(_fovy, _aspect, _znear, 1000.0) @@ -319,4 +314,3 @@ example er, sorry, the steepest would be A """ - _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn