How to color terrain with mask by object in COPS?

   325   3   1
User Avatar
Member
35 posts
Joined: 11月 2008
オフライン
Hi, I have a torus shape fed into a height field mask by geometry going into a height field terrain, with the torus used to define mountains on the outside, and a sphere maskbygeometry node to define sand dunes, on the inside. Essentially, I'd like to use one COP net to define one shader setup for the mountains around the outside, and one for the dunes in the center.

I'm using a height field copy layer to feed each of these masks into separately named masks, that then make their way into a uvquickshade node, that gets picked up by the COPS node. I'm baffled with what to do in the COPS net though? I use a SOP import node to import the terrain. I'm able to feed that into the geotolayer node, which generates my mask for the mountain and dunes. I thought I could feed each mask into it's own constant, and then use a layer merge to combine those, but that doesn't work. I'd appreciate it if anyone could give me any pointers? Thanks!

Houdini file and images included.

Edited by seven6ty - 2026年8月30日 02:19:06

Attachments:
terrain_mask.png (8.1 MB)
terrain_cops_network.png (1.2 MB)
terrain_mask_colors.hipnc (728.3 KB)

User Avatar
Member
23 posts
Joined: 8月 2021
オフライン
Hello. I appended a revised hip file that will hopefully fix your issue. On colorcorrect nodes I disabled all parameters except Master ones. You can change mask color in "Master Mult" and optionally expand or shrink the mask further by changing "Master Gamma".

This is how my setup looks like:
Edited by Italimpex Productions - 2026年8月30日 12:07:05

Attachments:
REVISION_terrain_mask_colors.hipnc (821.0 KB)
setup.png (927.3 KB)

Italimpex Productions
CGI Studio specializing in directing and producing advertisements & films
User Avatar
Member
35 posts
Joined: 11月 2008
オフライン
Italimpex Productions
Hello. I appended a revised hip file that will hopefully fix your issue. On colorcorrect nodes I disabled all parameters except Master ones. You can change mask color in "Master Mult" and optionally expand or shrink the mask further by changing "Master Gamma".

This is how my setup looks like:

Oh, beautiful! Thank you so much.
User Avatar
Member
23 posts
Joined: 8月 2021
オフライン
You're very welcome! I also experimented with HSV Adjust and cloudnoise3d nodes so here's another idea how to layer different masks (height, debris, sediment, flow) to get more detailed version of the final mask.

I appended another hip file!

Attachments:
REVISION_terrain_mask_colors_V02.hipnc (581.3 KB)
setup_v2.png (1.3 MB)

Italimpex Productions
CGI Studio specializing in directing and producing advertisements & films
  • Quick Links