Houdini 22.0 Nodes Copernicus nodes

HeightField Mask by Feature Copernicus node

Creates a mask based on different features of the heightfield.

On this page

This node creates a single mask by measuring different characteristics of the heightfield. When more than one feature is measured, the resulting mask layer is the composition of each feature using the Blend Mode.

Parameters

Smooth Radius

The blur radius in local space used to smooth the input heightfield before the features are measured.

Blend Mode

When more than one feature is being measured, you can choose a compositing operation to combine each feature’s mask.

Add

Add the feature masks together.

Multiply

Multiply the feature masks together.

Average

Compute the average value of the feature masks.

Minimum

Compute the minimum value of the feature masks.

Maximum

Compute the maximum value of the feature masks.

Invert Mask

When enabled, inverts the resulting mask values.

Slope

Mask by Slope

Generate a mask based on the slope of the heightfield.

Min Slope Angle

Mask areas with slope greater than or equal to this value.

Max Slope Angle

Mask areas with slope less than or equal to this value.

Slope Ramp

Controls the value of the mask over the range from the Min Slope Angle to the Max Slope Angle.

Height

Mask by Height

Generate a mask based on the height.

Compute Range

Click to fill in the Min Height and Max Height parameters with the minimum and maximum values of the input height layer.

Min Height

Mask areas with height greater than or equal to this value.

Max Height

Mask areas with height less than or equal to this value.

Height Ramp

Controls the value of the mask over the range from the Min Height to the Max Height.

Peaks and Valleys

Mask by Curvature

Generate a mask based on the maximum curvature.

Max Curvature

Mask areas with absolute curvature less than or equal to this value.

Curvature Ramp

Controls the value of the mask over the range from negative Max Curvature to the positive Max Curvature.

Direction

Mask by Direction

Generate a mask based on the heightfield’s slope direction.

Goal Angle

Define an angle and all surfaces facing that direction get masked. 0 degrees is in the direction of increasing pixels along the height layer’s width.

Angle Spread

Mask areas with this amount of variance from the Goal Angle. The range of directions is the Goal Angle minus/plus the Angle Spread.

Direction Ramp

Controls the value of the mask over the range, from the Goal Angle minus the Angle Spread, to the Goal Angle plus the Angle Spread.

Occlusion

Mask by Occlusion

Generate a mask based on the heightfield’s ambient occlusion.

Compute Range

Click to fill in the Minimum Occlusion and Maximum Occlusion parameters with the minimum and maximum ambient occlusion of the input height layer.

Minimum Occlusion

Mask areas with ambient occlusion greater than or equal to this value.

Maximum Occlusion

Mask areas with ambient occlusion less than or equal to this value.

Height Scale

The scale applied to input height values before computing ambient occlusion. Higher values exaggerate the amount of occlusion and small variations in height appear more pronounced.

Occlusion Ramp

Controls the value of the mask over the range from the Minimum Occlusion to the Maximum Occlusion.

Quality

View Radius

The distance in local space to send rays to determine if a pixel is occluded. Higher values extend the reach of the rays, producing more precise results, but at the cost of longer calculation times. Lower values decrease the distance you send the rays.

Step Scale

How many steps (in buffer space) to take along the rays to determine if a pixel is occluded. Higher values create less steps and therefore calculate faster, but may miss thin features since the steps are more spread out. Lower values create more steps, which are closer together.

Sample Count

The amount of rays to send to determine if a pixel is occluded. Higher values increase the number of rays sent and provide more accurate measurements, but at the cost of longer calculation times. Lower values decrease the number of rays sent.

Sample from Hemisphere

Divides the point’s calculated angle by 90 degrees instead of 180 degrees.

Inputs

height

The heightfield to generate a mask from.

Outputs

mask

The resulting mask composed of the measured features.

Copernicus nodes