From: <hol...@us...> - 2008-07-10 05:31:59
|
Revision: 102 http://fortress.svn.sourceforge.net/fortress/?rev=102&view=rev Author: holomorph Date: 2008-07-09 22:32:03 -0700 (Wed, 09 Jul 2008) Log Message: ----------- made isosprite face the camera (well match camera angle anyway) Modified Paths: -------------- trunk/pyfort/sprites.py trunk/pyfort/world.py Modified: trunk/pyfort/sprites.py =================================================================== --- trunk/pyfort/sprites.py 2008-07-09 06:49:44 UTC (rev 101) +++ trunk/pyfort/sprites.py 2008-07-10 05:32:03 UTC (rev 102) @@ -62,7 +62,7 @@ #align with the view direction glRotatef(-Camera.VIEW_Z_ROTATION,0,0,1) #and stand the sprite up - glRotatef(90,1,0,0) + glRotatef(-Camera.VIEW_X_ROTATION,1,0,0) self._vertex_list.draw(GL_QUADS) self._group.unset_state_recursive() #self._vertex_list.draw(GL_LINES) #for debugging Modified: trunk/pyfort/world.py =================================================================== --- trunk/pyfort/world.py 2008-07-09 06:49:44 UTC (rev 101) +++ trunk/pyfort/world.py 2008-07-10 05:32:03 UTC (rev 102) @@ -4,7 +4,7 @@ class Camera(object): VIEW_Z_ROTATION = 45 - VIEW_X_ROTATION = -60 + VIEW_X_ROTATION = -60 #90+34.192502848038274 VIEW_HEIGHT = 128 FAR=2048 fov=45 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |