[vtkusers] Using vtkGL2PSExporter with images

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Dec 18 09:31:00 EST 2003


>>>>> "RM" == Robert Milaszewski <rmilas at head.cfa.harvard.edu> writes:

    RM> I am trying to use vtkGL2PSExporter which is available in vtk
    RM> ver.  4.3 from nightly builds.  I read in a png image in
    RM> vtkImageActor, overlay contours on top and render it, all
    RM> looks good on screen.  When I export the window into
    RM> postscript file using vtkGL2PSExporter and viewd or printe it
    RM> the contours are visible but not the image.  Looking into the
    RM> postscript file I can see that the info for the image is there
    RM> but for some reason it is not displayed when viewed with gv or
    RM> printed on postscript printer.

That is because the vtkOpenGLImageMapper has not yet been modified to
support gl2ps (I forgot all about image actors!).  The fix is not
trivial but does not appear unduly hard either.  However, I don't have
the time for it right now.  I will get to it only after a few months
when I finish my PhD.  Till that time if another developer wants to
take a stab at it, please do so.  Of course, if someone is kind enough
to send in a patch that would be great.  You need to modify
Rendering/vtkOpenGLImageMapper.cxx.

For the time being you might want to turn on Write3DPropsAsRasterImage
and try.  This might just work.

cheers,
prabhu



More information about the vtkusers mailing list