You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Filament in an Android application for displaying a model loadel from a glb file using gltfio.
I am looking for a way to copy a part of the model (an entity, with it's vertices, material and animations) so I can display it in several places in my scene.
I first tried to recreate a renderable using the RenderableManager.Builder, but I found no way to retrieve/copy the vertices of another entity. And it looks like I would have had the same kind of issue with the animations.
I then found this discussion about instancing, and I succeeded in creating other instances of the whole model. But I find it quite tedious to search for the exact entity that I want to duplicate in the whole list of original & duplicated entities. (And I guess it is not very efficient to duplicate the whole model in order to keep a single entity).
I am thinking about moving the parts that I want to duplicate in separated glb files, so I can instantiate it individually as I want, but this requires a bit a work since the current ModelViewer only supports loading one glb file.
So before starting on this way: Is there a simpler or more practical way to duplicate a part of a model loaded from a single glb file ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using Filament in an Android application for displaying a model loadel from a glb file using gltfio.
I am looking for a way to copy a part of the model (an entity, with it's vertices, material and animations) so I can display it in several places in my scene.
I first tried to recreate a renderable using the
RenderableManager.Builder
, but I found no way to retrieve/copy the vertices of another entity. And it looks like I would have had the same kind of issue with the animations.I then found this discussion about instancing, and I succeeded in creating other instances of the whole model. But I find it quite tedious to search for the exact entity that I want to duplicate in the whole list of original & duplicated entities. (And I guess it is not very efficient to duplicate the whole model in order to keep a single entity).
I am thinking about moving the parts that I want to duplicate in separated glb files, so I can instantiate it individually as I want, but this requires a bit a work since the current
ModelViewer
only supports loading one glb file.So before starting on this way: Is there a simpler or more practical way to duplicate a part of a model loaded from a single glb file ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions