joshcamas Posted November 2, 2016 Share Posted November 2, 2016 I've always wondered this. In most engines I've used, (blender included) the Z axis is up. Is this a French thing? Or do more engines do this than I thought? Just wondering EDIT: And it looks like three.js is the same, but the x and z directions are different! AHHH WHY Quote Link to comment Share on other sites More sharing options...
Convergence Posted November 3, 2016 Share Posted November 3, 2016 Coming from 3ds max where z is also vertical, this confused me also. Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 3, 2016 Share Posted November 3, 2016 @Convergence- It is the native world coordinate system in your 3D application - which varies between applications. If you want more info on this, visit the following topic: If you need more info, just ask and I or another dev will assist with what we can. DB Théo Sabattié 1 Quote Link to comment Share on other sites More sharing options...
Kesshi Posted November 3, 2016 Share Posted November 3, 2016 Having the y axis pointing up is very common in computer graphics. The default coordinate system for OpenGL and DirectX also have the Y Axis pointing up. Some Applications/Editors change it to have Z pointing up (at least they display it that way in th UI, internally it may be different). Regarding the difference between ThreeJs and BabylonJs. ThreeJs uses a right handed coordinate system (also default in OpenGL) and BabylonJs uses a left handed coordinate system (also default in DirectX). Since BabylonJs 2.5 you can switch to right handed also (scene.useRightHandedSystem = true). In general if you exchange scenes/models between engines/applications you always have to check the coordinate system because they may be different. Converting between coordinate systems is usally not very difficult. Quote Link to comment Share on other sites More sharing options...
jerome Posted November 3, 2016 Share Posted November 3, 2016 Actually, as long as you haven't projected the 3D space onto the 2D space, your screen, what has UP, DOWN, LEFT and RIGHT sides, there's no real UP or DOWN, just an order (left or right handed) between the 3 axis. Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 3, 2016 Author Share Posted November 3, 2016 @Kesshi Ahhh that's what I was thinking as wel!@jerome Yeahhh ik xD For me it's really confusing because my map is built out of a 2D array, with a x and y. And to translate that, the x turns to z and the y turns to x! xD Very messy, so maybe I should just rotate the camera and make everything how I want it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.