Coder Social home page Coder Social logo

Bug in some animation models about gltf2usd HOT 9 OPEN

kcoley avatar kcoley commented on September 17, 2024
Bug in some animation models

from gltf2usd.

Comments (9)

wave-electron avatar wave-electron commented on September 17, 2024 1

After several hours of trying today. I built up my own bone animation from scratch using a 3dwarehouse model of hand

I built the joint structure & created different poses in Cheetah 3D. Then exported as Collada Model. I imported into Blender in order to use the GLTF 2 exporter. After using the gltf2GLTF command tool , I edited the usda file fixing the Joint name manually to overcome that bug relating to #22. The result is the model in my gallery at fusionar.app. Finally found a way to create these bone animations from scratch!

from gltf2usd.

wave-electron avatar wave-electron commented on September 17, 2024

@kcoley what is interesting about the first model
https://sketchfab.com/models/710bbaccf8a442ea9b900354361f6d5a

Its actually animating correctly in xcode beta 6. I've attached a mov file showing the animation working (unzip to run)
spiderman_animation_xcode10_beta6.zip

Attached is the resulting usdz (non-animating t-pose).
spiderman.usdz.zip

It may be a bug with an Apple usdz displaying in Safari?

from gltf2usd.

kcoley avatar kcoley commented on September 17, 2024

@wave-electron that is interesting. Based on some of the weird distortions on certain frames, this leads me to believe it is because some key frame animation data may be missing. I'll check the logic there. Thanks for the reference!

from gltf2usd.

wave-electron avatar wave-electron commented on September 17, 2024

I just had a look at the animation again in xcode. I also noticed some flashing black disortions on the keyframes. Maybe it is that!

from gltf2usd.

wave-electron avatar wave-electron commented on September 17, 2024

@kcoley

Did you notice this comment by Spiff today in the usd-interest group?

Spiff - From a strictly USD perspective, there are no layering problems. However, (and I know ModelIO doesn't currently care, but we hope it will in the future) there is a problem with your construct. Valid skeletal animation and geometry must be located under a "SkelRoot" prim. So, in your file, either /root/node0 or /root/node0/node2 should be a "SkelRoot" prim rather than "Xform". Also, we try to put the skel:animationSource and skel:skeleton bindings on the SkelRoot, when possible.

I've noticed we use Xform rather than SkelRoot in the bone animations I've been building.

UsdSkel

from gltf2usd.

wave-electron avatar wave-electron commented on September 17, 2024

Spiff comments were in respect to this 01.usda file inside this CesiumMan.zip..... 01.usda animates in xcode10 beta 6, but only previews with no animation in IOS 12 beta 12.

CesiumMan.zip

from gltf2usd.

wave-electron avatar wave-electron commented on September 17, 2024

@kcoley what is interesting about the first model
https://sketchfab.com/models/710bbaccf8a442ea9b900354361f6d5a

Its actually animating correctly in xcode beta 6. I've attached a mov file showing the animation working (unzip to run)
spiderman_animation_xcode10_beta6.zip

@ox @kcoley The problem with the spiderman not animating in IOS 12 was fixed by ensuring the first jointname is by itself and not part of the jointname path as suggested in closed issue 22. However, the animation of spiderman jumping is not scaling correctly in IOS 12.

Sample usda and usdz of spiderman at least working in IOS12 now!
spiderman_working.usdz.zip

from gltf2usd.

kcoley avatar kcoley commented on September 17, 2024

@wave-electron thanks for the note on the SkelRoot. I can look into that. Also cool that the model at least works on iOS! Looking at the usda file, I see the problem with the popping animation due to some missing values for some of the joints at certain frames. I thought I had resolved this, but I must have missed some cases. I'll work on fixing that.

from gltf2usd.

ox avatar ox commented on September 17, 2024

ahh interesting. I create a SkelRoot with a Skeleton + SkelAnimation inside it in #36. However I have a feeling that my changes to support blend shapes will probably break normal rigging animations. Do you have any models that have blendshapes + animations?

from gltf2usd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.