Accumlation Buffer (continue)

New Message Reply Date view Thread view Subject view Author view

kamizi noboru (kamizi++at++hp99.tis.co.jp)
Fri, 28 Mar 1997 13:14:09 +0900


Dear Performers,

I posted about using accumlation buffer in Performer.

I wrote:
> (1)How to setup Accumlation Buffer ?
>
> (2)Where can I call acbuf(IRISGL) or glAccum(OpenGL) function ?
>
> (3)Is there any sample source code ?

And I get good advices.
I understand that I can use Accumlation function in Channel DRAW process callback.
And sample source from Olivier Schreiber works fine. I get good motion blur effect.
thanks very much !!!

then,I am Interested in follows.

Madhu Sethi wrote:
> Drawfunc(..)
> {
> channel->clear();
> // set matrices
> pfDraw();
> **accumulate via GL/OpenGL**
>
> etc...
>
> }
>
> In here, after calling pfDraw(), you can accumulate. Then you reset your
> viewing position or scene, call pfDraw() again and accumulate, etc.

Can I call pfDraw() multi times in DrawFunc callback ?
I think If view and object position moved,It need CULL with DRAW.
But, DRAW and CULL is running another process.
When pfCull() call ?
Does pfDraw() call pfCull() automatically ?
If I can do follows,I can get maltipass effect.(I understand it is slow).

Drawfunc(...)
{
    channel->clear();
    movingViewPosition(0.25);
    movingObject(0.25);
    pfDraw();
    acbuf(AC_ACCUMULATE, 0.25);

    channel->clear();
    movingViewPosition(0.25);
    movingObject(0.25);
    pfDraw();
    acbuf(AC_ACCUMULATE, 0.25);

    channel->clear();
    movingViewPosition(0.25);
    movingObject(0.25);
    pfDraw();
    acbuf(AC_ACCUMULATE, 0.25);

    channel->clear();
    movingViewPosition(0.25);
    movingObject(0.25);
    pfDraw();
    acbuf(AC_ACCUMULATE, 0.25);

    acbuf(AC_RETURN, 1.0);
}

Thanks very much.
-------------------------------------------------------
Noboru Kamizi
CG and VR Group.
Toyo Information Systems.Co.,Ltd.
e-mail:kamizi++at++hp99.tis.co.jp
Tel: +81-6-821-1452 Fax: +81-6-821-1989
-------------------------------------------------------

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.