5.6 Layer Order swf render bug

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

5.6 Layer Order swf render bug

Post 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
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Linux version, confirmed, but nothing to do with layer order. It is a swf render bug, I think.

Mmmm strange...

-G
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post 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
User avatar
Rhoel
Posts: 844
Joined: Fri Feb 25, 2005 8:09 am
Location: Phnom Penh, Cambodia
Contact:

Post 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
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post 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
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post 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
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post 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
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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
DarthFurby
Posts: 510
Joined: Sat Jul 29, 2006 1:34 pm
Location: New York City
Contact:

Post 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.
User avatar
DK
Posts: 2891
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

Brilliant guys. Thanks Genete and thanks Darth!!!!

Cheers
D.K
Post Reply