Houdini 20.5 Nodes Copernicus nodes

Rasterize Geometry Copernicus node

Rasterizes geometry onto a layer.

On this page

This node rasterizes geometry onto a layer. This also lets you rasterize arbitrary attributes. The incoming geometry must be polygons. This node does not work on packed geometry or volumes.

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 Geometry 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.

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 geometry.

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

  • intrinsic:alpha that stores which pixels hit the geometry

  • 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.

geometry

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

Outputs

output1

The rasterized attributes.

See also

Copernicus nodes