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

[glb onlly] Add option that allow export root object as node #2407

Open
ousttrue opened this issue Aug 19, 2024 · 0 comments
Open

[glb onlly] Add option that allow export root object as node #2407

ousttrue opened this issue Aug 19, 2024 · 0 comments

Comments

@ousttrue
Copy link
Contributor

ousttrue commented Aug 19, 2024

https://vrm.dev/en/gltf/root_node/

  • Add option to export root as node only for glb.

The reason why the root is empty is
Since glTF allows multiple roots,
This was to make it possible to import glb with multiple roots created by other apps.

If you export root as a node,
The next time you import, empty will be added to root (import <=> export will change the hierarchy).
We do not plan to take any measures against this.

https://vrm.dev/gltf/root_node/

  • glb に限って root を node としてエクスポートするオプションを追加する。

root を empty にしているのは、
glTF が複数 root を許しているので、
他のアプリで作成した複数 root の glb を import することを可能にするためでした。

root をノードとして export すると、
次にインポートしたときは empty が root に付加されます(import <=> export で構成がずれる)。
これに対しては対策しない予定です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant