Re: animation
Andreas Zehender <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kpovmodeler |
|---|---|
| Message-ID | <[email protected]> |
Hi! On Wednesday 17 July 2002 19:20, CARVALHO Luis Passos wrote: > Here's what I'd do: > > An animation is a collection on scenes. > Each scene has it's own objects, a start time and an end time. > Each object can have one or more scripts. > Each script defines start time, end time, and if it needs the previous > state to compute the next one. > The script indicates it's variables, with default values, or an > initialization procedure. > It also has a procedure to compute fotogram x. That's almost exactly the way of the media director program. My neighbour is away on a game session, so I can't tell you the small differences at the moment. Only small modifications to your suggestions: > It also has a procedure to compute fotogram x. A script should only have a function to compute the next fotogram. It doesn't matter if it needs the previous one or just depends on the current time. The script can depend on other scripts, so direct calculating will be almost allways not possible. > The script indicates it's variables, with default values, or an > initialization procedure. Imagine an object has different scripts. The start position of the object is different for each script, so that you can't set the start position in the static scene. Then you need to initialize the start position anyway in the scripts initialization method. I don't see any problem if not only the local variables but the objects attributes have to be initialized at the scripts or animations start. We can't backup any object property a script changes. Properties that are only functions of the time can be computed directly and need no initialization. All other properties that are changed by the script and depend on the last fotogram have to be initialized by the script. Andreas -- -------------------------------------------------- Andreas Zehender, Dipl. Ing. (BA) Student, 10th semester computer science http://www.azweb.de [email protected] | [email protected] -------------------------------------------------- List archive and information: http://mail.kde.org/mailman/listinfo/kpovmodeler-devel