196 reputation
26
bio website
location
age
visits member for 4 years, 1 month
seen 1 hour ago

Open source hacker - Mono, xbuild(co-author), CIL assembler/disassembler, linux kernel etc.

Some of my personal projects:


Aug
19
answered SFML: Monster following player on a straight line
Jan
27
awarded  Informed
Jan
27
answered Texturing a PyOpenGL 3D Cube with PySDL2
Jan
26
comment Texturing a PyOpenGL 3D Cube with PySDL2
You should use the 'pixels' member of SDL_surface to get the raw data. see wiki.libsdl.org/… . I can't find any reference on .contents that you are using :|
Dec
27
awarded  Citizen Patrol
Nov
12
awarded  Talkative
Nov
10
comment Rotation and translation like in GTA 1 OpenGL
0.5x and 0.5z in the first case, to move forward? After rotation of 45degrees, a translation of (0, 0, 0.5) should give you the same effect. It will cause translation along the rotated z axis.
Nov
10
comment Rotation and translation like in GTA 1 OpenGL
I'm not sure that I understand. Whatever translation vector that you choose, will get applied after the rotation.
Nov
10
comment Rotation and translation like in GTA 1 OpenGL
Since the translation would be "applied" after the rotation, it would be translated on the rotated axis. So, just reversing the order should help. eg, if you forward is +z, then (0, 0, 5), would work correctly after rotation also, i.e., it would move forward w.r.t the object.
Nov
10
comment Rotation and translation like in GTA 1 OpenGL
It would be useful to actually state the problem that you are facing though.
Nov
10
answered Rotation and translation like in GTA 1 OpenGL
Jun
25
awarded  Caucus
Jun
25
awarded  Constituent
Jan
19
awarded  Enthusiast
Oct
16
awarded  Teacher
Oct
16
answered 3D rotation matrices deform object while rotating
Sep
18
awarded  Supporter