[vtkusers] Saving JPEG

Vivek Dwivedi vivekd at mail630.gsfc.nasa.gov
Sun Aug 6 10:39:43 EDT 2006


Off-screen rendering = You have to render the "scene" first in a render 
window in order to save it out.

Am I correct in assuming that you don't need to render the scene in render 
window first in order to save it as a jpeg?


-Vivek



On Sun, 6 Aug 2006, Peter  Spring wrote:

> i do not really sure what  u mean by "off-screen rendering"
> for my understanding, u can archieve it simply by add
> "renWin OffScreenRenderingOn " this line in to ur code (tcl), correct
> me if i am wrong.
>
>
>
> On 8/6/06, N. Yang <N.Yang at student.uva.nl> wrote:
>> 
>> R u saying that you achieved off-screen rendering with your block of tcl
>> code without the support of mesa library?
>> 
>> > a block of tcl code.
>> >
>> >  vtkWindowToImageFilter w2i
>> >  w2i SetInput renWin
>> >  vtkJPEGWriter w
>> >  w2i Modified
>> >  w SetInput [w2i GetOutput]
>> >  w SetFileName $name
>> >  w Write
>> >
>> > no mesa. it works fine even with vtk 4.2
>> >
>> > On 8/4/06, Vivek Dwivedi <vivekd at mail630.gsfc.nasa.gov> wrote:
>> > >
>> > > I saw the code but I don't want to use MESA is there a way within
>> > VTK> itself ?
>> > >
>> > > -Vivek
>> > >
>> > >
>> > > On Aug 4, 2006, at 9:18 AM, N. Yang wrote:
>> > >
>> > > > In that case you might want off-screen rendering and you can
>> > refer to
>> > > >
>> > > > http://www.erdc.hpc.mil/documentation/Tips_Tricks/vtk
>> > > >
>> > > > ----- Original Message -----
>> > > > From: Vivek Dwivedi <vivekd at mail630.gsfc.nasa.gov>
>> > > > Date: Friday, August 4, 2006 2:48 pm
>> > > > Subject: [vtkusers] Saving JPEG
>> > > >
>> > > >> Hi all:
>> > > >>
>> > > >> Quick question is it necessary to render out an image in a render
>> > > >> window in order to save it as an image file or can we directly
>> > save> >>
>> > > >> the image without rendering it out?
>> > > >>
>> > > >>
>> > > >> -Thanks
>> > > >>
>> > > >> -Vivek
>> > > >>
>> > > >>
>> > > >> _______________________________________________
>> > > >> This is the private VTK discussion list.
>> > > >> Please keep messages on-topic. Check the FAQ at:
>> > > >> http://www.vtk.org/Wiki/VTK_FAQFollow this link to
>> > > >>
>> > subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers> >>
>> > >
>> > > _______________________________________________
>> > > This is the private VTK discussion list.
>> > > Please keep messages on-topic. Check the FAQ at:
>> > > http://www.vtk.org/Wiki/VTK_FAQ
>> > > Follow this link to subscribe/unsubscribe:
>> > > http://www.vtk.org/mailman/listinfo/vtkusers
>> > >
>> >
>> 
>



More information about the vtkusers mailing list