Hi Enrico,

Enrico Borrione wrote:
> hi dirk,
> 
> thanks a lot for your hints, 
> after a few tests, i came up using the 
> tilecameradecorator solution.
> 
> i have tested the application in mono and it's working pretty fine.
> 
> Now i am thinking about doing the same thing in stereo,
> so I stacked the decorators as u suggested and run my code:
> 
> 
> tiledecL->setdecorator (leftVP->getcamera ());
> // jitter camera
> leftVP->setCamera(tiledecL);
> 
> tiledecR->setdecorator (rightVP->getcamera ());
> // jitter camera
> rightVP->setCamera(tiledecR);
> 
> m_pMgr->redraw();
> 
> glAccum (GL_ACCUM, 1.0/8.0);
> 
> // after the accumulation phase:
> glDrawBuffer(GL_BACK);
> glAccum (GL_RETURN, 1.0);
> 
> right now the accumulated buffer is overvriting both channels and the ending
> result is that i have lost the stereo image.
> The first thing i came up with is to create two helping pixel buffers in
> which
> store the temporary left-right accumulated images and keep switching them
> at every accumulation step.

The problem is that there is only one accumulation buffer, so accumulating left 
and right alternatingly will give you, let's say, interesting results. ;)

You would probably be better off accumulating all the left ones first, put the 
result in the left back buffer, then accumulate all the right ones and put th 
result in the right back buffer, then swap. Or do you want to do this for 
motion 
blur?

> Does opensg have some kind of facility that helps accumulating the channels 
> in automatic way?

Automatic: no, sorry. These days I would assume most people would use FBOs and 
to the accumulation/filtering in a fragment hader. I'm not sure how well the 
accumulation buffer is supported anyway.

        Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to