FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Change from Up Z axis to Y axis

3 posters

Go down

Change from Up Z axis to Y axis Empty Change from Up Z axis to Y axis

Post  Cobbler 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

Back to top Go down

Change from Up Z axis to Y axis Empty Re: Change from Up Z axis to Y axis

Post  sio2interactive 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,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Change from Up Z axis to Y axis Empty Re: Change from Up Z axis to Y axis

Post  Cobbler 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

Back to top Go down

Change from Up Z axis to Y axis Empty Re: Change from Up Z axis to Y axis

Post  sio2interactive Sun Feb 01, 2009 11:24 pm

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

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

http://sio2interactive.com

Back to top Go down

Change from Up Z axis to Y axis Empty Re: Change from Up Z axis to Y axis

Post  meteors 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,
meteors
meteors

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

Back to top Go down

Change from Up Z axis to Y axis Empty Re: Change from Up Z axis to Y axis

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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