Difference between revisions of "Coordinate Systems"

From Verge3D Wiki
Jump to navigationJump to search
(add screenshots)
Line 3: Line 3:
In Verge3D we use right-handed coordinate system with Y axis pointing in the up direction.
In Verge3D we use right-handed coordinate system with Y axis pointing in the up direction.


[[File:y_up_axis.png]]
[[File:y_up_axis.png|640px]]


Right-handed means when you place an imaginary screw perpendicular to both X and Y and then rotate X axis to Y axis, the screw goes in the direction of Z axis.
Right-handed means when you place an imaginary screw perpendicular to both X and Y and then rotate X axis to Y axis, the screw goes in the direction of Z axis.
[[File:right_handed_rotation.png|640px]]


== Blender ==
== Blender ==


Blender uses right-handed coordinate system with Z axis pointing in the up direction. This convention is different from Verge3D, however in most cases you don't need to worry about it. When you export you scene from Blender to glTF, we automatically convert all coordinates by swapping Y/Z axes. Basically, you animate and move your objects in Blender, and these movements are handled by Verge3D properly.
Blender uses right-handed coordinate system with Z axis pointing in the up direction.
 
[[File:z_up_axis.png|640px]]
 
This convention is different from Verge3D, however in most cases you don't need to worry about it. When you export you scene from Blender to glTF, we automatically convert all coordinates by swapping Y/Z axes. Basically, you animate and move your objects in Blender, and these movements are handled by Verge3D properly.


== 3ds Max ==
== 3ds Max ==


Autodesk 3ds Max uses right-handed coordinate system with Z axis pointing in the up direction. This convention is similar to Blender.
Autodesk 3ds Max uses right-handed coordinate system with Z axis pointing in the up direction. This convention is similar to Blender.
[[File:z_up_axis.png|640px]]


== Maya ==
== Maya ==
Line 19: Line 27:
By default, Autodesk Maya uses right-handed coordinate system with Y axis pointing in the up direction. This convention is similar to Verge3D.
By default, Autodesk Maya uses right-handed coordinate system with Y axis pointing in the up direction. This convention is similar to Verge3D.


[[File:y_up_axis.png]]
[[File:y_up_axis.png|640px]]


== Puzzles ==
== Puzzles ==


In Puzzles we use coordinates depending on the loaded scene. If the scene was made in Blender or 3ds Max, we use Z-up coordinate system. If the scene was exported from Maya, we use Y-up coordinate system. That means, that in Puzzles you stick to the coordinate system of your modelling suite. In case if you load scenes made in different modelling suites (for example if you run [https://www.soft8soft.com/product/verge3d-ultimate-web-interactive-suite/ Verge3D Ultimate]), use the coordinate system conventions of the scene which is loaded first.
In Puzzles we use coordinates depending on the loaded scene. If the scene was made in Blender or 3ds Max, we use Z-up coordinate system. If the scene was exported from Maya, we use Y-up coordinate system. That means, that in Puzzles you stick to the coordinate system of your modelling suite.
 
[[File:puzzles_axis.png]]
 
In case if you load scenes made in different modelling suites (for example if you run [https://www.soft8soft.com/product/verge3d-ultimate-web-interactive-suite/ Verge3D Ultimate]), we use the coordinate system of the scene which is loaded first.


== Coordinate System Conventions ==


{| class="wikitable sortable"
{| class="wikitable sortable"
|+ Coordinate system convenstions in various modelling suits/standards
|-
|-
! Software / Standard !! Default System !! Handedness !! Notes
! Software / Standard !! Default System !! Handedness !! Notes

Revision as of 14:01, 9 September 2021

Verge3D

In Verge3D we use right-handed coordinate system with Y axis pointing in the up direction.

Y up axis.png

Right-handed means when you place an imaginary screw perpendicular to both X and Y and then rotate X axis to Y axis, the screw goes in the direction of Z axis.

Right handed rotation.png

Blender

Blender uses right-handed coordinate system with Z axis pointing in the up direction.

Z up axis.png

This convention is different from Verge3D, however in most cases you don't need to worry about it. When you export you scene from Blender to glTF, we automatically convert all coordinates by swapping Y/Z axes. Basically, you animate and move your objects in Blender, and these movements are handled by Verge3D properly.

3ds Max

Autodesk 3ds Max uses right-handed coordinate system with Z axis pointing in the up direction. This convention is similar to Blender.

Z up axis.png

Maya

By default, Autodesk Maya uses right-handed coordinate system with Y axis pointing in the up direction. This convention is similar to Verge3D.

Y up axis.png

Puzzles

In Puzzles we use coordinates depending on the loaded scene. If the scene was made in Blender or 3ds Max, we use Z-up coordinate system. If the scene was exported from Maya, we use Y-up coordinate system. That means, that in Puzzles you stick to the coordinate system of your modelling suite.

Puzzles axis.png

In case if you load scenes made in different modelling suites (for example if you run Verge3D Ultimate), we use the coordinate system of the scene which is loaded first.

Coordinate System Conventions

Software / Standard Default System Handedness Notes
3ds Max Z-up right-handed
Blender Z-up right-handed
Bullet/Ammo.js Y-up right-handed
Cinema4D Y-up left-handed
DirectX Y-up left-handed
Houdini Y-up right-handed
Maya Y-up right-handed configurable to Z-up right-handed
OpenGL/WebGL/glTF Y-up right-handed
Unity Y-up left-handed
Unreal Engine Z-up left-handed
Verge3D Y-up right-handed