-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #998 from anatawa12/remove-mesh-by-mask
feat: Remove mesh by mask
- Loading branch information
Showing
19 changed files
with
539 additions
and
34 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
.docs/content/docs/reference/remove-mesh-by-mask/index.ja.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Remove Mesh By Mask | ||
weight: 25 | ||
--- | ||
|
||
# Remove Mesh By Mask | ||
|
||
マスクテクスチャで指定した範囲のポリゴンを削除します。 | ||
|
||
このコンポーネントは、SkinnedMeshRendererコンポーネントのあるGameObjectに追加してください。(分類: [Modifying Edit Skinned Mesh Component](../../component-kind/edit-skinned-mesh-components#modifying-component)) | ||
|
||
## 利点 {#benefits} | ||
|
||
服で隠れていたりして見えないような部分のメッシュを削除すると、見た目に影響させずに描画負荷やBlendShapeの処理負荷などを減らして軽量化することができます。 | ||
|
||
このコンポーネントを使用すると、アルファマスク用のテクスチャや、gatosyocoraさんの[MeshDeleterWithTexture]用のマスクテクスチャを利用して簡単にメッシュを削除することができます。 | ||
|
||
[MeshDeleterWithTexture]: https://github.com/gatosyocora/MeshDeleterWithTexture | ||
|
||
## 設定 {#settings} | ||
|
||
![component.png](component.png) | ||
|
||
メッシュのマテリアルスロットの一覧が表示されます。 | ||
マスクテクスチャによるポリゴンの削除を行う対象のマテリアルスロットを選択してください。 | ||
|
||
### マスクテクスチャ {#mask-texture} | ||
|
||
ポリゴンの削除に利用するマスクテクスチャです。 | ||
|
||
### 削除モード {#remove-mode} | ||
|
||
マスクテクスチャは物によって色が異なるため、対応するモードを選択する必要があります。 | ||
|
||
黒(に近い色)の場合にポリゴンを削除するように設計されているマスクテクスチャを利用する場合は、`Remove Black`に設定してください。\ | ||
白(に近い色)の場合にポリゴンを削除するように設計されているマスクテクスチャを利用する場合は、`Remove White`に設定してください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Remove Mesh By Mask | ||
weight: 25 | ||
--- | ||
|
||
# Remove Mesh By Mask | ||
|
||
Remove some polygons in any area specified by mask textures. | ||
|
||
This component should be added to a GameObject which has a SkinnedMeshRenderer component. (Kind: [Modifying Edit Skinned Mesh Component](../../component-kind/edit-skinned-mesh-components#modifying-component)) | ||
|
||
## Benefits | ||
|
||
By removing polygons which are hidden by clothes or something, you can reduce rendering cost, BlendShape processing cost, etc. without affecting the appearance so much. | ||
|
||
You can use this component to easily remove polygons with alpha mask texture or mask texture for [MeshDeleterWithTexture] by gatosyocora. | ||
|
||
[MeshDeleterWithTexture]: https://github.com/gatosyocora/MeshDeleterWithTexture | ||
|
||
## Settings | ||
|
||
![component.png](component.png) | ||
|
||
You'll see the list of material slots of the mesh. | ||
Select the material slots you want to remove polygons with mask texture. | ||
|
||
### Mask Texture | ||
|
||
The mask texture to remove polygons. | ||
|
||
### Remove Mode | ||
|
||
Since the mask textures have different colors depending on the case, you need to select the corresponding mode. | ||
|
||
When you use the mask texture which is designed to remove polygons if the color is (close to) black, select `Remove Black` mode.\ | ||
When you use the mask texture which is designed to remove polygons if the color is (close to) white, select `Remove White` mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.