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

法線の転写情報がMtoonで反映されない #327

Closed
Sugi-Chanchan opened this issue Oct 29, 2019 · 2 comments
Closed

法線の転写情報がMtoonで反映されない #327

Sugi-Chanchan opened this issue Oct 29, 2019 · 2 comments

Comments

@Sugi-Chanchan
Copy link

バグについて

Mtoonの仕様が新しくなってからRendering Mode:Opaqueで法線を転写した3Dモデルをレンダリングすると影の付き方がおかしくなります.
再現方法

  1. 法線を転写させた3Dモデルをunityに取り込む
  2. マテリアルを作成, シェーダーをMtoonにする
  3. Shade Colorを変えて陰影をつけると, rendering modeがOpaqueとCutoutのときには法線の転写情報が反映されていないことが確認できます.
    transparentとtransparentWithZwriteでは法線の転写情報が反映されています

期待する動作
MtoonのRerendering Mode: OpaqueとCutoutでの影の付き方がversion0.51以前に戻ること

スクリーンショット

ある場合は、問題の説明に役立つスクリーンショットを追加してください。

Rendering Mode : Opaque
スクリーンショット (4)

Rendering Mode : TransparentWithZwrite
スクリーンショット (5)

環境情報

  • OS: [e.g. Windows 10]
  • UniVRM version: [e.g. 0.53.0]
    -Unity version:[e.g. 2019.2.10f1] ([e.g. 2018.4.11f1]でも同様のことが起きることを確認)
@iCyP
Copy link
Contributor

iCyP commented Nov 30, 2019

seta_sibu_normal.zip
上記ファイルでも起こるか試してみてください。球法線をVroidの顔とスザンヌに転写し、MToon_opacue設定したものをVRMとしてblenderから出力したものです。

OS: [e.g. Windows 10]
UniVRM version: [e.g. 0.53.0]
unity[2018.3.8f1]
の環境では上記ファイルがopacueでもカスタム法線が反映されています
コメント 2019-11-30 190318

suzannu.zip
逆に、issueと同様と思われるfbxを作成しインポートしたところ、問題は再現しましたが、Mtoonを設定せずとも、standard shaderでも同じことが起こっており、fbx のIO系からくる問題ではないかと私は思います。

@hiroj
Copy link
Contributor

hiroj commented Jun 1, 2020

standard shaderでも起きている問題であることから、おそらくUnityのFBXImporterの互換問題かである可能性があります。(他のFBXビューアでsuzannuを見ても法線がおかしい)
UniVRMでは対処出来ないためCloseします。

@hiroj hiroj closed this as completed Jun 1, 2020
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

3 participants