soham Posted August 10, 2011 Share Posted August 10, 2011 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 Quote Link to comment Share on other sites More sharing options...
mawi Posted August 10, 2011 Share Posted August 10, 2011 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 Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted August 10, 2011 Share Posted August 10, 2011 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 Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted August 11, 2011 Share Posted August 11, 2011 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 Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted August 11, 2011 Share Posted August 11, 2011 ehsan, it's a nice solution. Saved! Quote Link to comment Share on other sites More sharing options...
heiligeslama Posted August 11, 2011 Share Posted August 11, 2011 (edited) Another approach might be using a lattice sop. latticeApproach.hip Edited August 11, 2011 by heiligeslama Quote Link to comment Share on other sites More sharing options...
soham Posted August 11, 2011 Author Share Posted August 11, 2011 @ALL wow.. its good to have so many options.. i will try to use each of them and will see which will be most suitable. Thanks a lot guys, i appreciate the help. and thanks for the advice Michele. Quote Link to comment Share on other sites More sharing options...
kursad Posted August 12, 2011 Share Posted August 12, 2011 (edited) 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 August 12, 2011 by kursad Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.