Hey =)
I work on an little browsergame. I use FBX files for Models and Animation.
Is there a way to load a animation once after login and then use it again and again, everytime i need it without reloading it ?
There are some moments in this game where the whole page needs to be reloaded. At the moment, i have to reload all animations, when the page reloads.
Is there some kind of caching, that i don’t “loose” all preloaded animations, when the page gets reloaded ?
Similar to the editor, you could save model data in local storage by using Object3D.toJSON()
. The data are deserialized via ObjectLoader
. In context of animations, it’s just important to put the animation clips of a 3D model in its animations property.
2 Likes