Adding 3d Animation From Blender

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

  1. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    19
    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:
    301
    Likes Received:
    100
    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:
    15
  5. bgwiss

    bgwiss Boxer

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

    Tom King Boxer

    Joined:
    Nov 23, 2018
    Messages:
    24
    Likes Received:
    15
    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:
    6
    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:
    20
    Likes Received:
    9
    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:

    Sudeep Patil and Ninbox like this.
  9. Ninbox

    Ninbox Boxer

    Joined:
    Jan 14, 2019
    Messages:
    6
    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:
    15
    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:
    301
    Likes Received:
    100
    So much for drop and drag :(
     
  12. JSeeger6

    JSeeger6 Avid Boxer

    Joined:
    Aug 29, 2018
    Messages:
    100
    Likes Received:
    12
    Can you show your example of this? I like your reasoning!!
     
  13. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
  14. Rusted

    Rusted Avid Boxer

    Joined:
    May 24, 2017
    Messages:
    133
    Likes Received:
    39
    wow...this no coding software is awesome
     

Share This Page