[comp.sys.sgi] psgl: automatic gl->postscript converter

seth@miro.Berkeley.EDU (Seth Teller) (11/29/90)

i've placed in vgr.brl.mil:pub/psgl.{c,h} a module that modifies
working gl programs so that they produce postscript output
(not bitmaps; procedural postscript output).

with about five or ten minute's effort, you can make most gl
programs write a file (interactively) containing a faithful 
color postscript version of whatever it's drawing to your 
screen.  the output files can be viewed with psview or 
ghostscript, or whatever else you have.

in short, psgl works by catching the output of the gl 
routines and storing it away.  it then sorts everything
back to front (as best it can), and writes the result to 
a file.

some notes: this version is only for the GT.  i don't have 
a VGX.  the mod to PI or VGX boxes should only take 20 minutes
for a gl programmer; only one or two routines need to change.

have fun!

seth