[vtkusers] Re: Dataset Animation in VTK
Craig N. Scott
craig.scott at csiro.au
Thu Feb 6 18:57:29 EST 2003
I wanted to do something similar a little while ago in Tcl. My approach
was a bit different to your suggestion. A simplified version of the
pipeline looks something like this:
vtkPolyDataReader
|
v
vtkPolyDataMapper
|
v
vtkActor
I achieved animation by creating a vtkPolyDataReader for each file and
then changing which one the vtkPolyDataMapper used for a source (ie
calls to vtkPolyDataMapper::SetInput).
This had the advantage that each file only needed to be read in once,
then if I wanted to reshow the animation it would be much faster because
the data was retained in memory. Of course, if your models are large or
you have a lot of frames, you'd probably want to get Vtk to discard the
data not being shown.
On Fri, 2003-02-07 at 05:19, vtkusers-request at public.kitware.com wrote:
> Date: Thu, 06 Feb 2003 14:41:53 -0200
> From: Lucas Peetz Dulley <dulley at lsi.usp.br>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] Dataset Animation in VTK
>
> Hi everyone!
>
> I have some meteorological datasets (GRIB files) and the data ( like
> temperature, humidity, pressure etc ) is collected in a daily/hourly basis.
>
> I've been able to display the data as Volumes, Isosurfaces, vectorfields
> and Slices.
>
> But then someone asked me: "How about animating these datasets through
> time?" ... I said : "what the hell, lets do it! :)"
>
> The only way I could think of is doing several AddProp / RemoveProp in
> sequence, swapping one dataset (at time T) by the other one (at time 2T).
>
> Does anyone have any other suggestions/solutions for this matter? I
> really would appreciate it :)
>
> Thanks in advance,
>
> Lucas
>
> --
> Lucas Peetz Dulley <dulley at lsi.usp.br>
> Virtual Reality Center - CAVERNA Digital
> LSI - POLI - USP Tel: +55-11-3091-5374
> Av. Prof. Luciano Gualberto, 158 trav. 3
> CEP: 05508-900 - Sao Paulo - SP - Brazil
--
Dr Craig Scott, CSIRO (CMIS)
Melbourne, Australia
More information about the vtkusers
mailing list