- Home /
dynamically painting on an object @ runtime
Hello People I am trying to basically make a coloring book, where the user can paint on an object with touch.
I think this would use recasting, but I am not sure how Texture2D.SetPixel works for this v. renderTexture.
Any advice is greatly appreciated
best,
~be
is this what you want? http://www.arongranberg.com/unity/unitypaint/
That was released a few years ago - probably not comp w U3d5 But I'll try Thanks!
Answer by Paulius-Liekis · Dec 09, 2014 at 10:27 PM
SetPixel method is not defined on RenderTexture class. It's only defined for Texture2D.
But you can always assign Texture2D as a texture on a shader, or you can do Graphics.Blit and copy Texture2D to RenderTexture.
Hmm Thanks Paulius
Seems like a lot of work for a coloring book.
The idea of assigning it to a shader is interesting. Then I could draw on any object using that Shader?
~be
Your answer

Follow this Question
Related Questions
Load font at runtime 0 Answers
Export objects to a .3DS file at runtime 1 Answer
how to add models dynamically at runtime in unity web output? 1 Answer
load 3d model.. edit on runtime and export asset bundle + metadata on runtime 0 Answers
How to create a cube in 2d view and scale it based on a point/anchor? Than visualize the cube in 3d. 1 Answer