
Plugin
=============
store object names for individual pixels

Description
=============
This openRender plugin allows you store the name of
the object that is responsible for lighting each
pixel in the final rendered image.  For instance,
if you have a scene with 9 spheres in it, then
for each pixel in your final image, you can tell
if it is the background, or sphere 1-9.

To use this plugin, you do your modelling in the
normal way, and then save an SDL.  Then outside
of Alias, rename your sdl to input.sdl.  A sample
SDL called input.sdl is included in this example.
Follow these steps to run the plugin:
  - perl orLabel.perl
  - renderer output.sdl
  - plabel pix/testimage

This will read in the image (pix/testimage) that was
rendered from the sdl file output.sdl.  It will also
read in a list of object names (testimage.names) and
the per pixel name info (testimage.mask).  As you
move your mouse over the image, the title shows
you the name of the object that your mouse is over.
If you press the key "u", an interface pops up that
shows you the complete list of object names, and
lets you view the object selectively.

This plugin is actually 2 openRender plugins.  The first
plugin is a custom shader, it gets called for each pixel.
This plugin stores the name of the object that is lighting
this pixel into an array.  The second plugin is a scanline
plugin.  It gets called once for each scanline.  This plugin
gathers up the name information for each pixel, and on 
the last scanline, prints out the name info into
testimage.mask and testimage.name.


files
=============
Makefile               - makes the plugin
README                 - plugin description
FB.h
input.sdl              - sample sdl that contains 9 spheres
output.sdl             - orLabel.perl output
orLabel.perl           - perl script to add 2 openRender plugins
                         to input.sdl, and to layer the custom
                         shader onto all objects
mytype.h               - source
orLabel.c              - source
orLabel2.c             - source
orLabel.plugin         - plugin module
orLabel2.plugin        - plugin module
pix                    - directory where images are stored
plabel                 - program to view the name info

