MD2 coordinate system?

Member
Posts: 312
Joined: 2006.10
Post: #1
It seems that the coordinate system MD2's are drawn in is different than the OGL one. My models always point down/up the z axis.. Am I correct?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
OGL doesn't make any assertion about which direction is "up"...

And yes, MD2's vertical axis is Z.
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #3
Thanks OSC Smile
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #4
Would switching the y and z value simply work?
Quote this message in a reply
Hog
Member
Posts: 151
Joined: 2002.09
Post: #5
for each axis swap you need to negate one axis, otherwise you get everything mirrored (with opposite winding direction).
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #6
When I negate one of the axis, the model starts swaying from left ro right... :/

Edit - I fixed it.. Doing the negation when I interpolated the frames fixed it..
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Translating a window coordinate to a view coordinate emileej 3 2,946 Jun 20, 2005 11:25 AM
Last Post: emileej
  Faking a Z Coordinate With NSImage Nick 2 2,847 Jun 11, 2005 05:38 PM
Last Post: Nick
  Quaternions, coordinate systems, etc... Jesse 4 4,696 Jul 14, 2003 08:31 AM
Last Post: DoG