texni expression function

Returns the non-interpolated color of a point on an on-disk texture map.

Replaced by: hou.pixelColorInFileByUV

All Usage Examples

See also: tex, pic, picni

Usage

texni(diskfile, U, V, color_type)

Textures can be 1, 3 or 4 channel images containing 8-bit, 16-bit or floating point data.

color_type can be one of:

This function will not interpolate colors between pixels. For the interpolated version, use tex.

When the color component asked for doesn’t match the format of the image, some default behaviour will be taken.

Examples

texni("Mandril.pic", $BBX, $BBY, r).