How to convert HeightField to mesh by mask?

   2642   8   0
User Avatar
Member
23 posts
Joined: 10月 2021
Offline
I have seen many cases where parts of the HeightField are transformed into mesh(for example: https://www.sidefx.com/forum/topic/68147/), but how is this done?
The Convert HeightField node does not support access mask and can only convert the entire HeightField to a mesh.
Edited by misakacirno - 2022年8月19日 04:33:10
User Avatar
Member
6 posts
Joined: 6月 2021
Offline
You can use a HF Cutout by Object node (https://www.sidefx.com/docs/houdini/nodes/sop/heightfield_cutoutbyobject.html), which will convert the Height Field into a VDB, then convert it to polygons with a VDB convert node.

Attachments:
Capture.PNG (427.8 KB)

User Avatar
Member
23 posts
Joined: 10月 2021
Offline
大卫·米奥齐
You can use a HF Cutout by Object node (https://www.sidefx.com/docs/houdini/nodes/sop/heightfield_cutoutbyobject.html), which will convert the Height Field into a VDB, then convert it to polygons with a VDB convert node.
Thanks for your reply, but this way can only get regular areas, and I want to get some specific areas by Mask By Feature, this way doesn't seem to work.
User Avatar
Member
6 posts
Joined: 6月 2021
Offline
Mask layers get converted into point attributes, so you can use some vex...

Attachments:
Capture.PNG (466.4 KB)

User Avatar
Member
28 posts
Joined: 11月 2016
Offline
You could just convert your entire heightfield to a mesh and delete the parts you dont want.

Attachments:
heightfield_cutout.hipnc (198.9 KB)

User Avatar
Member
7779 posts
Joined: 9月 2011
Online
misakacirno
大卫·米奥齐
You can use a HF Cutout by Object node (https://www.sidefx.com/docs/houdini/nodes/sop/heightfield_cutoutbyobject.html), which will convert the Height Field into a VDB, then convert it to polygons with a VDB convert node.
Thanks for your reply, but this way can only get regular areas, and I want to get some specific areas by Mask By Feature, this way doesn't seem to work.

The channel used for cutout is Alpha, although getting houdini to understand that the layer called 'alpha' is for cutout is another problem entirely.
User Avatar
Member
23 posts
Joined: 10月 2021
Offline
DavideMiozzi
Mask layers get converted into point attributes, so you can use some vex...
This is very enlightening for me, thank you very much!
User Avatar
Member
23 posts
Joined: 10月 2021
Offline
gorrod
You could just convert your entire heightfield to a mesh and delete the parts you dont want.
Very detailed answer, I think this should be what I want!
User Avatar
Member
23 posts
Joined: 10月 2021
Offline
jsmack
misakacirno
大卫·米奥齐
You can use a HF Cutout by Object node (https://www.sidefx.com/docs/houdini/nodes/sop/heightfield_cutoutbyobject.html), which will convert the Height Field into a VDB, then convert it to polygons with a VDB convert node.
Thanks for your reply, but this way can only get regular areas, and I want to get some specific areas by Mask By Feature, this way doesn't seem to work.

The channel used for cutout is Alpha, although getting houdini to understand that the layer called 'alpha' is for cutout is another problem entirely.
I've made a few attempts, but haven't managed to use mask as alpha.
  • Quick Links