[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] some additions to swfc

From: Huub Schaeks
Subject: Re: [Swftools-common] some additions to swfc
Date: Sun, 15 Jul 2007 23:19:12 +0200

Hello Matthias

I probably won't deliver on my promised patches this weekend. Kevin Veroneau's mail made me reconsider the idea of having swfc include only the uses glyphs without adding the extra parameter, which I had discarded at first. I've implemented that in the mean time, without any really thorough testing though.
I also tweaked the easing functions i used a bit.
I started work on the option of changing separate parameters independently and you were right, it's tricky. In fact it didn't work as I first thought it would so now I started implementing processing the object changing commands in a different way, storing all the changes for any given object until the end and only then calculating all the parameters for all the frames and inserting the placeobject tags.

The idea is that if you have
 .frame 1
    .put obj1 x=0 y=0
 .frame 30
   .change obj1 x=50
 .frame 70
   .change obj1 x=0
 .frame 100
   .change obj1 y=100

then the object will move from y=0 to y=100 during 100 frames and it will independently move from x=0 to x=50 and back to x=0 in the first 70 frames. If you put this into the current sfwc the object will move from x=0 to x=50 and back to x=0 and only then start to move to y=100.

I'm not sure how soon I can have some working code for this, but I think the implementation I have in mind should work, and also provide the data I think would be needed to implement .qchange.

From: Matthias Kramm <address@hidden>
Reply-To: address@hidden
To: address@hidden
Subject: Re: [Swftools-common] some additions to swfc
Date: Sun, 15 Jul 2007 22:32:46 +0200

On Tue, Jul 10, 2007 at 10:39:45PM +0200, Huub Schaeks wrote:
> I added a parameter 'glyphs' to the .font command [...]
> I added a parameter called 'ease' to the .change command to specify an
> easing function to be used [...]

Wow. Sounds interesting.

> I'm not quite sure about using those functions license wise. Robert Penner > released his code under the BSD license and I don't know if it is permitted > to add my code, which is in some way derived from his, in a GPLed program.

Adding BSD licensed code to GPL is no problem at all. It's the other
direction that's not allowed.

> If you're interested I can get the current development snapshot and
> generate some patch files sometime this weekend probably.

Yes, some patches would be great.

> I was looking a little further because I thought I would like to be able to
> manipulate separate parameters of a character independently.

So, for example, that a
    .change obj1 x=100 y=100
    .change obj2 x=200
    .change obj3 x=300 y=300
interpolates y smoothly from 100 to 300?
Interesting idea.
I think implementing it this way will mean a lot of change to the existing
code, though, which always assumes that changes only happen between two
neighboring keyframes.
I guess you can rewrite the while(frame < allframes) loop in line 1928
so that it does the interpolation for each parameter seperately, but
it's tricky.



Even lekker snel online vermaak? Ga dan naar www.msn.nl http://www.msn.nl

reply via email to

[Prev in Thread] Current Thread [Next in Thread]