Jump to content

Import and start mesh keyframe animation from Blender


pathogen
 Share

Recommended Posts

I have imported a Blender scene which has a mesh with an animation (consisting of just a few keyframes) and I am looking to control the animation, however I have been unsuccessful. The only resources I have been able to find relate to using skeletons imported from Blender, not basic keyframe animations (unless I am missing something?).

Example playground: http://www.babylonjs-playground.com/#ONZNB

The animation data is located on line 20 of the playground.

I have tried calling scene.beginAnimation('rotation animation', 0, 30, true); in the scene.executeWhenReady function to no avail.

Hopefully somebody can help? Thanks!

Link to comment
Share on other sites

  • 1 year later...

Thanks for this - I initially struggled to work out what you'd done - but then realised....

 

1) extract the JSON text out of the babylon file from Blender and then add the mesh elements to be animated.  :)

 

I've now got a 4 mesh model with 3 parts which are animated and one which isn't all loaded and working..! :)

 

Cheers, thanks for sharing!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...