probiner Posted November 12, 2018 Share Posted November 12, 2018 (edited) I'm meddling with Heightfields and one thing that seems to be missing int the workflow and amazed me in 3DSMax Forest plugin is the convert masks to curves. Is there a way to create isolines in Houdini from either @height or @mask? I'm looking into creating road/river/track networks into terrain so if there's any good reference to follow let me know, thanks. For now I'm just generating them irrespective of the heightfield. Edited November 12, 2018 by probiner Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 12, 2018 Share Posted November 12, 2018 not sure if I'm on the right track ...but did this as an exercise anyway... vu_isolines.hiplc 1 Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted November 12, 2018 Share Posted November 12, 2018 I think you need to convert to geometry, and then make slices. I don't think you can go from volume straight to curves, i.e. an n-gon. Quote Link to comment Share on other sites More sharing options...
probiner Posted November 13, 2018 Author Share Posted November 13, 2018 (edited) Ok, so with the help on Discord later today, first I tried Boolean and then Voronoi, but those required to convert to geometry. So then I had another idea, using Trace SOP with the Heightfield as a COP! This way the isolines are sampled directly from the image! Just be sure to use a color plane, like the default C. Don't use single channel like the ones created by the "SOP Import" button. Single channels for some reason will bug the Trace SOP. Wasted a lot of time figuring out they were the cause. There must be a logical reason but I don't know yet. COPs + Trace ftw! Thanks for looking into it Noobini! Edited November 15, 2018 by probiner 2 Quote Link to comment Share on other sites More sharing options...
probiner Posted November 27, 2018 Author Share Posted November 27, 2018 Quick tut about it. Cheers 2 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted November 27, 2018 Share Posted November 27, 2018 Just in case here is another procedural solution using heightfield conversion and booleans. height_lines.hip 2 Quote Link to comment Share on other sites More sharing options...
petz Posted November 27, 2018 Share Posted November 27, 2018 On 13.11.2018 at 2:11 AM, probiner said: Ok, so with the help on Discord later today, first I tried Boolean and then Voronoi, but those required to convert to geometry. So then I had another idea, using Trace SOP with the Heightfield as a COP! This way the isolines are sampled directly from the image! Just be sure to use a color plane, like the default C. Don't use single channel like the ones created by the "SOP Import" button. Single channels for some reason will bug the Trace SOP. Wasted a lot of time figuring out they were the cause. There must be a logical reason but I don't know yet. COPs + Trace ftw! Thanks for looking into it Noobini! here's another one which might be faster by avoiding the foreachLoop. hth. petz isolines.hipnc 3 Quote Link to comment Share on other sites More sharing options...
probiner Posted November 27, 2018 Author Share Posted November 27, 2018 (edited) 21 hours ago, petz said: here's another one which might be faster by avoiding the foreachLoop. hth. petz isolines.hipnc Thanks Petz, nice approach, to focus more on COPs operators to perform things that are more natural to image than SOP making full use of the enviorment! I guess the only "challange" is to get a consistent "u"/ height for the whole points of each slice. Thanks! Only change I would do is to sample the hf directly: 22 hours ago, konstantin magnus said: Just in case here is another procedural solution using heightfield conversion and booleans. height_lines.hip Thanks konstantin, I tried converting the hf to mesh and then boolean and found it quite slow. But it's obvious one of the first ideas to try. I found the voronoi fracture, with a vertical line, to provide similar results, faster and more consistent in this particular case. Cheers! Edited November 28, 2018 by probiner 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.