-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Does glTF2.0 support the CESIUM_RTC extension? #1159
Comments
Does Cesium have any solutions or adjustments about loading 3D Tiles with glTF2.0? |
Now, I know that the Cesium_RTC is equivalent to add a translation matrix to the root node of glTF model which implement moving the model to the face of the earth. But I have another question: does these two methods have different efficiency when rendering glTF models in the browser? |
For example, I create a model with 3ds Max. Then I convert it to glTF. The x-axis of this glTF model points east. Y-axis points north. Z-axis points up. And the geo location of the origin of the coordinate system has been known. |
Ping @lilleyse. |
@caohaoze all three methods should produce the same result, though I personally haven't tried method 2 with a 3D Tiles tileset. Methods 1 and 2 are pretty safe because even though the model matrix and view matrix start to lose precision at Earth scale, all the math in JavaScript is double precision so the matrix multiply won't have much or any quality loss. CESIUM_RTC will be more exact, but the difference probably won't be noticeable. We've created a lot of tilesets using method 1 without issues. Method 1 is also convenient if you need to edit the transform later like if you need to adjust the tileset's rotation or height. |
Does these two methods have difference in efficiency while rendering glTF models in the browser? |
No difference in efficiency. |
Thank you very much. |
If glTF2.0 does not support the CESIUM_RTC, which one is the better way to transform the glTF in 3D Tiles?
1.add the transform matrix to the node's transform attribute in the tileset.json
2.add the transform matrix to the node's matrix attribute in the glTF.
3.other way....
The text was updated successfully, but these errors were encountered: