[gl2ps] Embedding a opengl drawing into a postscript document.
Christophe Geuzaine
geuzaine at acm.caltech.edu
Sat Jun 25 23:40:09 CEST 2005
Shai Ayal wrote:
> Hans,
>
> gl2ps basically takes your OpenGL code and makes it produce an
> postscript file instead of a screen image. If you need to embed these
> images in a postscript report, just generate each one, using gl2ps to
> produce eps files and embed them in the postscript report.
>
> Generating the images as an eps file with gl2ps can just as easy as
> calling the function and then calling your already existing OpenGL
> drawing code.
>
> I do not know the technical details of embedding an eps document in a
> postscript file, but it should be easy to find out. If this is your
> problem, ask again and someone will surely know the answer
>
Note that the latest cvs snapshot should also allow you to pass a stream
to gl2psBeginPage() that has already been "used" before, i.e., you
should now be able to use gl2ps to append data to an open file. (The
current released version forces a rewind() on the file, which prevents
this.)
Christophe
> On 6/24/05, Hans Oesterholt-Dijkema <hdnews at gawab.com> wrote:
>
>>Suppose, I have a library to make printable pages in Postscript. In
>>other words,
>>suppose I want to print some report on some subject from some
>>application, with pictures in it,
>>and suppose, this applications draws in opengl (e.g. with the GtkGLExt
>>widget extension).
>>Can I use GL2PS to create the pictures in the document?
>>
>>Best regards,
>>
>>Hans Oesterholt
>>
>>Christophe Geuzaine schreef:
>>
>>
>>>Hans Oesterholt-Dijkema wrote:
>>>
>>>
>>>>Is it possible to use GL2PS for this?
>>>
>>>
>>>I don't understand your question. GL2PS is used to create a PostScript
>>>file from an OpenGL scene. You can then do whatever you want with this
>>>PostScript file.
>>>
>>>
>>>
>>>>Best regards,
>>>>
>>>>Hans Oesterholt.
>>>>_______________________________________________
>>>>gl2ps mailing list
>>>>gl2ps at geuz.org
>>>>http://www.geuz.org/mailman/listinfo/gl2ps
>>>>
>>>
>>>
>>_______________________________________________
>>gl2ps mailing list
>>gl2ps at geuz.org
>>http://www.geuz.org/mailman/listinfo/gl2ps
>>
>
>
--
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org