question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

USDZExporter: Support metalness/roughness factor and Image combination

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently in usdzExporter , the roughnessMap and metalnessMap is only exported if roughness is 1 and metalness 1. https://github.com/mrdoob/three.js/pull/22201 this was due to the limitation that usdz generated does not have support for both a factor and image .

A clear and concise description of what the problem is. On a metal ring model I exported which had roughness of 0.75 and a dark roughness map , due to the conditions above the image was skipped and the model was exported with just float inputs:roughness = 0.75 which made the usdz model very rough and inconsistent with the three js render

Describe the solution you’d like Since there have been some good updates from @sunag and @yuta-hayashi ,I was wondering if we can revisit this topic and implement a alternate solution

fiddle to Test

USD

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sunagcommented, Jun 7, 2022

I was looking for references but only found this one based on NodeGraph: Do you know some other reference too?

https://github.com/PixarAnimationStudios/USD/blob/dev/pxr/usd/usdMtlx/testenv/testUsdMtlxFileFormat.testenv/baseline/NodeGraphs.usda

0reactions
optimus007commented, Sep 1, 2022

@elalish The case of zero textures and just factors like roughness:0.1 and metalness:1 should export correctly , like you said that error message can be caused due to wide variety of reasons (one silly case i remember is presence of symbols in the material names )

Made a fiddle please test it out, (the usdz file can renamed to .zip and can be opened on any os and the materials info can be checked)

Read more comments on GitHub >

github_iconTop Results From Across the Web

PBR Texture Conversion - Marmoset
Easy to use illogical reflectance values which gives inaccurate results. Uses more texture memory than the metalness workflow. Pros of the ...
Read more >
USD Terms and Concepts - Pixar Graphics
Composition arcs are the “operators” that allow USD to create rich compositions of many layers containing mixes of “base” scene description and overrides....
Read more >
Cinema 4D S26 April 20, 2022 - Knowledge Base - Maxon
Redshift CPU All Cinema 4D users can now work with Redshift Materials, Lighting and Rendering on any hardware with Redshift CPU support...
Read more >
Real-time Asset Creation Guidelines - Khronos Registry
If an asset uses this material type, we recommend to convert the material into a PBR Metalness Roughness material. Page 65. Image by...
Read more >
Reflection — AMD Radeon ProRender
In metalness mode, at a metalness of 1 gives the object a reflection color of colored metal, and at 0, the object is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found