Scatter Points over surface

   3755   2   0
User Avatar
Member
12 posts
Joined: May 2014
Offline
Hey,

I'm really at a loss at how to do this. So I thought I'd ask:

I have a curve that's drawn in Houdini. The curve is closed so it's a polysurface. The polysurface can change shape, but it's often a concave 2d object. So getting the objects bounding box's center doesn't give good results on something that is say a “C” shape.

I'd like to be able to scatter a set of points across this surface. However, is it possible to scatter the points so that they are more dense in the ‘middle’ of the surface? Or less dense on towards the exterior edge loop.

And if possible can I color the points to reflect the density?

I hope that's explained OK. Any push in the right direction is always massively appreciated.

Thank you!
User Avatar
Member
133 posts
Joined: July 2005
Offline
1. Isolate the edge points on the concave “c” surface.
2. Color them red.
3. Use attribute transfer with a nice “blend” width.
4. Invert the color attribute.
5. Scatter by Cd.

You can, of course, use a float attribute. But color is easier to see.
Francisco Rodriguez
Effects Animator | Walt Disney Animation Studios
User Avatar
Member
12 posts
Joined: May 2014
Offline
Hi fxrod,

That worked perfectly! Thank you. I had no idea what the attribute tools did. After reading up on it, I followed your steps and it worked perfectly.

Thank you .
  • Quick Links