[vtkusers] gif animations (Laurence Griffiths)

Josh juk124 at psu.edu
Mon May 13 09:32:53 EDT 2013


Hi Laurence,

I have found this Python script to be quite useful in creating animated 
GIFs:

http://stackoverflow.com/questions/14168631/error-using-images2gif-py-when-resize-animated-gif

This script avoids having to write the sequence of images to disk as you 
mentioned.

--Josh

On 5/9/2013 12:29 PM, vtkusers-request at vtk.org wrote:
> Send vtkusers mailing list submissions to
> 	vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> 	vtkusers-request at vtk.org
>
> You can reach the person managing the list at
> 	vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>     1. gif animations (Laurence Griffiths)
>     2. Re: Floating point numerical truncation (Bill Lorensen)
>     3. Re: Floating point numerical truncation (Bill Lorensen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 9 May 2013 18:12:26 +0200
> From: Laurence Griffiths <lgriffiths.aero at gmail.com>
> Subject: [vtkusers] gif animations
> To: vtkusers at vtk.org
> Message-ID:
> 	<CALOu3UmXEXac9k87vf6uRPP4gLrnFUEwX4N6Pihb=BV5kTFSfg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
> Has anyone had experience making gif animations with vtk?
>
> I can currently write out a sequence of png files, then use the "convert"
> option in image magic, i.e.:
>
> *convert Y01\*.png -loop 0 Y01.gif*
>
> But this requires me to first write all the pngs to disk (of which i have
> many), and then delete them again after creating the gif. This is all a bit
> messy - ideally I only want to write the final .gif directly to disk.
>
> Failing this, does anybody know another video format which supports frame
> by frame viewing (i have tried mpg and avi but without success).
>
> Regards,
> Laurence.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130509/0c508784/attachment-0001.htm>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 9 May 2013 12:15:39 -0400
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Floating point numerical truncation
> To: Patrick Lowry <plowry.tx at verizon.net>
> Cc: vtkusers at public.kitware.com
> Message-ID:
> 	<CADZJ4hObQEL_iqH11+2aN3c4jA6-7i6xRSZc1DTktc49jjU8gg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> The precision is set in:
> Wrapping/Tools/vtkWrapTclInit.c:            "  Tcl_SetVar2(interp,
> \"tcl_precision\", (char *) NULL, \"6\", TCL_GLOBAL_ONLY);\n");
>
> Try changing the 6 to 12 and see if that works.
>
>
> On Wed, May 8, 2013 at 3:50 PM, Patrick Lowry <plowry.tx at verizon.net> wrote:
>
>> Dear VTK User,****
>>
>>   ****
>>
>> I am using the pre-compiled binary executable for VTK 5.10 and the Tcl/Tk
>> scripting language.  I also have a number of pure Tcl/Tk scripts that do
>> not have VTK method calls and I had notice some time ago that VTK.exe is
>> rounding floating point numbers to six significant digits.  This has
>> happened since the early VTK 5.x releases and on multiple PC platforms.  It
>> did not happened with the 4.x releases.  When I run the same Tcl/Tk script
>> using wish85.exe no rounding occurs.  The image below shows the run window
>> of the same script using VTK.exe and wish85.exe.  Both show the raw data
>> line and the puts of the second two variables.  The one using VTK.exe has
>> rounding and the one using wish85.exe, no rounding. Tcl/Tk has a floating
>> point resolution setting that defaults to 12 significant digits.  Clearly
>> VTK.exe is defaulting to 6.****
>>
>>   ****
>>
>> Can anyone direct me to a setting that will change VTK.exe to work
>> correctly.****
>>
>>   ****
>>
>> Thanks,****
>>
>> Patrick****
>>
>> ****
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK 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