Bryan Larson (bryan++at++control.mdc.com)
Wed, 6 Sep 1995 09:11:38 -0700
#include <gl.h>
#include <device.h>
#include <math.h>
#include <stdio.h>
#include <Performer/pf.h>
static float geom = 0.;
void blur(pfChannel *chan, void *data)
{
pfClearChan(chan);
pfDraw();
acbuf(AC_MULT, .8);
acbuf(AC_ACCUMULATE, 1.0);
geom = geom*.8 + 1.0;
acbuf(AC_RETURN, 1.0/geom);
}
This routine then replaces the prDraw function in the Perfly file 'main.c'
I would expect this to blur the image, even if it is generated in Performer,
but is does not seem to work. I don't get a core dump and perfly can load
files ok, but they don't seem to blur.
The question is ...
Am I / Can I use the accumulation buffer in this manner to blur an image in
Performer?
Am I using this correctly?
Is there any hints / advice to bluring an image in Performer?
Thanks
--talk to ya Bryan
_____________________________________________________________________ | Bryan Larson | bryan++at++sgidev.mdc.com McDonnell Douglas | (310) 593-6766 | ---------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:52 PDT