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

拡張子 glTF のファイルを UnityEditor で読み込むときに MetallicRoughness マップを PNG で保存する #587

Closed
Santarh opened this issue Oct 27, 2020 · 3 comments
Labels
colorspace gamma(sRGB) / Linear glTF
Milestone

Comments

@Santarh
Copy link
Contributor

Santarh commented Oct 27, 2020

Unity Editor で Import した glTF ファイルが参照する PBR の Metallic-Roughness 情報は
Unity の Standard Shader の入力に合わせてチャンネルを再解釈し asset ファイルとして Project に保存される。

しかしサイズ変更といった最適化や、内容の編集において asset ファイルは取り回しが悪く
png ファイルになっていたほうが望ましい。

@ousttrue
Copy link
Contributor

Linear

@ousttrue ousttrue modified the milestones: v0.63, v0.62, v0.64 Nov 10, 2020
@ousttrue ousttrue added the glTF label Jan 18, 2021
@ousttrue ousttrue modified the milestones: v0.65, v0.66.0 Jan 23, 2021
@ousttrue ousttrue modified the milestones: v0.66, v0.67 Feb 1, 2021
@Santarh
Copy link
Contributor Author

Santarh commented Feb 9, 2021

Import した Metallic-Roughness マップは内部値が Linear になっていると思われるため、そのときは Unity の EditorTexturrImporter の sRGB フラグをオフにしなければならない。

@ousttrue ousttrue modified the milestones: v0.67, v0.68, v0.69 Feb 10, 2021
@ousttrue ousttrue modified the milestones: v0.69, v0.68 Feb 25, 2021
ousttrue added a commit to ousttrue/UniVRM that referenced this issue Mar 2, 2021
@ousttrue
Copy link
Contributor

ousttrue commented Mar 3, 2021

glb は ScriptedImporter化しました。
extract 時に、

TextureImporterの設定

  • MetallicRoughness, Occlusion => sRGB = false
  • NormalMap => isNormalMap = true

となるようになりました。

@ousttrue ousttrue closed this as completed Mar 3, 2021
@ousttrue ousttrue added the colorspace gamma(sRGB) / Linear label Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
colorspace gamma(sRGB) / Linear glTF
Projects
None yet
Development

No branches or pull requests

2 participants