Hi andreas, hi dirk,

thanks for the quick answers. I have another little question 
for you always regarding the camera management for the
antialias.
Since i am working to an application that uses multiple viewports
depending on the same camera and that the application already
uses a stereocameradecorator, i'd like to know if i can achieve the
same results as the tiledcameradecorator just altering the original camera
projection matrix.

Thanks 
E.

-----Messaggio originale-----
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Per conto di Andreas
Zieringer
Inviato: lunedì 7 maggio 2007 18.09
A: [email protected]
Oggetto: Re: [Opensg-users] antialiasing in opensg

Hi Enrico,

you can use a TileCameraDecorator just manipulate the size via
tiledeco->setSize(left + dx, right + dx, bottom + dy, top + dy)

Andreas

> hi there opensg folks,
> 
> lately i am working a bit on antialias via accumulation buffer.
> I am using as a guideline the standard antialias full scene example of 
> the opengl red book.
> 
> The basic code looks like:
> 
> glClear (GL_ACCUM_BUFFER_BIT);
> 
> for (jitter = 0;jitter<8;jitter++)
> {
> 
>       glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>       
>       accPerspective (m_pCamera->getFov(),
>               GLdouble) viewport[2]/(GLdouble) viewport[3],
>               _pCamera->getNear(), m_pCamera->getFar(), 
>               ITTER[8][jitter].x(), JITTER[8][jitter].y(),
>               .0, 0.0, 1.0);
> 
>       drawGeometries()
> 
>       glAccum (GL_ACCUM, 1.0/8.0);
> }
> 
> glDrawBuffer(GL_FRONT);
> glAccum (GL_RETURN, 1.0);
> 
> where the accPerspective basically does a:
> 
> glMatrixMode(GL_PROJECTION);
> glLoadIdentity();
> glFrustum(left + dx, right + dx, bottom + dy, top + dy, zNear, zFar);
> 
> My question is:
> is there a way to alter the frustum of the perspective camera i am 
> using with the values set in the glFrustum function?
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
> --- 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
> 


-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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