Re: animation
Andreas Zehender <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kpovmodeler |
|---|---|
| Message-ID | <02071716545308.30813@wsl21> |
Hi! On Wednesday 17 July 2002 15:56, Tobias Wollgam wrote: > Sure, but a discussion should not start when it is time to code the > thing, discussion should start some time before that. But we should not > start now if the thing is coded in two years ... I don't know when the > time is right ... But many of the recently discussed features are linked together. If we don't discuss all, we will implement only some of them and recognize later that our solution doesn't fit with the others. > > Back to your question: > > Data that is changed by scripts is lost. That's why there has to be > > some kind of initialisation for an animation frame as suggested by me > > (the onEnterFrame event handler). > > ok, how to avoid dataloss? keep a copy of the data or ...? > > background is that I used a copy of all data, that may be modified. That > is a solution I do not like. I don't want to avoid it. Once more my idea: Each script has a initialization part that is called when the animation starts. It is up to the user to initialize all data at the beginning of the animation he changes with scripting. > > And there will be a time line where you can change the current time > > and start and stop the animation. > > So, a script must not calculate stepwise (from one frame to the next). > It must calculate from point zero. That has a big disadvantage: > interaction of object are hard to calculate. No, the program calculates the animation stepwise until the chosen time is reached. That will take some time, but can't be avoided. You can only calculate the scene immediately if all translations etc are only a function of the time, but that will not be the default case. 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