|
|
Hello,
I would like to generate an animation. The scene file contains
a lot of preparatory calculations (initializations). The following
is a reduced example.
// Initialization
#local R=seed(10);
#local J=0;
#while(J<10000)
#local POS[J]=<rand(R)*100, rand(R)*100, rand(R)*100>
#local J=J+1;
#end
// Drawing
#local J=0;
#while(J<10000)
sphere{ POS[J] + <clock*100,0,0> ,1}
#local J=J+1;
#end
For a 1000-frame animation, the whole scene file will need to
be run 1000 times, including the initialization part.
However, I think it is not needed and just a waste of time.
How can I omit the 999-time calculations and let my PC do the
calculation only once?
Post a reply to this message
|
|