GLUT
and the
Cg runtime
programming model.
Makefile
gcd.cpp
vert.cg
frag.cg
glut-gcd.tar.gz
.
ARB_fragment_program
:
A similarly simple GCD with (passive) mouse-controlled foveal region, using
GLUT
and
GL extensions.
Makefile
gcd.cpp
vert.cg
frag.cg
arb-gcd.tar.gz
.
ARB_fragment_program
extension seems to be more portable. This program thus uses vertex
and fragment programs as compiled by the Cg compiler.
(Note the slight difference in the vert.cg
program -- the appropriate cgc
compile lines
are contained within the Makefile
.)
The code compiles and runs on both OS X and Linux.
README
passthrough_vp.cg
degrade_grey_fp.cg
gcd.tar.gz
.
DevIL
installed) and video (if you have
xine-lib
installed).
scons
to configure/compile.
cvs -d/pub/research/uber/cvsroot co gcd
./gcd test/kitten.ppm test/falloff.ppm