create3000 / cobweb

Cobweb is now X_ITE
https://github.com/create3000/x_ite
Other
10 stars 5 forks source link

rotateYUp #8

Closed andreasplesch closed 8 years ago

andreasplesch commented 8 years ago

GeoOrigin has a rotateYUp field. Issue is just for tracking.

create3000 commented 8 years ago

I see that the specification is quite clear about the y-axis: The rotateYUp field is used to specify whether coordinates of nodes that use this GeoOrigin are to be rotated such that their up direction is aligned with the X3D Y axis. Does that mean the x-axis is also align with the X3D x-axis?

andreasplesch commented 8 years ago

I implemented rotateYUp in x3dom such that -Z aligns with the north direction. This is what would be expected and it makes the rotateYUp rotation the inverse of the GeoLocation rotation.

create3000 commented 8 years ago

Fix commited.

andreasplesch commented 8 years ago

Great !