assimp / assimp-net

Automatically exported from code.google.com/p/assimp-net
196 stars 83 forks source link

Observed incorrect DurationInTicks when loading .GLB models. #54

Open willmotil opened 4 years ago

willmotil commented 4 years ago

Using Assimp.net nuget ver 5.00beta. Os win10 Language C# Graphics framework Monogame, utilizing a desktop GL type project.

Observed apparent incorrect DurationInTicks when loading .GLB models. For Fbx and other files the animation times seem to be correct.

Celesium Man
modeltestEx06_slow don't mind the textures the shaders aren't in there yet still have to figure all that out.

The .GLBs seem to import some where about 10x to slow like a extra 0 is stuck on animation duration. I didn’t test this for regular gltfs and im just getting my viewer up and running.

Since its just the two values and the fbx timings are still ok. It seemed that this shouldn't be related to my own code so i posted this as a issue.

Here is a little output of the two values.

Anim #[0] Name:

DurationInTicks: 2000 TicksPerSecond: 24.5 DurationInTicks / TicksPerSecond: 2000 / 24.5 sec. total duration in seconds: 81.6326530612245

I have one animation that is about 90 seconds long and it ends coming out to be 900 seconds long. Not to big of a deal i speed it up by about 10 or so it looks about right but it appears to be a bug .