Jump to content

Curve on Mountain??


soham

Recommended Posts

Hi Guys,

Could anyone help me on how to create a poly curve on an uneven grid (say a mountain or a terrain) and the curve should displace(in Y axis) according to the height of the grid.

Many Thanks :)

Use the ray sop to "project" the points onto the grid.

ray.hip

Link to comment
Share on other sites

You defeated me! :)

As mawi said, you have to use the RAY Sop.

I've used other SOPs too and the projected curve is animated, just to give you more material to work with.

If you want to create a project with Houdini, I strongly suggest you to plan every little thing, then moving on step after step, especially if you will work with its procedural modeling.

raySOPvsMountain.hipnc

Link to comment
Share on other sites

Although Ray sop might be easier and better to use, but you can also use attribute transfer node,and create a new attribute from your terrain's $TY, and transfer it to your line points, and with a point sop or a vop sop change your $TY to the transferred attribute (whatever you called it, in my file it's called height).

curve_yposition.hip

Link to comment
Share on other sites

Although Ray sop might be easier and better to use, but you can also use attribute transfer node,and create a new attribute from your terrain's $TY, and transfer it to your line points, and with a point sop or a vop sop change your $TY to the transferred attribute (whatever you called it, in my file it's called height).

You can also use "P" attribute directly in the point box of the Attribute Copy SOP. Then create a Point SOP after it. Connect the first input to your original line then connect the second input to Attribute Copy Sop. Then enter "$TY2" in the point SOP`s "$TY" box

Edited by kursad
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...