Player-controlled "Paint-able" Material

Hello all,

So, I’m trying to make a game mechanic where a player can draw/paint on a series of meshes using a leap controller. I have the ray tracing and hit detection for the finger controller working, but now I’m trying to create a material that can Lerp/Blend/etc between two colors using an “on hit”-like effect.

I’ve been scrounging through the answerhub for quite a few hours now, and I’ve tried cannibalizing other solutions (like the snow fall material examples); however, most of the solutions utilize some form of predetermined masking or vertex normal direction to lerp between two materials or colors.

How would I go about: “If finger-laser hits the material, change the color at the impact point (vertex, pixel, whatever works) from red to blue”? Is a system like this possible with deferred rendering, or do I need to get clever with decal spawning or mesh deletion/creation?

Thanks for your time :),

Hey -

Currently there is not away without referencing a predefined mask to allow a player to paint a section via the hit effect as you describe. You could spawn decals to get the look currently but depending on the usage and amount you might run into some performance issues.

We currently have a feature request in to allow changing of vertex colors at runtime but it will be a while before this request can be integrated into the engine.

Thank You

Eric Ketchum