Texture paint, then transfer color to points

   4448   4   1
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
Hi I am pretty new to this, hope you can help me….

I want to dress some crystals on a terrain. I like to “paint” where I think the crystals should appear.
I use “paint” node to distribute scatter, that work as expect.
however, if I changed the terrain mesh or use a different terrain, I lose the “distribution”, all previous painted points are shifted.



1. I wondering what I can do so my painted point/distribution always stick to the same location?
2. Can I paint texture (projected UV map) in Houdini and have color transfer to points? I assume by projecting UV map on the terrain, I can keep changing terrain mesh while maintaining the color/distribution information.

Thanks for helping me. I also attached my working file in this thread….thank you so much

Attachments:
Screenshot at 2020-04-01 12-26-24.png (1.1 MB)
Question.gif (2.4 MB)
TexturePaint_Points.hip (728.7 KB)

User Avatar
Member
9416 posts
Joined: July 2007
Offline
yes, you can have uv attribute and then use Attrib From Map SOP to load colors from texture as a point attribute

or you can use new Attribute Paint in H18, and recache the strokes when you change the topology, depending on mode you don't even need uvs
https://www.sidefx.com/tutorials/attribute-paint-h18-masterclass/ [www.sidefx.com]
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
Thanks Tomas

Thanks for the tips, Im looking into it.
Can we paint straight on a texture and save the texture from Houdini?

Frank
User Avatar
Member
9416 posts
Joined: July 2007
Offline
No, you can only paint attribute values

Technically if you have point per pixel then yes, as it's easy to bring that data to COPs and save an image, but that would not be the most ideal workflow for texture painting I guess
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
Got it, thanks Tomas!
  • Quick Links