Login  Register

Re: Questions about PBuffers

Posted by Martin Hegedus on Dec 13, 2011; 4:51pm
URL: https://forum.jogamp.org/Questions-about-PBuffers-tp3581441p3582878.html

Hi Gene,

Thanks.  First, I'll admit I don't have in depth knowledge of creating a printing interface for a Java OpenGL application.  It seems straight forward to create a Printable interface for a regular Canvas and then do 2D drawing.  But fusing a Printable interface with a JOGL GLCanvas is not clear to me.  And tiling it makes it even murkier.

So, yes, please pass along some code.  It seems like what you described is what I would like to do.

My overall goal is to print an OpenGL graphic to a variety of printers.  My immediate goal is to print, i.e. stream, a PNG file to a home office HP LaserJet multifunction printer from Linux, Windows, and eventually Mac OS.  I'm assuming (hoping) once that is working I'll also be able to print to ink jet printers.  I have implemented spooling postscript to a file by means of the feedback buffer.  It's not perfect in regards to hidden surfaces, but it will have to do for the time being.  In OpenGL terms my drawing needs are simple.  I'm drawing 3D surface meshes and contour plots.

Thanks.