Coder Social home page Coder Social logo

Comments (13)

wave-electron avatar wave-electron commented on August 15, 2024 1

I fixed it, now works in IOS 12. Watch the jointname - has to the same as the Skeleton... remember you showed me that!
rename the file to stepped.usdz to run.
stepped.usdz.txt

from gltf2usd.

wave-electron avatar wave-electron commented on August 15, 2024 1

@enzyme69 @kcoley @ox Another gotcha for making sure ios12 previewing doesn't fail. Always make sure you never assign more than one solid-color or material to a single mesh! This is why converting assets from SketchFab and other online sources is so problematic. This issue wasted hours of my time yesterday! I also found another really odd issue when you pair a bone animation mesh with a non animating mesh in the same model. Strange things are happening if the mesh is more complicated than say a cube mesh. I'm still trying to work out why this is happening... but it could be the reason some of these SketchFab assets have been so distorted after converting to usdz. Once I've finished testing I will post the files for reproducing.

from gltf2usd.

kcoley avatar kcoley commented on August 15, 2024 1

@enzyme69 @wave-electron I made some updates to the animation logic which allows some sketchfab models to animate. There is some twitching I am looking into. The other issue is the notion of attaching meshes to joint chains in glTF. I am not sure if/how that maps to USD yet, but looking into it.

I also updated my phone to the latest Beta (12.1) and was able to get animations to playback without the "skeleton root node trick"

from gltf2usd.

wave-electron avatar wave-electron commented on August 15, 2024 1

@kcoley

Great work!.... Thanks for the update. Will try and test the new version out tomorrow & give you some feedback.

from gltf2usd.

kcoley avatar kcoley commented on August 15, 2024

@enzyme69 are you trying to do step animations in glTF, which would look more like a 3D stop motion? There is a sample model in the glTF-Asset-Generator that demos this: https://github.com/KhronosGroup/glTF-Asset-Generator/tree/master/Output/Animation_Node
You can check out model 03.

Or are you wanting to use an animated sequence of images in glTF? If so, this isn't supported without a custom extension.

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

Thanks, will try~

Yes that is right, this is 2 questions in one, wanting to do both:

  • Animated Sequence APNG
  • Stop Motion "stepped keys" --> maybe will try this first.

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

@kcoley It might be me not doing it properly, but I cannot get "stepped key" animation to work.

3 keyframed Cube Position that supposed to pop from position A, B, C become linear interpolation.

On your example however, it seems to work on browser.

Wondering if USD or USDZ allow this?

from gltf2usd.

kcoley avatar kcoley commented on August 15, 2024

@enzyme69 ah right, I have an upcoming fix in my refactor_skeleton branch which should handle animation interpolation baking. I'll try to get that ready tonight or tomorrow for you to test.

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

USDZ_stepped.zip

I attached the Blend (open with Blender 2.79). It's a simply basic animation with "stepped keys".

The resulting animation is still interpolated as linear, eventhough the motion is really fast.

I am trying to recreate this:
https://www.youtube.com/watch?v=6dsr8uXA5qE

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

Note:
Animation works in MacOS, but failing again on iOS 12 GM! 🤔

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

@wave-electron Thanks I realized I gotta keep the "/Armature/" in the hiearchy.

BEFORE:
screen shot 2018-09-14 at 8 06 13 am

AFTER:
screen shot 2018-09-14 at 8 05 58 am

Related to:
#53

OK now back to the "stepped key stop motion case":
So yes, the stepped seems to be interpolated, there is this weird pop. I will now research how GLTF handles stepped key properly.

from gltf2usd.

enzyme69 avatar enzyme69 commented on August 15, 2024

@wave-electron yes, Sketchfab assets are kind of "problematic". I did not find any GLTF animated asset that works 100% I guess it needs to be case by case until we reach a perfect result 😓

There seems to be no proper standard with GLTF ... Well, if I export my own animation from Blender using Khronos Group, at least I can say the pattern would be similar.

But a lot of artists uploaded just the BLEND or FBX file to Sketchfab and then Sketchfab automatically generate the GLTF. Sketchfab also auto convert FBX file to their own custom GLTF.

I am going to try my own character that is not a basic box or tentacle, and see how it goes!

from gltf2usd.

kcoley avatar kcoley commented on August 15, 2024

Closing this for now

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.