Partially change material of mesh at runtime
Hi all, I would like to have a dipping effect at runtime, which means that a mesh can change its material for those parts that intersected another volume. It's like dipping a brush into a paint bucket and then pull it out again. Those parts that have been dunked into the paint have then permanently a new material. Is this something one can implement with ue4? Any ideas? Thanks for your help!
Hello Carl Mahnke,
This is something that is possible, but will require some intermediate to advanced knowledge of Dynamic Material Instances and Material Parameter Collections in order to change the affected object's material at runtime. To learn more about these techniques, we have some really helpful documentation that you can follow to understand it better.
Material Parameter Collections
In your case, you will probably want to have the mask as an alpha with additive color and modifiable opacity. This way, when you dunk the paint brush into the color, you can set the opacity of the mask to an opaque value, and add color at the same time.
answered Jan 03 '16 at 07:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here