Hello,
Is there a way, through magma flow, to have a PRT volume get the diffuse colors from the multi sub material that is assigned to the underlying Geo?
thanks!
-Christian
Hello,
Is there a way, through magma flow, to have a PRT volume get the diffuse colors from the multi sub material that is assigned to the underlying Geo?
thanks!
-Christian
Yes.
Here is a Box with 6 sub-materials assigned.
If you make a PRT Volume from it, it will only use the first. (if you used the MacroScript / icon to make the PRT Volume, it will automatically be assigned the same Material, too).
Then add a Magma and sample the nearest point on the surface of the PRT Volume’s source geometry for the MtlIndex channel, and output the result as MtlIndex.
This will force each particle to evaluate the sub-material of the closest surface. This should work of course with any geometry, not just a Box.
[attachment=0]KMX2_MtlIndex_From_Geometry_v001.png[/attachment]