Adding 3d Animation From Blender

Discussion in 'Buildbox 3.0 Beta' started by bgwiss, Jan 4, 2019.

  1. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    13
    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.
     
  2. wayne_martell

    wayne_martell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    240
    Likes Received:
    68
    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 !
     
    Saul Bernal and bgwiss like this.
  3. Kazzax

    Kazzax Boxer

    Joined:
    Dec 26, 2018
    Messages:
    2
    Likes Received:
    1
    Agree with that mate, only waiting for animation feature or png tutorial. Thats only thing left to polish
     
    Saul Bernal likes this.
  4. Tom King

    Tom King Boxer

    Joined:
    Nov 23, 2018
    Messages:
    24
    Likes Received:
    13
  5. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    13
  6. Tom King

    Tom King Boxer

    Joined:
    Nov 23, 2018
    Messages:
    24
    Likes Received:
    13
    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. ;)
     
    Ninbox and bgwiss like this.
  7. Ninbox

    Ninbox Boxer

    Joined:
    Jan 14, 2019
    Messages:
    2
    Likes Received:
    0
    How did you use JS to enable correct model node at the right time?
     
  8. Tumbleweeds

    Tumbleweeds Boxer

    Joined:
    Dec 18, 2018
    Messages:
    8
    Likes Received:
    4
    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.
     

    Attached Files:

    Ninbox likes this.
  9. Ninbox

    Ninbox Boxer

    Joined:
    Jan 14, 2019
    Messages:
    2
    Likes Received:
    0
    @Tumbleweeds That's great! Thanks for the example project.

    @Tom King is this the way how you did it please?
     
    Last edited: Jan 25, 2019
  10. Tom King

    Tom King Boxer

    Joined:
    Nov 23, 2018
    Messages:
    24
    Likes Received:
    13
    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.
     
    Last edited: Feb 2, 2019
    Ninbox likes this.
  11. wayne_martell

    wayne_martell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    240
    Likes Received:
    68
    So much for drop and drag :(
     

Share This Page