Hi All, Have anyone figured out how to add a 3D animation through blender or any other 3D software? Buildbox only accepts animation as png files.
No FBX animation support that's may or may not happen in the future? so PNG's are the only options at the moment, but I wish they would do a tutorial on doing the PNG animation it's sadly lacking !
Agree with that mate, only waiting for animation feature or png tutorial. Thats only thing left to polish
Export one obj model per frame of animation from 3d Program. Add one 3d model node for each frame of animation in actor object. Use JS to enable correct model node at the right time. Pretty straight forward.
There is the setMesh() method which can be used to do this. I've attached a simple example. You can use the update() function to loop through the sequence of meshes for any animation. I wonder if this is how Tom King did it or if there is a simpler way.
@Tumbleweeds That's great! Thanks for the example project. @Tom King is this the way how you did it please?
I actually loaded each obj frame as a separate 3D model Node into the Actor Entity. Renamed all the 3D model nodes as Frame_01, Frame_02, etc. Then used .setScale(0,0,0) to hide, and .setScale(1,1,1) to show the correct frame of animation. It is pretty primitive, I just wanted to see if it was possible. I think you can use code to "Enable" each frame rather than scaling to be more efficient, but I don't really need an animated character for my project, so I won't be following up on this any time soon.
@JSeeger6 Have a look at this https://www.buildbox.com/forum/index.php?threads/animate-a-model-in-bb3.16813/