GLTF Animations?

About Monkey 2 Forums Monkey 2 Development GLTF Animations?

Tagged: ,

This topic contains 8 replies, has 3 voices, and was last updated by  Ethernaut 1 year, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #12244

    Ethernaut
    Participant

    Hey Mark, now that you’ve updated the 3D Animation code, is there any chance GLTF will support loading animations? (last time I checked it didn’t seem to).

    I’ve been bouncing around trying to settle on a format to use with Mojo3D. FBX would be ideal (I can export it directly from the 3D App I’m using), but I haven’t been able to successfully load an animated one with bones yet.

    GLTF would be fine too, as I can convert it easily from FBX and I wouldn’t need to import Assimp loaders, but I really need animation support.

    Thanks!

    #12251

    Mark Sibly
    Keymaster

    I will eventually update the gltf2 loader to load skinned animations, probably soon if anyone actually has a need for it!

    Can you export or gltf2, or just gltf1? Needs to be gltf2…

    #12253

    Ethernaut
    Participant

    I’m using this to convert from FBX, I believe it saves in GLTF 2.0 (with an additional .bin file, if that makes any difference):

    https://github.com/pissang/qtek-model-viewer

    Thanks!

    #12263

    Simon Armstrong
    Participant

    I have been using this repos for gltf 2 test models at work, in particular CesiumMan and CesiumMilkTruck.

    https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0

    #12264

    Mark Sibly
    Keymaster

    I believe it saves in GLTF 2.0 (with an additional .bin file, if that makes any difference)

    Cool, this is standard gltf format – have you got any actual animations for me to play with?

    #12274

    Ethernaut
    Participant

    I’m still wrapping my head around character rigging in Houdini, so nothing really worth sharing yet. But I’ve been using these two test scenes to try out things like simple animated bones, animation without bones (just transforms) and multi-material objects:


    Will post something more interesting when I have it.
    The attached GLTF files appear to work properly with animation when loaded in Qtek viewer.

    Cheers!

    Attachments:
    1. models-1.zip
    #12291

    Mark Sibly
    Keymaster

    Excellent, thank you.

    [edit]Nice find too: https://pissang.github.io/qtek-model-viewer/editor/

    #12327

    Mark Sibly
    Keymaster

    Initial gltf2 animation/skin support added and pushed to develop branch. Also added models and tests if that’s OK?

    It’s an early attempt so there will probably be issues, but the above models seem to work OK (although walker looks quite different in mojo3d which I’ll look into).

    #12340

    Ethernaut
    Participant

    Cool, seems like it works fine here!

    The only reason the Walker model looks weird is because it’s intended to be a wireframe looking model, with no ambient light or environment map and emissive “wires”. Of course the PBR shader is not the best choice for that, but I was gonna deal with that later and try to write an “unlit” shader.

    Cheers.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.