InstaMAT Studio allows you to create custom masks with the Element Graph that you can use in Asset Texturing projects.
To create a mesh mask that automatically works in Asset Texturing projects, the Element Graph must be configured properly. This involves creating specific inputs, outputs, and setting a specific project category.
The graph must have the following inputs:
ElementMesh
input with the name "Mesh".Enum
input with the name "MeshRenderMode.
By Material
and By Submesh
.ElementString
input with the name "MeshRenderFilter".
*
initially to include all meshes by default.The graph must have a ElementImageGray
output with the name "Mask".
The graph project must have its category set to "Mesh/Mask".
A quick way to create the proper graph inputs for the mask is to bring in a Mesh Mask
node and expose its inputs. The Mesh Mask
node does not need to be connected to any other nodes in the graph.
In this example you can see that the Mesh Render Mode
and Mesh Render Filter
inputs have been exposed from a disconnected Mesh Mask
node while the Mesh
input is used for further processing in the graph.
Once created, the mask can now be used in Asset Texturing projects by doing the following:
Add Mask
button and select Pick from library...
from the dropdown menu.Note: If the mask is in the current package, make sure the
Show Objects from the Current Package
filter is selected in the Resource Picker's toolbar.