1 |
1 |
1 |
|
yes |
Next time, please write with which version of opengl you have tested it!! I'm using pyopengl 3.1.0, py 2.7.6 on win7. C:\pyweek20\NotYourData-20\NotYourData>py -2 run_game.py ARB version Window: Actual color bits r8 g8 b8 a8 Window: Actual depth bits: 16 Window: Actual stencil bits: 0 Window: Actual multisampling samples: 0 Running... [[ 1. 0. 0. 0.] [ 0. 1. 0. 0.] [ 0. 0. 1. 0.] [ 0. 0. 0. 1.]] [[ 1.29903805 0. 0. 0. ] [ 0. 1.73205078 0. 0. ] [ 0. 0. -1.002002 -1.001001 ] [ 0. 0. -1. 0. ]] Not such uniform in shader: light_m Not such uniform in shader: normal_m Not such attribute in shader: normal Not such attribute in shader: color Markers: {'target_point': [255, 255, 0], 'enemy_source': [255, 0, 0], 'drop_point': [255, 128, 0], 'enemy_base': [255, 0, 255], 'player': [0, 128, 255], 'base': [0, 255, 0]} Not such uniform in shader: light_m Not such attribute in shader: color Not such attribute in shader: tc Loading map... Fixing gaps... target_point : 129,84 Unknown marker with color: [ 0 128 255] Unknown marker with color: [ 0 128 255] Unknown marker with color: [ 0 128 255] Unknown marker with color: [ 0 128 255] player : 267,97 target_point : 248,103 Unknown marker with color: [ 0 255 0] Unknown marker with color: [ 0 255 0] Unknown marker with color: [ 0 255 0] Unknown marker with color: [ 0 255 0] Unknown marker with color: [ 0 255 0] base : 260,104 target_point : 253,111 target_point : 271,128 target_point : 101,138 target_point : 186,154 target_point : 168,155 target_point : 147,182 target_point : 271,212 Unknown marker with color: [255 0 0] enemy_source : 92,222 target_point : 83,247 target_point : 206,255 Unknown marker with color: [255 0 0] enemy_source : 179,273 Computing normals... Creating VBO... 360 360 total patches: 4 total indices: 260626 Loaded New player Not such uniform in shader: normal_m Not such attribute in shader: color Not such uniform in shader: mat_specular_color Not such uniform in shader: mat_specular_exp Not such uniform in shader: light_m Not such uniform in shader: normal_m Not such attribute in shader: position Not such attribute in shader: normal Not such attribute in shader: color Not such attribute in shader: tc Not such uniform in shader: light_m Not such uniform in shader: normal_m Not such attribute in shader: normal Not such attribute in shader: color Not such uniform in shader: mat_diffuse_color Not such uniform in shader: mat_specular_color Not such uniform in shader: mat_ambient_color Not such uniform in shader: mat_specular_exp Traceback (most recent call last): File "run_game.py", line 3, in gameowfication.__main__.main() File "C:\pyweek20\NotYourData-20\NotYourData\gameowfication\__main__.py", line 87, in main scene.advance(screen, t, inp) File "C:\pyweek20\NotYourData-20\NotYourData\gameowfication\mainscene.py", line 381, in advance self._map.draw(self) File "C:\pyweek20\NotYourData-20\NotYourData\gameowfication\profiler.py", line 73, in fn result = func(*args, **kwargs) File "C:\pyweek20\NotYourData-20\NotYourData\gameowfication\map.py", line 417, in draw scene.uploadMatrices(self._shader) File "C:\pyweek20\NotYourData-20\NotYourData\gameowfication\scene.py", line 74, in uploadMatrices glUniformMatrix3fv(shader.uni_normal_m,1,GL_TRUE, self._normal_m.ravel()) File "C:\Data\Programs\Python276\lib\site-packages\OpenGL\latebind.py", line 45, in __call__ return self._finalCall( *args, **named ) File "C:\Data\Programs\Python276\lib\site-packages\OpenGL\wrapper.py", line 686, in wrapperCall raise err OpenGL.error.GLError: GLError( err = 1282, description = 'invalid operation', baseOperation = glUniformMatrix3fv, pyArgs = ( 1261, 1, GL_TRUE, array([ 1., 0., 0., 0., 1., 0., 0., 0., 1.], dtype=float32), ), cArgs = ( 1261, 1, GL_TRUE, array([ 1., 0., 0., 0., 1., 0., 0., 0., 1.], dtype=float32), ), cArguments = ( 1261, 1, GL_TRUE, array([ 1., 0., 0., 0., 1., 0., 0., 0., 1.], dtype=float32), ) ) C:\pyweek20\NotYourData-20\NotYourData> |