Change from Up Z axis to Y axis

View previous topic View next topic Go down

Change from Up Z axis to Y axis

Post  Cobbler on Sun Feb 01, 2009 6:53 pm

I need to change the up axis from +Z to +Y. I think the best place to do this is when the SIO2 file is read and I think I can do this using a define so one can switch back and forth;

  1. Transformations, Matrices, Vectors Quaternions read in from the SIO2 files exported from Blender
    Vertices, Normals, Tangents, etc. read in from the SIO2 files
    Gravity
    Camera


I would appreciate it if someone could point me to the right spots in the sources where I need to make changes for each of these things...


Thanks!

Cobbler

Posts : 15
Join date : 2009-02-01

View user profile

Back to top Go down

Re: Change from Up Z axis to Y axis

Post  sio2interactive on Sun Feb 01, 2009 8:47 pm

The only thing that you'll have to change is the camera (sio2_camera.cc) and the billboard (sio2_object.cc) all the rest doesn't base it self on the up axis.

Cheers,
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Change from Up Z axis to Y axis

Post  Cobbler on Sun Feb 01, 2009 8:54 pm

That's cool, I've changed the gravity direction and I'm looking at the camera right now.

Cobbler

Posts : 15
Join date : 2009-02-01

View user profile

Back to top Go down

Re: Change from Up Z axis to Y axis

Post  sio2interactive on Sun Feb 01, 2009 11:24 pm

Lemme know if you need more information...
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Change from Up Z axis to Y axis

Post  meteors on Mon Feb 02, 2009 7:26 am

How does changing the camera source affect my_object->pos->z?


Best,
-joshua








sio2interactive wrote:The only thing that you'll have to change is the camera (sio2_camera.cc) and the billboard (sio2_object.cc) all the rest doesn't base it self on the up axis.

Cheers,
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Change from Up Z axis to Y axis

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum