x3dom / apps-modeling

Publicly Available Applications
Other
3 stars 3 forks source link

Coordinate System needs to have z upwards for DSL compatibility #73

Closed mlimper closed 10 years ago

mlimper commented 10 years ago

Is this the system people are used to? Needs to be briefly discussed with tpaviot before implementation.

tpaviot commented 10 years ago

@mlimper The Z axis uses to be the one along which gravity is defined. Z upwards is not only required for DSL compatiblity, but also to fit business modeling requirements.

mlimper commented 10 years ago

Thanks. I understand - this is currently really on the top of my TODO list, it will be added very soon so that I can continue with the component export.

mlimper commented 10 years ago

@tpaviot Okay, I just added a "fake" in the UI and in the export function in PrimitiveManager.js: If you fetch the primitive data now via "primitiveManager.getSceneData(..)", you should have properly rotated / translated primitives.

There is currently an open issue with negative scaling (I'm inverting a value to rotate the coordinate system), but maybe this is just another reason to limit ourselves to uniform scale factors... it will probably make many things easier.

mlimper commented 10 years ago

The negative scaling issue is now also fixed. Hope the coordinate system works as expected now.