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 › OPENGL standart buffer
Page Index Toggle Pages: 1
OPENGL standart buffer (Read 533 times)
OPENGL standart buffer
Mar 18th, 2007, 7:43pm
 
Hi there.

well my thing is, i would love to know wich surface (buffer, whatever) does the openGL render type uses before it prints it  in the screen.

the case in here is:
i iniciate my applet with openGL render (size(w, h, OPENGL)). i draw some stuff in my screen with simple beginShape() and endShape() (sometimes some other primitive functions). however, the resoluction of the screen is 256x240 (that resoluction is IMPERATIVE)
however i wanted windows bigger than those (with 200% or even 300% the size) in the end, what i want is a decent window with pixels 2 or 3 times bigger than what they were suposed to be.

so, one way i'm thinking is "okay, if i know what is the openGL pixel array for the image displayed, and if i know how to create a surface (another clean pixel array, buffer, whatever) i'll be able to make this thingie easy with simple FOR" a simple buffer effect.

however i dont know wich is this openGL pixel array, i also dont know how what are the conditions to work with in on the inside, i only know that this "PGraphicsOpenGL(int width, int height, PApplet iparent)" suposedly creates a new surface.

probably JOGL has a better and faster way of doing it. in the end, i'm totaly lost in here :\

so, some kind of help, any kind, would be realy apreciated.
thanks all.
Page Index Toggle Pages: 1