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
Is it possible to load for example one gltf file and share it between multiple model objects and place these objects at different positions and using different animation states while having the data only once in the memory?
One way I found to accomplish this, is to call UpdateModelAnimation() and DrawModel() multiple times with the same model reference but with different transformation matrices and altered animation state between the functions BeginDrawing() BeginMode3D() and EndMode3D() EndDrawing().
Is this a valid way or is there a better option to do it?
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
-
Is it possible to load for example one gltf file and share it between multiple model objects and place these objects at different positions and using different animation states while having the data only once in the memory?
One way I found to accomplish this, is to call UpdateModelAnimation() and DrawModel() multiple times with the same model reference but with different transformation matrices and altered animation state between the functions BeginDrawing() BeginMode3D() and EndMode3D() EndDrawing().
Is this a valid way or is there a better option to do it?
Beta Was this translation helpful? Give feedback.
All reactions