Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USD file fail to load material and complains about missing tangents #1166

Closed
mwestphal opened this issue Jan 12, 2024 · 6 comments
Closed

USD file fail to load material and complains about missing tangents #1166

mwestphal opened this issue Jan 12, 2024 · 6 comments
Milestone

Comments

@mwestphal
Copy link
Member

Loading this file in F3D 2.3.0-RC1 fails to load materials and shows warnings about tangents:

https://sketchfab.com/3d-models/abandoned-warehouse-interior-scene-1d5285f2e0fd4211a27c8042496d5959

Loading 3D scene: /home/glow/tmp/Abandoned_Warehouse_-_Interior_Scene.usdz

Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/TexturesCom_WindowsBacklit0019_13_M/TexturesCom_WindowsBacklit0019_13_M_0/TexturesCom_WindowsBacklit0019_13_M_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/TexturesCom_WindowsBacklit0019_14_M/TexturesCom_WindowsBacklit0019_14_M_0/TexturesCom_WindowsBacklit0019_14_M_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/TexturesCom_WindowsBacklit0019_15_M/TexturesCom_WindowsBacklit0019_15_M_0/TexturesCom_WindowsBacklit0019_15_M_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/TexturesCom_WindowsBacklit0019_12_M/TexturesCom_WindowsBacklit0019_12_M_0/TexturesCom_WindowsBacklit0019_12_M_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Cube/Cube_0/Cube_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Cube_002/Cube_002_0/Cube_002_0) but MaterialBindingAPI is not applied on the prim
ERROR: In vtkPolyDataTangents.cxx, line 124
vtkPolyDataTangents (0x55e2349bfa90): Texture coordinates are requested to generate tangents.


ERROR: In vtkExecutive.cxx, line 730
vtkCompositeDataPipeline (0x55e235065330): Algorithm vtkPolyDataTangents (0x55e2349bfa90) returned failure for request: vtkInformation (0x55e235065d00)
  Debug: Off
  Modified Time: 18006
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0




Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Cube_001/Cube_001_0/Cube_001_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Plane/Plane_0/Plane_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Plane_002/Plane_002_0/Plane_002_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Plane_003/Plane_003_0/Plane_003_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Plane_004/Plane_004_0/Plane_004_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Plane_005/Plane_005_0/Plane_005_0) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/scene/Meshes/Sketchfab_model/Root/Cube_003/Cube_003_0/Cube_003_0) but MaterialBindingAPI is not applied on the prim

...
@Meakk
Copy link
Member

Meakk commented Jan 16, 2024

That's related to an issue I noticed recently. The UV set in USD files is assumed to be called st, but sometimes it has a different name (for sketchfab it's usually called st0).
I'll fix it soon.

@mwestphal
Copy link
Member Author

mwestphal commented Jan 17, 2024

Issue still present with another dataset:

https://www.fusionar.app/usdz/ball.usdz


Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/Mesh_0) but MaterialBindingAPI is not applied on the prim
ERROR: In vtkPolyDataTangents.cxx, line 124
vtkPolyDataTangents (0x56481a8d85a0): Texture coordinates are requested to generate tangents.


ERROR: In vtkExecutive.cxx, line 730
vtkCompositeDataPipeline (0x56481a93bd10): Algorithm vtkPolyDataTangents (0x56481a8d85a0) returned failure for request: vtkInformation (0x56481a8971a0)
  Debug: Off
  Modified Time: 17070
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

It looks fine in blender:

a

@Meakk
Copy link
Member

Meakk commented Jan 19, 2024

Fixed by #1188

ball_

@Meakk Meakk mentioned this issue Jan 19, 2024
@mwestphal
Copy link
Member Author

normals are wrong in this screenshot, are they not ?

@mwestphal mwestphal mentioned this issue Jan 20, 2024
@mwestphal
Copy link
Member Author

Normals looks strange with the ball.

@mwestphal
Copy link
Member Author

caused by #1178 , closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants