[gl2ps] help for GL2PS
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Fri Feb 13 16:22:00 CET 2015
> On 13 Feb 2015, at 09:53, Xiangguo Li <xiangguoli at gmail.com> wrote:
>
> Dear Geuzaine,
>
> Thank you for your valuable GL2PS tool, which I need to capture the OpenGL window and I have searched for a long time.
>
> I used the following sample code in "gl2psTest.c":
> writefile(format, GL2PS_SIMPLE_SORT, opt, 2, "outSimpleShading2", ext);
> and I found the saved eps file was too too big. Therefore, I want to know which parameters can control the file size?
>
You can use
- GL2PS_OCCLUSION_CULL, which will remove the invisible primitives
- GL2PS_COMPRESS, which will compress the output using gzip
Other than that, GL2PS outputs the actual polygons that make up the scene; so the file will always be large if you have many polygons.
> Thank you!
>
> Yours Sincerely,
>
> Xiangguo Li
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine