AE
04-15-2006, 05:29 PM
Right now I'm working on a game and we have the coordinates flipped so that they are from the upper-left corner instead of opengl's lower-left.
Right now I have a Ken sprite from Street Fighter 2 walking accross the board with all of the animated sprites of him walking from the game. The problem I'm having (I assume because the coords are flipped) is that Ken does a little hop when he walks and also crouches down a little and that causes walking to look un-natural because his feet go below the level plane.
If I were to draw with Opengl's default coordinate system, would that solve this issue? In other words, would I draw from y from the bottom of the sprite rather than the top?
You can download the source and binary here:
http://www.merge3d.com/forum/viewtopic.php?p=8918#8918
to see exactly what I'm talking about.
Right now I have a Ken sprite from Street Fighter 2 walking accross the board with all of the animated sprites of him walking from the game. The problem I'm having (I assume because the coords are flipped) is that Ken does a little hop when he walks and also crouches down a little and that causes walking to look un-natural because his feet go below the level plane.
If I were to draw with Opengl's default coordinate system, would that solve this issue? In other words, would I draw from y from the bottom of the sprite rather than the top?
You can download the source and binary here:
http://www.merge3d.com/forum/viewtopic.php?p=8918#8918
to see exactly what I'm talking about.