Fred Nastos wrote:



I have been testing it with gl2ps-1.2.0.  Works well.
With your new version I definitely see some improvements.
The surface in the postscript image that was coming out
semi-transparent before (see above) is now opaque as it
is in the OpenDX viewer.  I'm not sure if the lack of
transparency led to a smaller filesize but the postscript file
is now 5 mb (vs 90 mb before!).

I am having less succes getting the PlotPostscript to actually
produce a non-blank postscript file though.  The success rate
is much less (say 25%) than before.


Weird.
The previous version defaulted to "bsp" sorting
and "no ps3 shading", this one to simple sorting and
no options. What happens changing to "bsp" and "no ps3 shading"?
And with gl2ps-1.2.0?

I'm not sure if this is because I used gl2ps-1.2.0, but I am getting
an error/warning in the Message Window:
        GL2PS info: OpenGL feedback buffer overflow.
This didn't happen with your older version of PlotPostscript even
though I was using gl2ps-1.2.0 before also.  I only get this warning
with a large/complicated image.

I don't think so. The difference is that
in the previous version options was set to
options = GL2PS_SILENT | GL2PS_NO_PS3_SHADING;
          ^^^^^^^^^^^^
while in this version is set by default to
GL2PS_NONE. You can try to change it
to GL2PS_SILENT.

Every time the feedback buffer overflow
the buffer is enlarged and the figure is plotted again:

while(state == GL2PS_OVERFLOW){
        buffsize += 1024*1024;
        gl2psBeginPage(filename, "test", viewport, format, sort,
                               options,
                               GL_RGBA, 0, NULL, nbcol, nbcol, nbcol,
                               buffsize, fp, filename);
        DXCallModule("Display", 3, minput, 1, moutput);
        state = gl2psEndPage();
}

However, I don't know if this is the right way
to force a redraw in opendx.


Finally, again possibly due to the version of gl2ps I used, I
find that the "no sorting" option is not allowed.


Good catch. "no" should be "none":

                } else if (!strcmp(string,"none")) {
                        sort = GL2PS_NO_SORT;

Can you try with this .mdf?

Marco

MODULE PsVectorPrint
CATEGORY Fem
DESCRIPTION vectorial postcript output
FLAGS PIN SIDE_EFFECT
LOADABLE ./PlotPostscript;
INPUT object; object; (none); object to print
INPUT camera; camera; (none); camera
INPUT where; window or string; (none); host and window for display
INPUT filename; string; (none); string
INPUT type; string; "eps"; type of output
OPTIONS eps; ps; pdf; tex
INPUT sort; string; "simple"; type of sorting
OPTIONS none; simple; bsp
INPUT options; string; (no default); rendering options
OPTIONS draw background; simple line offset; no pixmap;
OPTIONS best root; landscape; no ps3 shading
OPTIONS occlusion cull; compress ps
REPEAT 1

Reply via email to