When converting from URP Lit to PBRGraph the MetalGloss Texture Swizzle and PBRGraph Settings are set incorrectly.

オープン
#834 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@robertdorn83 がすでに取り組んでいます。

2025年4月4日 から。

評価

この issue はまだ評価されていません。

説明

bug export
Describe the bug 💬

When converting from URP Lit to PBRGraph, the following message appears:
The Metallic (R) Smoothness (A) texture needs to be converted to Roughness (B) Metallic (G). This is done by swizzling texture channels in the importer. Do you want to proceed?
This message is already incorrect, because we need to convert to ORM, not OMR.

This is the resulting incorrect Swizzle: B, 1-R, G, A
I think the correct one would be: 1 (No Occlusion Data available), 1-A (Roughness), R (Metalness), 1 (Alpha, not neccessary)

When using this correct swizzle I still need to set the Roughness and Metallic sliders of the PBRGraph Material to 1.

After that, the result is almost identical to a native glTF Export with an ORM texture.

For some reason the sRGB (Color Texture) checkbox in the MetalGloss texture which we are swizzling needs to be turned off, to get the 100% correct result.

All of these steps should be made automatically in the conversion process.

Steps to reproduce 🔢
  1. Setup a URP Lit Material with Diff, MetalGloss and Normal map.
  2. Convert to PBRGraph
  3. Incorrect Result

Use the Settings mentioned in my report to get the correct result.

Files to reproduce the issue ♻

No response

Editor Version 🎲

6000.0

Render Pipeline and version

URP 17.0.4

UnityGLTF Version

2.16.0-pre.2

Operating System 👩‍💻

Windows

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

No response

Validations 🩹
主要言語
C#
スター
2.3k
フォーク
539
平均マージ
3日 15時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KhronosGroup/UnityGLTF のほかの issue

KhronosGroup/UnityGLTF の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。