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

ogt_vox: group instances are not preserved when writing scenes #33

Open
jpaver opened this issue Apr 15, 2022 · 0 comments
Open

ogt_vox: group instances are not preserved when writing scenes #33

jpaver opened this issue Apr 15, 2022 · 0 comments

Comments

@jpaver
Copy link
Owner

jpaver commented Apr 15, 2022

I recently learned Magicavoxel supports copying groups by reference, which means the underlying scene hierarchy is a directed-acyclic-graph that has leaf nodes or group nodes with multiple parents ie. diamond patterns in the graph.

ogt_vox exposes the scene hierarchy as a tree with instances as the leaf nodes and with groups as the branches, so has no diamond patterns.

ogt_vox_read_scene does in fact work when loading scenes that contain group references, it just does not preserve the group information when the scene is re-saved out via ogt_vox_write_scene.

We should look into options for supporting this, and whether it can be done without changes to client code that uses ogt_vox.

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