HP SVA V2.0 Parallel Compositing Reference Guide

1.6 Sample Programs Available on Kit
This section summarizes the samples available on the HP Library Kit. The sample programs are
in the samples directory (/opt/paracomp/samples by default).
The samples illustrate the call sequence detailed in Table 1-2. The sample code is well commented,
including references to the steps in Table 1-2, for example, “5d: End of frame.”
We recommend that you review the samples in order because each builds on concepts and
features from previous samples.
To try the samples, copy the sample directories to a non-write working directory. For example:
$ cd workingDir
$ cp r /opt/paracomp/samples .
Table 1-3 Sample Applications on Kit
CommentStep
This simple program tests if the Library is installed
properly. The program runs on a single node in an SVA
cluster and has no graphical output. It only included Steps
1, 2, and 7 of the sequence in Table 1-2.
ivp.c
This program illustrates depth compositing. The program
runs on two or more nodes in an SVA cluster. All steps
in the sequence in Table 1-2 are shown.
GLUT is used in the generation of the graphical output.
hello-depth.c
This program illustrates alpha blending. The program
runs on two or more nodes in an SVA cluster. All steps
in the sequence in Table 1-2 are shown.
GLUT is used in the generation of the graphical output.
hello-alpha.c
The “hello” programs only let you change the size of the
window. This program adds the ability to rotate, pan, and
zoom the model being displayed with the aid of an
openGL C++ helper library (glh). The program runs on
two or more nodes in an SVA cluster.
interactive.cpp
Up to this point, the sample graphical programs all use
a framelet that is the same size as the output. The
boundingbox program reduces the size of the framelet
to a bounding box that just covers the area of the screen
where an object is drawn. This enhances the frame rate
considerably and illustrates framelets that do not fully
overlap.
boundingbox.cpp
This program goes a step further than boundingbox. If
a host is drawing multiple objects, it may want a bounding
box framelet per object. The program illustrates using
multiple framelets on a host where each framelet bounds
a different object.
multiple-framelets.cpp
This program extends the multiple-framelet sample
program to project on a display with multiple tiles, driven
by multiple hosts running on multiple nodes. It illustrates
a way to use the Library to increase resolution beyond
that supported by a single graphics card.
multitile.cpp
1.6.1 Beginner Set of Samples
The /opt/paracomp/samples/beginner directory contains programs which help demonstrate
the basic operation of the PC Library. It contains source files, a makefile to build all samples,
and scripts to run the programs on an SVA cluster.
1.6 Sample Programs Available on Kit 17