Page 1 of 1

5.6 Layer Order swf render bug

Posted: Mon Mar 31, 2008 4:53 am
by DK
Can someone confirm this please.
I just used Animated Layer ordering to make a simple head turn. I have two shapes in the character that I use to hide lines when requierd. I tried rendering it out in SWF format and a couple of my shapes don't render correctly. In the render they have shifted to another area. Everything is fine when rendered as an avi. The problem is only with swf output.

http://www.wienertoonz.com/DKlayordturn.anme

http://www.wienertoonz.com/swfbug.swf

Cheers
D.K

Posted: Mon Mar 31, 2008 6:07 am
by Genete
Linux version, confirmed, but nothing to do with layer order. It is a swf render bug, I think.

Mmmm strange...

-G

Posted: Mon Mar 31, 2008 6:13 am
by DK
Thanks Genete. I emailed Mike about it so we just have to wait to see what the problem could be. The Animated Layer Ordering makes head rotations a breeze don't you think?

Also I LOVE the new SKETCH option for lines in AS. Rounded line caps at last :) YIPEE!!!

Cheers
D.K

Posted: Mon Mar 31, 2008 6:47 am
by Rhoel
DK wrote:Also I LOVE the new SKETCH option for lines in AS. Rounded line caps at last :) YIPEE!!!

Cheers
D.K
Can you post more on this in the New Features thread (general discussion) - I have not been able to reproduce the rounded ends.

(and the head turns problem was the very reason why animated layer ordering was requested in the first place ... I like it too).

Rhoel

Posted: Mon Mar 31, 2008 6:56 am
by DK
Hi Rhoel.

1.Create a line around 8-10 linewidth is ideal.

2.Click on the Sketchy effect.

3. Set Radius to 8.

Image
http://www.wienertoonz.com/linecaps.anme


Cheers
D.K

Posted: Mon Mar 31, 2008 9:46 pm
by Genete
DK,
that's the weirdest thing I've seen before. It seems like if your anme file has a ghost inside. I've isolated the body of the character, converted it to 5.5 version and load into my old linux version. It still rendering badly (it has a peak in the top of the head). I'm looking the inner parts of the anme file to see why seems that swf export is broken. The curios thing is that that layer is marked as swf output optimized :roll:

I'm working on it. Wish me luck :D

-G

Posted: Mon Mar 31, 2008 10:53 pm
by Genete
Here are my findings:
It seems that the calculated swf beizer curves are not the same when export to swf than to raster format. Here is an example of the effect.
I've created a special case where it is shown with more evidence. It seems that a shape with an small amount of points produces not accurate shapes if the curvature is high

http://www.darthfurby.com/genete/Other/swf-test.zip

Here a screen capture of the swf animation.

Image

The black one (behind) is the png output render. Current shape of the outline. Over that layer is one vector layer with an outline (in red) that is not animated so flash optimized. Compare by your self.

Nice render bug.

I think that I've seen this before in some of my initial tests but as far as I prefer raster output I didn't take care.

Solution add more points ;)

Best,
-G

Posted: Tue Apr 01, 2008 12:26 am
by DK
Wow.....great work Genete. This is a terrible bug! I cannot fix the problem. I seperated the masking shapes onto different layers and redrew them with straight lines and adding more points but the result was worse! It actually looks like the entire shape is moving away from it's original resting point.

D.K

Posted: Tue Apr 01, 2008 12:51 am
by DK
Added more points and even joined the shape so there is only one shape. Still rendering swf badly.

http://www.wienertoonz.com/swfbug2.swf

http://www.wienertoonz.com/DKLayordturn2.anme

D.K

Posted: Tue Apr 01, 2008 1:05 am
by Genete
DK, I think you can solve it if you add more points with some patience...

http://www.darthfurby.com/genete/Other/ ... fixed.anme

The eyes translation are not symmetrical but I guess you can solve it :D
It is too late and I feel so tired. Need to sleep...

Hope it helps you
-G

Posted: Tue Apr 01, 2008 1:34 am
by DarthFurby
DK, the mask layer is fine, it's the "Body" layer that's causing the problem; specifically the vector point at the top of the head. Just add a few more points around the head to relieve stress on the curve. Thanks for the detailed explanations Genete. I've never noticed this render bug before, but it's easy enough to work around.

Posted: Tue Apr 01, 2008 1:54 am
by DK
Brilliant guys. Thanks Genete and thanks Darth!!!!

Cheers
D.K