[SESI logo]

Prisms Development Toolkit Documentation

Side Effects Software Inc. 1997

Custom SOPs

There are three steps to adding custom SOPs to Action.
  • Create a C file to do what you want
  • Add your SOP's name to the name table
  • Compile and link a new action using the custom command
  • It is a very good idea to look at the information about Prisms Internal Storage before continuing. There you will find explanations of how to access points and polygons and other graphical data inside of action.


    Compiling a new Action

    How to compile and link a new version of action which includes your sop.

    Creating a SOP C Source File

    This section explains how to modify existing SOP example code into your own custom SOP.

    Using sopbuild to Help Create Sops

    sopbuild is a tool for helping create custom sops. This section describes its use.

    An Example: the star SOP

    The Star SOP explained; this shows a primitive SOP which generates data with no input.

    An Example: the wave SOP

    The Wave SOP explained; this shows how to modify incoming geometry.

    An Example: the merge SOP

    A simple Merge SOP is explained; this demonstrates assembling polygon data into larger structures.

    Tookit Overview
    Expression Functions | User Functions | Custom SOPs
    Prisms Internal Format | Programmer's Reference
    Compiling SOPs | Using sopbuild | SOP Routine Reference
    Dynamic SOPs | Prisms Types | Macros
    Math Routines | Data Routines | Polygon Routines | Winged-edge Routines

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