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

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

Merged
merged 6 commits into from
Oct 15, 2024

Conversation

davids91
Copy link
Contributor

@davids91 davids91 commented Sep 13, 2024

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 davids91 mentioned this pull request Sep 13, 2024
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
examples/traverse_graph.rs Outdated Show resolved Hide resolved
@davids91
Copy link
Contributor Author

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

Cargo.toml Outdated Show resolved Hide resolved
examples/traverse_graph.rs Outdated Show resolved Hide resolved
examples/traverse_graph.rs Outdated Show resolved Hide resolved
examples/traverse_graph.rs Outdated Show resolved Hide resolved
examples/traverse_graph.rs Show resolved Hide resolved
examples/traverse_graph.rs Outdated Show resolved Hide resolved
@Neo-Zhixing
Copy link
Member

Thanks for switching over to glam! There are still some problems with the example code. If you could fix them this should be ready to merge.

Copy link
Member

@Neo-Zhixing Neo-Zhixing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Neo-Zhixing Neo-Zhixing merged commit 09b1103 into dust-engine:master Oct 15, 2024
1 check passed
@davids91 davids91 deleted the feature/traverse-example branch October 15, 2024 18:39
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

Successfully merging this pull request may close these issues.

2 participants