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

导出的模型几何绕X轴反向旋转了90度,没有放正 #39

Open
hypotenuse345 opened this issue May 30, 2019 · 3 comments
Open

Comments

@hypotenuse345
Copy link

您好,使用工具转换之后几何出现了一点问题
微信图片_20190530192417
原来的obj文件应该是正常的,没有旋转过,如下图所示。
2019-05-30_192737
请问这个旋转问题需要怎么矫正呢?

@hypotenuse345
Copy link
Author

hypotenuse345 commented May 30, 2019

尝试过在导出的json文件里直接修改transform矩阵,模型本身可以旋转回来,但是最低点和其他边界已经发生变化,boundingbox的具体数值可能要重新计算了。有没有什么参数可以在一开始就能选择对模型的旋转角度?期待您的回答,谢谢!

@CrashedBboy
Copy link

在 Cesium中,3D Tiles 以及 glTF 以 +Y 為向上軸,而 OBJ 使用 +Z 為向上軸 。
因此Windows 內建的 3D Builder 軟體檢視OBJ檔案時也是使用 +Y up 。

@bleungAtGTI
Copy link

tileset.json
"gltfUpAxis": "Y"轉成"gltfUpAxis": "Z"
祝你好運

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

3 participants