"Painting" in the scene

I’ve got a bit of a dilemma which has left me contemplating a few different solutions for the past few days. I’m trying to “paint” objects in the scene by following the mouse movements.

  • Mesh manipulation is right out, since the iPhone couldn’t handle the polys required to have that look even close to decent.
  • Using textures that get added to the scene would look a tad odd for any curves or sharp edges, and would be taking up resources over the life of the scene (as opposed to processing power just to add them)
  • Lastly, there is adding a color’d line (something similar to MS Paint or something,) following the mouse.

I’d prefer to go with the last option as I think it may provide the best look overall (maybe giving the line an alpha value to blend with the texture behind it. My questions are:
A) Can this be done?
B) How do I go about drawing a color on top of an existing texture?

A) Yes this could be done with a Trail Renderer and a Depth Mask shader ( http://www.unifycommunity.com/wiki/index.php?title=DepthMask ).

B) Do you want the color to blend or replace the existing texture?

Thanks for the quick reply. Preferably I’d like to blend the two and make the object’s existing texture darker. Enough to notice that there is a conscious pattern there (writing, drawing), but not much more than that.

Taking a look at the depth mask, would appreciate any more suggestions/links in the interim.

I was just wondering the same thing. I’m implementing the HUD for my game right now and the design calls for a curved health meter. I’m really not sure how to do something like using the GUI system.