dust-engine / dot_vox

Rust parser for MagicaVoxel .vox files.
MIT License
51 stars 20 forks source link

Resolves #45 - Added example to traverse scene graph #51

Open davids91 opened 1 week ago

davids91 commented 1 week ago

Added example to traverse scene DAG, to display the global position of the voxel at [0][0][0] for each model instance.

Needed to introduce nalgebra for matrix multiplication, I couldn't restrict it to the example, hope it's fine, otherwise there's possibility to just do matrix multiplication manually.

Also added a custom model displaying the axes with multiple models: image

davids91 commented 4 days ago

It would be possible to extend the library interface with the fn transform implemented in the example, would it be desirable? It's not used within the library, but would be great to have for the consumers