3D Skeletal Animations

Anything libgdx related goes here!

3D Skeletal Animations

Postby aer0ace » Tue Jul 23, 2013 2:39 am

The documentation that I've found on 3D skeletal animation suggests that it is not yet possible to do with libgdx. Is this correct?

I'd like to support having the user be able to modify a human skeleton that has a mesh bound to it.

Is this supported for an Android target? How bad is the performance. I plan to only have one figure ever loaded, not multiple figures.

It looks like the MD5 format isn't directly support by the engine, only during load-time, at which point it converts the data to something similar to the MD2 format. Is this still the case?
aer0ace
 
Posts: 39
Joined: Mon Jan 16, 2012 8:21 am

Re: 3D Skeletal Animations

Postby aer0ace » Thu Jul 25, 2013 9:19 pm

I guess posts can go days without response? Or no response at all?

Anyway, thanks for any input that anyone has.

I'm really just curious about the progress towards supporting 3D skeletal animation in libgdx. If it's not being worked on, then fair enough. If it is, then I'd like to know how much development has been invested in this. Thanks!
aer0ace
 
Posts: 39
Joined: Mon Jan 16, 2012 8:21 am

Re: 3D Skeletal Animations

Postby xoppa » Thu Jul 25, 2013 10:27 pm

If you're using the nightlies (the new 3d api), you can use skeleton animations. Although it's not in the stable release yet, it's fully functional afaik. Keyframed animations (like md2) is not supported (yet), but skeleton animations performs well enough (bone animations and gpu skinning). Ofcourse this only works with gles20 enabled.

Loading an animated model is basically the same as loading a still model, which it described here: http://blog.xoppa.com/loading-models-using-libgdx/. If you're new to the 3d api, you probably want to go through the other tutorials on my blog as well. TL;DR: Don't forget to include animations when exporting to FBX, convert using fbx-conv to .g3db/.g3dj and load using AssetManager or G3dModelLoader.

You can use AnimationController to animate your model: https://github.com/libgdx/libgdx/blob/m ... oller.java. Examples can be found in the tests https://github.com/libgdx/libgdx/tree/m ... /tests/g3d, e.g. SkeletonTest: https://github.com/libgdx/libgdx/blob/m ... nTest.java or Animation3DTest (which also includes blending animations): https://github.com/libgdx/libgdx/blob/m ... DTest.java.

See it in action over here:
Single model: http://www.youtube.com/watch?v=semWZ_gdXTc
Multiple models: http://www.youtube.com/watch?v=vdXNZ_Nz9Is
SkeletonTest: http://www.youtube.com/watch?v=8E0gtpBTfA0
Animation3DTest: http://www.youtube.com/watch?v=LJOVdGI9TpE
xoppa
 
Posts: 689
Joined: Thu Aug 23, 2012 11:27 pm

Re: 3D Skeletal Animations

Postby aer0ace » Fri Jul 26, 2013 5:57 am

Excellent! Thank you for the thorough response. It's a lot more than I was asking for!
aer0ace
 
Posts: 39
Joined: Mon Jan 16, 2012 8:21 am


Return to Libgdx

Who is online

Users browsing this forum: Google [Bot] and 1 guest