comparison stageviewer.py @ 10:059ea0ea8d38

Use the original game's near and far planes.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 02 Aug 2011 15:46:47 +0200
parents 668b808b73ef
children 548662d70860
comparison
equal deleted inserted replaced
9:668b808b73ef 10:059ea0ea8d38
136 window = pygame.display.set_mode((384, 448), pygame.OPENGL | pygame.DOUBLEBUF) 136 window = pygame.display.set_mode((384, 448), pygame.OPENGL | pygame.DOUBLEBUF)
137 137
138 # Initialize OpenGL 138 # Initialize OpenGL
139 glMatrixMode(GL_PROJECTION) 139 glMatrixMode(GL_PROJECTION)
140 glLoadIdentity() 140 glLoadIdentity()
141 gluPerspective(30, float(window.get_width())/window.get_height(), 20, 2000) 141 gluPerspective(30, float(window.get_width())/window.get_height(), 101010101./2010101., 101010101./10101.)
142 142
143 glHint(GL_FOG_HINT, GL_NICEST) 143 glHint(GL_FOG_HINT, GL_NICEST)
144 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) 144 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST)
145 glEnable(GL_DEPTH_TEST) 145 glEnable(GL_DEPTH_TEST)
146 glEnable(GL_BLEND) 146 glEnable(GL_BLEND)