🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.avs
Article #191

Re: Animation question.

#191
From: Larry Gelberg
Date: Fri, 09 Oct 1992 13:54
54 lines
2632 bytes
: 
: I want to animate the Gaussian density function:
: 
:            2         2     2         2
:          -x /(2 sigma ) - y /(2 sigma )
:         E
:         -------------------------------
:                             2
:                   2 Pi sigma
: 
: for differnt values of sigma.
: I didn't find any AVS-routines for reading functions (if there is let me know),
:
: I repeated this for each step of sigma.
: 
: And at last made an animation with the display-pixmap module.
: The Geometry Action command doesn't work for this ?
: 
: Is there an easier way for doing this ?

If I understand your problem correctly, you have several options 
available to you:

1) Write an AVS module which creates a "field 2D uniform scalar float"
where the X and Y indicies of the 2D field are the x's and y's in your
equation above.  See the "read image" module in the /usr/avs/examples
directory for a starting place.  The output from this module can then
be fed into the "field to mesh" module to create a 3D surface. 

2) Animating the surface:  presumably your module will have sigma as
a parameter, so that you can either vary it by hand or drive it 
automatically.  One way to do this is to hook up the ANIMATED FLOAT
module to sigma.

3) Your module could be written as a 'co-routine' module which runs
asynchronously and drives itself (as opposed to option 2 above)

4) You should be able to do what you have described above - using 
Mathematica and then dumping the results into AVS and storing up the 
geoms in the Geometry Viewer 'Action' menu.  There is a module at the 
International AVS Center (avs@ncsc.org) written by the Mathematica
folks which should facilitate this.  If you don't get this working,
try your customer support group.

Do these alternatives give you encouragement to try again?  I hope
so.  Let us know how you make out.

larryg

--
=== Larry Gelberg ============================ larryg@avs.com =======
      Advanced Visual Systems Inc. (AVS Inc.)
      300 Fifth Ave, Waltham, MA 02154
===== Tel: 617-890-4300 = Fax: 617-890-8287 =========================
Technical Details
Message-ID: <1992Oct9.135442.16324@sol.ctr.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!aurora!larryg
References: <1992Oct8.155520.1752@ifi.uio.no>

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.avs
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!aurora!larryg
From: larryg@avs.com (Larry Gelberg)
Subject: Re: Animation question.
Organization: Advanced Visual Systems Inc.
References: <1992Oct8.155520.1752@ifi.uio.no>
Message-ID: <1992Oct9.135442.16324@sol.ctr.columbia.edu>
Sender: nobody@ctr.columbia.edu
X-Newsreader: Tin 1.1 PL4
Date: Fri, 9 Oct 1992 13:54:42 GMT
X-Posted-From: aurora.avs.com
NNTP-Posting-Host: sol.ctr.columbia.edu
Lines: 54