Houdini 21.0 Nodes VOP nodes

Lens Coordinates VOP node

A VOP that creates the jittered coordinates for Karma lens shaders.

On this page
Since 19.0

Overview

This is a lens shader component that generates the jittered pixel coordinates as well as their uv postions, to help aid in the creation of Karma lens shaders.

Inputs

ix

The pixel coordinate on the x axis.

iy

The pixel coordinate on the y axis.

seed

A seed value which is specific to the current pixel.

sampleindex

The number of times this pixel has been processed (sometimes known as pass index).

datawindow

The data window as a rectangle (in pixel coordinates, not NDC).

viewport

The camera window, as {xmin, xmax, ymin, ymax} in NDC (normalized device coordinates).

xres

The pixel width of the display window.

yres

The pixel height of the display window.

filter_style

The type of pixel filter. The default type is gauss.

filter_width

The amount of filtering for the filter_style input.

Outputs

x

The x coordinate of the current pixel (jittered), fit between the NDC values of the camera’s viewport.

y

The y coordinate of the current pixel (jittered), fit between the NDC values of the camera’s viewport.

u

The x coordinate of the current pixel (jittered), fit to 0, 1.

v

The y coordinate of the current pixel (jittered), fit to 0, 1.

jitter

Set this to any relative jitter (horizontal and vertical) you applied to the pixel. You must output this variable if generating your own x and y.

See also

VOP nodes