Can we reuse the glb model loaded by gltfio #7627
Replies: 2 comments 2 replies
-
You can create instances of the same underlying asset that share vertex buffers/textures/etc but have their own transforms. Look at |
Beta Was this translation helpful? Give feedback.
1 reply
-
This looks like the Kotlin API, which I'm not 100% familiar with, but you probably need to add the instance entities to the scene, not the asset entities (pseudocode):
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used gltfio to load the glb model and add them to the scene and then transform it to the position using transformManager. I need to create multiple objects using the same glb model and transform them to different position in the scene, and it seems that I need load glb modle n times if I want to add n object using the same model which will have bad performance. May I know if there are some proper ways to achieve this such that I can reuse the assets got from model like reuse the same material by materialInstance while rendering. Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions