swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] alpha problem


From: Neal Murphy
Subject: Re: [Swftools-common] alpha problem
Date: Tue, 18 Oct 2005 13:15:50 -0400
User-agent: KMail/1.7.2

It sure looks like the fading algorithm has a bug (int/float? truncation?). I 
made the following change (at frame 6); I would expect there to be no 
difference from frame 5 to frame 6. It's easier to see the problem by 
changing the FPS to 10. I'm using version 2005-09-25-1334 on debian testing.

    # change it to .frame 5 to see another version
    .frame 5
    .change arrow_logo_shape1 x=20 alpha=100%
    .frame 6
    .del arrow_logo_shape1
    .put arrow_logo_shape1 pin=center x=20 y=5 alpha=100%


On Tuesday 18 October 2005 10:56, Jacek Brzeski wrote:
> Hey,
>
> I'm working on one animation of a company logo and I came across some
> strange problem.
> I want to make a shape coming in to the scene from left side (starting
> with alpha=0%), quickly getting alpha=100% and then move to right
> position (in the middle of the picture).
>
> When I'm setting alpha=100% in .frame=5 it only reaches about 50% and
> stays that way. When first .change tag is in .frame 10 - it's better.
>
> It's pretty strange, so take a glance at example:
> http://www.numer9.pl/swfc/
>
> In these two animations the only thing changed is # of frame to set
> alpha=100%...
>
> BTW - using debian sarge, swf tools 0.7.0;
>
> Help me out, thanks!
>
> #9
>
> In case you want to see my source code... here it is:
>
> .flash bbox=280x120 version=6 name="amtel_logo0.0.1.swf" fps=25 compress
>
>
> # logo animation
>
> .outline arrow_logo_outline:
>     M 28.178570,44.250000 L 0.50000000,25.678570 L 49.607140,0.50000000
> L 10.678570,26.035720 L 28.178570,44.250000
> .end
> .filled arrow_logo_shape outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>
>
> .sprite logo
>
>     # .box box_bg 280 120 fill=black color=black
>
>     .filled arrow_logo_shape1 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>     .filled arrow_logo_shape2 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>     .filled arrow_logo_shape3 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>
>     # shadows
>     .filled arrow_logo_shape4 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>     .filled arrow_logo_shape5 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>     .filled arrow_logo_shape6 outline=arrow_logo_outline fill=#aaaaaa
> color=#333333
>
>     .outline big_T_outline1:
>     M 17,0 L 240,0, L 17,0
>     .end
>     .outline big_T_outline2:
>     M 0,18 L 150,18 L 125,67 L 150,18 L 0,18
>     .end
>     .outline big_T_outline3:
>     M 155,67 L 180,18 L 223,18 L 180,18 L 155,67
>     .end
>
>     .filled logo_T1 outline=big_T_outline1 line=1 color=#ffffff
>     .filled logo_T2 outline=big_T_outline2 line=1 color=#ffffff
>     .filled logo_T3 outline=big_T_outline3 line=1 color=#ffffff
>
>     .frame 1
>
>     # .put box_bg
>     .put logo_T1 x=0 y=0
>     .put logo_T2 x=0 y=0
>     .put logo_T3 x=0 y=0
>
>     .put arrow_logo_shape1 pin=center x=-30 y=5 alpha=0%
>     .put arrow_logo_shape2 pin=center x=-30 y=5 alpha=0%
>     .put arrow_logo_shape3 pin=center x=-30 y=5 alpha=0%
>
>     .put arrow_logo_shape4 pin=center x=-50 y=5 alpha=0%
>     .put arrow_logo_shape5 pin=center x=-50 y=5 alpha=0%
>     .put arrow_logo_shape6 pin=center x=-50 y=5 alpha=0%
>
>
>     # change it to .frame 5 to see another version
>     .frame 20
>     .change arrow_logo_shape1 x=20 alpha=100%
>
>     .frame 30
>     .change arrow_logo_shape1 x=125 alpha=100%
>
>     .frame 200
>     .change arrow_logo_shape3 x=55
> .end
>
>     .put logo pin=center x=100 y=60 scale=100%
>
> .end # End swf movie
>
>
>
> _______________________________________________
> Swftools-common mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/swftools-common

-- 
Neal P. Murphy; Website & Information Systems
  Diesel Hot Rod Association, Inc.
  540-384-6159; 540-312-6159 (mobile)
  http://www.dhraonline.com/




reply via email to

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