Jump to content

Circle radius driven by distance to curve.


Tomasz Dabert

Recommended Posts

Hi,

I am begginer in Houdini so my problem is rather simple for most of you:) I wanted to make a tool that will scatter circles on surface and later the radius of the circles will be driven by the distance to the curve I drew on top of it (as in the picture). It is important that the radius will start to shrink only if distance is smaller then a certain value that I choose. Where would you guys start? Thanks in advance!

circles.jpg

Link to comment
Share on other sites

Have no idea what you are trying to do but, here is a quick method using the attribute transfer. Just adjust the deistance threshold or the blend width on the attritransfer to see what is going on. Definitely more than one way to pull off radius scaling like this though.

circle_radius.hip

Edited by rbowden
Link to comment
Share on other sites

10 hours ago, konstantin magnus said:

yes, attributetransfer + copy-stamping.

circles.hipnc

copy stamping is overkill for this :P,

personally I would just use a wrangle to calculate the distance
and apply a simpe pscale for the second copy input.

That should be enough for this (and will be faster if you want to go ultra-high resolution)

 

granted, copy stamping could be the best "beginner" solution...

Edited by acey195
Link to comment
Share on other sites

 

1 hour ago, Tomasz Dabert said:

How would you use the point wrangler?

You can put a function like "xyzdist" into the pointwrangle and connect it to the copy SOP.

f@pscale = xyzdist(@OpInput2, @P);

 As Twan mentioned its faster (and more compact). :D

circles2.hipnc

Edited by konstantin magnus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...