We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › glGraphics setOffscreenProjectionMatrix.
Page Index Toggle Pages: 1
glGraphics setOffscreenProjectionMatrix. (Read 400 times)
glGraphics setOffscreenProjectionMatrix.
Sep 21st, 2008, 11:00pm
 
How can one gain access to set this? Or is there another way to set the offscreen buffers to an artbitrary fov.

Reason being i am using OCD library + the glGraphics library, Easily done by switching the pgraphics object in the ocd camera.java, but how to set the new fov to something i had set a ocd camera instance. If i change the pgraphics object for the fov parameter in camera.java the offscreen buffers fov's do not match producing strange results.
Re: glGraphics setOffscreenProjectionMatrix.
Reply #1 - Sep 23rd, 2008, 3:37am
 
hi,

this is a interesting issue... I think the problem with OCD is that it changes the processing's modelview and projection matrices, but not the corresponding matrices on opengl, am I right?

In principle, you can setup the opengl projection matrix to be used in the offscreen rendering just by calling gluPerspetive with the appropriate parameters.
Page Index Toggle Pages: 1