Re: updating the 3d display

Hi Bader,

> after i draw the points in a 3d display, if i want to
> update the display by changing the coordinates of
> these points (let's say the update is  every 3
> seconds) to make it like an animation,what shuold i
> do? 

There are at least two approaches:

1. Since you are using Ugo's example P2_03, change the values
in point_vals and call 'vals_ff.setSamples( point_vals )'
again with the new values.

2. If you know the values for the animation ahead of time,
you can create a FieldImpl whose range values are versions
of the vals_ff FlatField for each time step.  The MathType
of the FieldImpl would be:

  (time -> (index -> (time, height, third)))

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: