Mtor
|
Introduction
The scripts on this page present a rough and ready way of saving
xyz data for an animated particle system. As individual particles move within
a scene their positions are saved into separate text (data) files. Particles
emitted early in an animation have data files that record more xyz positions
than particles generated later in the animation. The script assumes that particles
are not deleted from the system.
Breakdown
On the first frame of a particle animation the ribbox script, listing 1, deletes
the data files from a previous baking run. This is necessary because
the data in the (particle) text files is appended and as such we do not want "new"
data combined with "old" data.
Attribute "identifier" "name" ["a_number"] with an integer that matches its number of data points. A shader can querry the name of the object to which it is "attached" ie. attribute("identifier:name", name) Sparky should be able to use the number to apply a compensation factor to the age. Refer to Surface Names & Ray Names for more information. |
figure 1 |
RSL listing 3 |
© 2002-6 Malcolm Kesson. All rights reserved.