Surface Operator (SOP) Sample Code


This directory contains sample code for generating custom SOPs. Refer to the toolkit documentation for more details.

Flatten SOP
The flatten SOP will project all points in a geometry detail onto a plane. There are controls for setting the plane.
SOP_Flatten.C
SOP_Flatten.h
Source for the flatten SOP
SOP_flatten.icon Icon for the flatten SOP
Star SOP
The star SOP will generate polygonal stars. The number of points can be specified. As well, this SOP illustrates how to put in "interrupt" checking via the UT_Interrupt class. If the SOP takes too long to cook, the user can interrupt the cooking.
SOP_Star.C
SOP_Star.h
Source for the star SOP
SOP_star.icon Icon for the star SOP
CopRaster SOP
This SOP reads a raster image and generates a point from each pixel in the image. The point is colored based on the pixel value of the image.

Note: you must turn on the "Points" display option (this is not on by default) to see the generated points in the Houdini viewport. Because Houdini does not use point colors when it displays points, you will need to attach another SOP (for example, the Particle SOP) to see the effect of the colored pixels.

SOP_CopRaster.C
SOP_CopRaster.h
Source for the cop raster SOP.
SParticle SOP
This is just a simple particle system simulation. It includes some sample collision handling.
SOP_SParticle.C
SOP_SParticle.h
Source for the SParticle SOP
SOP_sparticle.icon Icon for the SParticle SOP

Install Script

sample_install.sh is a sample install script.

The script will first compile the sample source code, then install the icons so that Houdini will find them. By default, everything is installed in your home directory.


Copyright © 1996 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7