The default behavior of WriteImage is to append when writing to a miff. So, you can use Sequencer to operate on each time step independently, and output a single miff by using the same name.
On the other hand, you can use ImageMagick convert to process a collection of images as a single animation, i.e.,
convert -adjoin step_*.miff my_animation.mpg
So, you can create a single animation file with a single file or multiple image files from DX.
--------------------------
Lloyd A. Treinish
Advanced Computing Technology Center
Deep Computing Institute
IBM Thomas J. Watson Research Center
1101 Kitchawan Road
P. O. Box 218
Yorktown Heights, NY 10598
914-945-2770 (voice)
914-945-3434 (facsimile)
[EMAIL PROTECTED]
http://www.research.ibm.com/people/l/lloydt/
http://www.research.ibm.com/weather
| "D.A. Crawley" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 10/13/2004 07:15 AM
|
To: [email protected] cc: Subject: Re: [opendx-users] animate instantaneous data |
One way would be to concatenate all the files in to one file to be read in
by DX. Then all the data is represented internally in your machine. You
can then use the sequencer to select out the particular time slice you are
interested in and use the continuous save option in the save image window
to create a MIFF file with all the frames present. If you are using Linux
or some other Unix you can probably use the Linux command line command
convert input-file.miff output-file.m2v
to create an mpeg. Note that if you are running RH or Fedora (and possibly
other unicies as well) you'll need to download and install the MPEG codec
so that convert can use it.
Notes:
1) This method is relatively memory intensive.
2) The MPEG codecs I have been able to download for convert are all a
little bit buggy and frequently fall over with large complex files.
3) This does depend a little bit on what format you are feeding your data
in to DX, for my applications its easy, I have regularly sampled binary
data of a known size, I have no idea how you are sampling your data.
Good Luck
David
-----------------------------------------------------------------------
David Crawley, Cavendish Labs, Cambridge, CB3 0HE, England
Semiconductor Physics: 01223 764 171 Astro-Physics: 01223 337 298
On Wed, 13 Oct 2004, Fabian Braennstroem wrote:
> Hello,
>
> I have some instantaneous data for the airflow around a building. The data are
> for every time steps in a seperate file.
>
> I am able to get some nice images with streamlines, glyphs, isosurfaces and
> mapped planes for a certain time step.
>
> Does anybody have an idea, how I can read in all those data files an use maybe
> the Sequencer and Render/Write2Image to display the instantenous data and save
> it to one miff-file? Afterwards I could (hopefully) transform it to a
> mpeg-file.
> Using the Sequencer with Render/Write2Image and AutoCamera works fine for
> different camera positions...
>
> Greetings!
>
> --
> Fabian Braennstroem
> Duesseldorf/Berlin
>
>
