-
Notifications
You must be signed in to change notification settings - Fork 423
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
VRMを出力する際の色情報について #301
Labels
Milestone
Comments
インポート側もリニアとして入力する必要がありそうですね。 |
ご報告ありがとうございます、詳しく確認したところ以下のような状態になっていました。 通常の Color Property の RGB Channel
HDR Attribute 付き Color Property の RGB Channel
普通/HDR の Alpha Channel
この件の対応として、gltfの領域に書き込まれているColor 値に関しては次のUniVRMバージョンで修正し、VRM(MToon)の領域に関しては specification=0.0 では今の状態を仕様とし、Material拡張対応(#175)と合わせて1.0で修正するissueを切ります。 |
#339 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
バグについて
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#pbrmetallicroughnessbasecolorfactor
gltfマテリアルの仕様では色情報について、リニアであるとされています。
しかし、VRMに出力されている色情報は、gltf、VRM拡張共にカラーピッカーそのままの値、つまりsRGB空間で保存されています。
再現方法
MToonの色設定を(0.5,1,1,1)でVRMを出力します。
VRM出力時に期待される色情報はおおむね(0.21586,1,1,1)になりますが、gltf、VRM拡張共のjsonには(0.5,1,1,1)で記録されています。
環境情報
Windows 10
]0.53.0
]The text was updated successfully, but these errors were encountered: