0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Unityで後ろのMeshが映り込む場合の対処法: DepthWrite

Posted at

Phoenix bird というFBXをUnityで扱う際に,後ろのMeshが映り込む現象があったのでその対処法です.

image.png

適用前

Depth Write OFF & Alpha Clipping OFF

image.png

image.png

なぜ後ろのMeshが映り込むのか?

羽のような薄いパーツのある3Dモデルの場合,Meshを節約するために,Planeオブジェクトのように厚みのない2D的なMeshにテクスチャを張るという手法がよくつかわれます.

image.pngmesh.png

こういった場合に,描画の仕組み上,前面のMeshと後ろの 厚みのない2D的なMesh が前に出てくる場合があります.

mesh2.png

適用後

この対処法として,Depth Write(カメラからの深度を使う)をオンにすると,この問題が解消されます.

Depth Write ON & Alpha Clipping ON

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?