Houdini 21.0 Nodes Copernicus nodes

Rasterize Curves Copernicus node

Rasterizes curves onto a layer.

On this page

This node rasterizes curves onto a layer. This also lets you rasterize arbitrary attributes. The incoming curves can be polygonal, bezier, or nurbs.

Note

A Camera Import node can be plugged into the camera_ref input to rasterize from a specific camera. That camera metadata can be modified using the Camera Properties COP. If no camera_ref input is provided, the camera uses the resolution set on the COPnet and sits at the origin, looking down the negative z axis.

Tip

When camera metadata is plugged into the camera_ref input, the layer will be generated where the camera’s focus plane is. You can transform the plane back to the origin using the Match Camera COP. Plug the output of the Rasterize Curves COP into the source input and leave the camera_ref input blank.

Tip

The Rasterize Setup COP can be used to configure what space the rasterization happens in, which is useful if you want to work in UV space.

Parameters

Quick Setups

Add a geometry attribute to rasterize.

Add Alpha

Rasterizes the alpha. This means that the layer will be white where the geometry exists and black where it does not.

Add Position

Rasterizes the P attribute. This is the position of the geometry in world space.

Add Normal

Rasterizes the N attribute. This attribute must exist on the input geometry.

Add UV

Rasterizes the UV attribute. This attribute must exist on the input geometry.

Add Depth from Eye

Rasterizes the depth from the camera. This is in Houdini units.

Move to Origin

Moves the output layers to canonical space.

Border

The sampling behavior outside of the incoming layer’s boundaries. Automatically uses the layer’s border property.

See Border types for more information.

Units

The unit of measurement used to determine the size of the rasterized curve width.

Image (default)

Sets the curve width to use units of the Image Space.

Pixels

Sets the curve width to use units of the number of pixels.

Width

The width of the output rasterized curves. If width attribute is present on the input curves, this value is a multiplier to the attribute value.

Joints

How to join the corners of curve.

Round (default)

Use a round circle to apply the corners.

Sharp

Extend the corner to a sharp point.

Max Joint Scale

Prevent spikes at sharp corners in curves. This parameter is a multiplier to the curve width to control how far the corner extends.

Endpoints

How to rasterize the endpoints of the input curves.

Flat (default)

Leave the two ends of the curves as flat.

Round

Create rounded(spherical) caps at the two ends of the curves.

Scale V by Width

The scaling that is applied to the v channel for any intrinsic:uv output.

No Scaling (default)

No scaling applied, ie. v goes from 0 to 1 along the curve. Note that in the case Endpoints is set to Round, the v value at the rounded caps is out of /nodes/cop/0, 1.html range due to interpolation.

Average

Scale v by the average of all width attributes on the curve. If input has multiple curves, the average would be computed respectively.

Maximum

Scale v by the maximum of all width attributes on the curve. If input has multiple curves, the maximum would be computed respectively.

Minimum

Scale v by the minimum of all width attributes on the curve. If input has multiple curves, the minimum would be computed respectively.

Force Tilable V

Round the v channel of any intrinsic:uv output down to closest integer to allow tiling.

Resample

Resample the input curves to smooth them out.

Segment Length

The length to break the curves into.

Treat Polygons As

How to inteprolate polygonal curves.

Straight

Directly interpolate maintaining the straight lines.

Subdivision

Smooth the curves with a subdivision approach. This will not interpolate the original points.

Interpolating

Smooth the curves with a bicubic approach, this will interpolate the original points but oscillate.

Resample by Polygon Edge

Each edge of the polygon will be resampled independently. This option will preserve corners in the input.

Number of Attributes

Output Type

Specifies the output type for the rasterized attribute. To be rasterized, an attribute must either be an integer or a float of 4 or less components.

Name

Specifies the name of the attribute to rasterize. This must match the attribute present on the curves.

You can also use the following special tokens to generate layers from the rasterization:

  • intrinsic:alpha that stores which pixels hit the curves

  • intrinsic:depth_ndc depth to each fragment in Vulkan device coordinate space

  • intrinsic:depth_eye for the world-space depth

Inputs

camera_ref

If you connect to this input, this is the camera metadata to use for the raster.

curves

The curves to rasterize. This is usually the output of a SOP Import COP.

Outputs

output1

The rasterized attributes.

See also

Copernicus nodes