[Paraview] Saving png files of animation

Evan Bollig bollig at gmail.com
Wed May 28 14:39:55 EDT 2008


Can anyone tell me how to get the animation to render both left and
right views for a stereo movie?

-Evan

On Wed, May 28, 2008 at 8:42 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch> wrote:
> Hi Ken,
>
> Thanks. The saving to png works fine.
>
> The offscreen rendering also worked - without crashing my system!
>
> -Bryn
>
>
>
> Moreland, Kenneth wrote:
>>
>> The ability to save png/jpeg/tiff animations is available on all the
>> ParaView 3.2 builds as well.  You just have to choose a different filter in
>> the file type combo box of the file chooser.
>>
>> The crash is probably related to the offscreen rendering employed while
>> writing animations.  The offscreen rendering is used to prevent the
>> animation from capturing any windows on your desktop that might overlap your
>> ParaView window.  Unfortunately, we've had trouble with some video drivers
>> supporting the offscreen rendering extensions incorrectly.  If you are a
>> little bit daring, you could try using the 3.3.0 snapshot available on the
>> web, which has an option to turn off offscreen rendering for animations.
>>  You could also try updating your video driver.
>>
>> -Ken
>>
>>> -----Original Message-----
>>> From: paraview-bounces at paraview.org
>>> [mailto:paraview-bounces at paraview.org]
>>> On Behalf Of Eric E. Monson
>>> Sent: Wednesday, May 28, 2008 5:03 AM
>>> To: blloyd at vision.ee.ethz.ch
>>> Cc: paraview-users
>>> Subject: Re: [Paraview] Saving png files of animation
>>>
>>> Hey Bryn,
>>>
>>> In my 3.3 build (with VTK_USE_FFMPEG_ENCODER: OFF, OS X) after going
>>> to Save Animation, then entering the animation parameters info, the
>>> next dialog asking for the file name has a File Type combo box at the
>>> bottom which lets me pick PNG, JPEG or TIFF. This dumps a series of
>>> frames for the animation. I'm not sure whether the AVI option excludes
>>> the PNG frames, but at least I know that the individual frames as
>>> images is possible.
>>>
>>> -Eric
>>>
>>> ------------------------------------------------------
>>> Eric E Monson
>>> Duke Visualization Technology Group
>>>
>>>
>>> On May 28, 2008, at 5:51 AM, Bryn Lloyd wrote:
>>>
>>>> Hi Berk, hi users
>>>>
>>>>
>>>> In version 2 of pv, there was a way to write png files of an
>>>> animation. In version 3 this has been replaced by the save animation
>>>> (to avi) option.
>>>>
>>>> Unfortunately this crashes on my system (Debian Sarge). I sometimes
>>>> am even logged out after the crash and loose everything that was
>>>> open/unsaved.
>>>>
>>>> Is there another way in pv3 to save an animation, e.g. individual
>>>> frames as .png images or similar?
>>>>
>>>> If I had access to the render window in the programmable filter, I
>>>> could maybe use a vtkWindowToImageFilter and a vtkPNGWriter. But as
>>>> you recently explained these are not available. But it would be
>>>> nice... :)
>>>>
>>>>
>>>> Thanks for any hints/help.
>>>>
>>>> Cheers
>>>> Bryn
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Berk Geveci wrote:
>>>>>
>>>>> Only a subset of VTK classes are accessible through ParaView's
>>>>> programmable filter. These are mostly classes in Common and
>>>>> Filtering.
>>>>> We have plans to change this. Having said that, you will never be
>>>>> able
>>>>> to create rendering object from the programmable filter. It is for
>>>>> filtering only. You have to use the python interface to the server
>>>>> manager (through the Python shell under the Tools menu) to create
>>>>> rendering objects. There is an introduction to this interface here:
>>>>> http://paraview.org/Wiki/images/f/f9/Servermanager2.pdf
>>>>> I am afraid this API is different than pure VTK API and more limited
>>>>> because of the client/server support (i.e. you don't have direct
>>>>> access to VTK objects, only to proxies). You'll probably end up
>>>>> creating a vtkSMDataLabelRepresentationProxy in some way.
>>>>> By the way, ParaView already supports labels but limits them to
>>>>> selections. Once you select a set of cells/points, you go to the
>>>>> selection inspector and turn on labels. The reason labels are limited
>>>>> to selections is due to poor rendering performance when a large
>>>>> number
>>>>> of labels are displayed. We have in the works a new labeling scheme
>>>>> that changes the number of labels based on the zoom level to give
>>>>> interactive performance.
>>>>> -berk
>>>>> On Mon, May 26, 2008 at 2:39 AM, Bryn Lloyd
>>>>> <blloyd at vision.ee.ethz.ch> wrote:
>>>>>>
>>>>>> Hi users
>>>>>>
>>>>>>
>>>>>> I wanted to a vtkIdFilter and a vtkLabeledDataMapper in the python
>>>>>> programmable filter (in order to visualize point ids in pv3.3).
>>>>>>
>>>>>> Unfortunately, neither of these classes were located by the
>>>>>> programmable
>>>>>> filter. I get following error message:
>>>>>>
>>>>>> AttributeError: 'module' object has no attribute
>>>>>> vtkLabeledDataMapper'
>>>>>>
>>>>>>
>>>>>>
>>>>>> This simple python code fails:
>>>>>>
>>>>>> ------------
>>>>>>
>>>>>> from paraview import vtk
>>>>>> ldm = vtk.vtkLabeledDataMapper()
>>>>>>
>>>>>> ------------
>>>>>>
>>>>>>
>>>>>> Does anybody know what I am doing wrong, or why this does not
>>>>>> work? I
>>>>>> checked if the vtk filters are in the paraview source directory:
>>>>>> They are!
>>>>>>
>>>>>>
>>>>>> Thanks for any hints/help
>>>>>>
>>>>>>
>>>>>> Cheers, Bryn
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> -------------------------------------------------
>>>>>> Bryn Lloyd
>>>>>> Computer Vision Laboratory
>>>>>> ETH Zürich, Sternwartstrasse 7
>>>>>> CH - 8092 Zürich, Switzerland
>>>>>> Tel: +41 44 63 27690
>>>>>> Fax: +41 44 63 21199
>>>>>> -------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> ParaView mailing list
>>>>>> ParaView at paraview.org
>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>
>>>>
>>>> --
>>>> -------------------------------------------------
>>>> Bryn Lloyd
>>>> Computer Vision Laboratory
>>>> ETH Zürich, Sternwartstrasse 7
>>>> CH - 8092 Zürich, Switzerland
>>>> Tel: +41 44 63 27690
>>>> Fax: +41 44 63 21199
>>>> -------------------------------------------------
>>>> _______________________________________________
>>>> ParaView mailing list
>>>> ParaView at paraview.org
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>
> --
> -------------------------------------------------
> Bryn Lloyd
> Computer Vision Laboratory
> ETH Zürich, Sternwartstrasse 7
> CH - 8092 Zürich, Switzerland
> Tel: +41 44 63 27690
> Fax: +41 44 63 21199
> -------------------------------------------------
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>



-- 
-Evan Bollig
bollig at gmail.com
bollig at scs.fsu.edu


More information about the ParaView mailing list