Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong orientation of 3d tiles dataset #1564

Closed
jasonbeverage opened this issue Aug 14, 2020 · 1 comment
Closed

Wrong orientation of 3d tiles dataset #1564

jasonbeverage opened this issue Aug 14, 2020 · 1 comment
Assignees

Comments

@jasonbeverage
Copy link
Collaborator

The attached 3d tiles dataset is oriented incorrectly, like it's already z-up when it's supposed to be y-up. Taking out the y-up to z-up transform in makeNodeFromModel makes it appear correctly. Oddly enough it is oriented correctly in Cesium so there is some difference there.

See forum discussion at http://forum.osgearth.org/ThreeDTilesLayer-issue-td7593305.html#a7593308
shape.zip

@jasonbeverage jasonbeverage self-assigned this Aug 14, 2020
@jasonbeverage
Copy link
Collaborator Author

The tileset.json has an attribute on the asset element like this:"gltfUpAxis": "Z".
This isn't part of the 3d tiles spec, but it looks like at one point it was supported: CesiumGS/cesium#5005.
Cesium still supports it apparently in their code, so perhaps we should support it even though it's not commonly used. Maybe we can just pass in an option to the gltf loader indicating whether or not to do the y to z up transform.

heimusharper pushed a commit to heimusharper/osgearth that referenced this issue Nov 16, 2020
… 3d tiles spec, but is supported by Cesium so there are tilesets in the wild that have this attribute. Fixes gwaldron#1564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant