#Power Wash Simulator Mechanic

1 messages · Page 1 of 1 (latest)

silent lava
#

Followed a tutorial which uses render targets for "painting" to an object. https://www.youtube.com/watch?v=dtZasNTv56U& Afterwards, I developed a way to calculate the percentage that is cleaned, and when it exceeds a threshold it cleans the whole object. In this example I set the threshold to 50%. The print statements tell you the average pixel color.

#

ps. could not find much help at all on doing this but the solution is pretty simple. You make the render target for the opacity layer generate MIP levels, then pass the render target as a 2D texture into a simple unlit material. Then apply the material to a 1x1 render target

#

not sure how performance is, i would assume you wouldnt wanna calculate it too often but much better performance than looping through all of the pixels

silent lava
#

a dynamic method that allows the painter to be applied to any blueprint and mesh