f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.93k stars 216 forks source link

USD animation not working with multiple files #1168

Closed mwestphal closed 10 months ago

mwestphal commented 10 months ago

The animation in this file is not working and warnings shows up:

https://sketchfab.com/3d-models/phoenix-bird-844ba0cf144a413ea92c779f18912042

Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.
Coding Error: in _WriteToFile at line 4717 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/sdf/layer.cpp -- Cannot save layer @/home/glow/tmp/phoenix_bird.usdz@: writing package usdz layer is not allowed through this API.

Same with this file:

myhand.usdz

Meakk commented 10 months ago

Not sure about the warnings but the animations are not working with usdview and Blender, I think it's safe to assume there's an issue in the assets.
The textures are not showing up too but that's related to #1166

mwestphal commented 10 months ago

All animated files from https://fusionar.app/ are not working. I think there is an issue somewhere.

Edit: looking at it in blender, there indeed seems to be an issue with the rigging on all of these.

mwestphal commented 10 months ago

Here is an animated file that is not working in F3D but works fine in blender: https://developer.apple.com/augmented-reality/quick-look/models/vintagerobot2k/robot_walk_idle.usdz

mwestphal commented 10 months ago

And another one with animation working in blender but not in F3D: https://github.com/mwestphal/assets/tree/main/full_assets/ElephantWithMonochord

mwestphal commented 10 months ago

And another one: https://github.com/mwestphal/assets/tree/main/test_assets/USDZ/BrainStem

mwestphal commented 10 months ago

https://github.com/mwestphal/assets/tree/main/test_assets/USDZ/CesiumMan

mwestphal commented 10 months ago

And another, very simple, one: https://github.com/mwestphal/assets/tree/main/test_assets/USDZ/RiggedSimple

mwestphal commented 10 months ago

confirmed fixed.