Most of our existing codebase operates in a coordinate system where at the origin with zero rotation:
x increases to the right
y increases upwards
z increases into the screen
Reference image:
Attachment:
File comment: Reference image with all models being drawn correctly
directx-reference-image.JPG [ 19.93 KiB | Viewed 6992 times ]
Horde image:
Attachment:
File comment: h3d version of the same scene. The camera has been rotated 180 around the vertical axis (y) as otherwise all you see is the grey background! Ignore the missing material colours, lower position of the sphere and different poses on the characters
h3d-image.PNG [ 32.84 KiB | Viewed 6992 times ]
We're hoping to be able to continue with this style of coordinate system on top of Horde3d but are unsure of the correct way to massage the matrix across to give the correct visual.
I've tried a number of different approaches from scaling the camera matrix by 1,1,-1 to swapping out matrix columns, but feel like I'm stabbing in the dark somewhat.
Does anyone have any advice or feel like taking a look at the source? We're an open source virtual worlds platform, contributions are welcome
Link:
http://vastpark.svn.cvsdude.com/public/branches/1.0.x/