Moguri / panda3d-gltf

glTF utilities for Panda3D
BSD 3-Clause "New" or "Revised" License
82 stars 19 forks source link

gltf2bam makes animations stop working #130

Open aniongithub opened 11 months ago

aniongithub commented 11 months ago

Converting two GLBs (filebin link),

  1. Containing the skin, vertices and a single-frame animation that's similar to the bindpose (tpose.glb)
  2. Containing an animation that references the same skeleton as in tpose.glb

Makes the resultant bam files un-usable as an animated actor. I loaded them up as usual using self.actor = Actor("data/tpose.bam", { "samba": "data/samba.bam" }) and then called self.model.loop("samba"). However, this resulted in no animation at all.

image

Note that I've previously converted these two glbs into egg files using Blender and that loads and works perfectly in panda3d. The issue happens when I try to use gltf2bam from panda3d-gltf to convert the file.

PS: What's also curious is that the source GLB is 19.9 MB and the generated bam file is 152.5 MB(!). Not that I care at this time, but that was interesting and I thought it worth mentioning.