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

allow disabling and enabling objects inside a gltf instance for rendering #386

Open
coderedart opened this issue Apr 12, 2022 · 0 comments

Comments

@coderedart
Copy link

I have a bunch of nodes inside gltf which i enable or disable based on the player condition. like only show a object if player has special goggles equipped or don't show an object if player has already collected it etc..

I tried looking through docs (and examples) and cannot find anything to help with this. I am just learning this stuff, so i might have missed an obvious method to do this. I have seen some comments that you need the object handle to keep the object alive, but idk how i would revive that object later when it needs to respawn.

On matrix, i was told to use the nodes local_transform attribute to move it out of camera space as a workaround. but the node itself might have a transform of its own, and i would be over writing it.

was hoping that there would be a simple method to select which objects to skip rendering. and re-enable them later.

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