Re: animating shapes

Hi John,

> I have made some shapes using a similar structure to example Test47.  This is 
> shown below:
> 
>     dpys = new DisplayImplJ3D("display");
> 
>     dpys.addMap(new ScalarMap(ir_radiance, Display.XAxis));
>     dpys.addMap(new ScalarMap(ir_radiance, Display.ShapeScale));
> 
>     ScalarMap shape_map = new ScalarMap(count, Display.Shape);
>     dpys.addMap(shape_map);
> 
>     getSpecialComponent(dpys);
> 
> I used a RealType "count" to represent the shapes and call the method 
> getSpecialComponent(dpys) to define those shapes (VisADGeometryArray).  The 
> method then calls setShapeset() and setShape to set the shapes.
> 
> I am wondering what's the best way to animate this shape.  Since this shape 
> is defined by points, by animate I mean how I can change those data points 
> on-the-fly (say using an animation slide bar) so that it appears that the 
> shape is enlarging or changing its form.  Thanks in advance!

If your data are a Field like (index -> count) you can
animate by mapping index to Animation. Another way is to
continually update the 'count' value in your data object.

Good luck, Bill


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