Cesium Man file contains negative keyframe times?

Hello,

Perhaps I’ve made a mistake in parsing but it would seem CesiumMan.gltf has some negative keyframe/sample times in it? I found another thread which said GLTF 2.0 doesn’t support that though?

Could anyone comment on what might be happening here? I think my parsing is correct as everything except data obtained from the final sampler seems fine.

negative start time: -0.0200001 at accessor: 54 / sampler: 78
negative start time: -0.0200001 at accessor: 54 / sampler: 78
negative start time: -0.0203705 at accessor: 54 / sampler: 78
negative start time: -0.0212964 at accessor: 54 / sampler: 78
negative start time: -0.0225001 at accessor: 54 / sampler: 78
negative start time: -0.0237038 at accessor: 54 / sampler: 78
negative start time: -0.0246297 at accessor: 54 / sampler: 78

I think something might be off in your parsing code, opening the model in https://gltf.report it doesn’t appear to have negative inputs here:

Similarly the accessor definition gives the expected minimum:

    {
      "bufferView": 4,
      "byteOffset": 3456,
      "componentType": 5126,
      "count": 48,
      "max": [ 2 ],
      "min": [ 0.04166661947965622 ],
      "type": "SCALAR"
    },
1 Like

Thanks so much for taking the time Don, I’ll double check my parse code.