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

Reply via email to