Advanced Outline progresses

Discuss Synfig related news
User avatar
Genete
Site Admin
Posts: 4871
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Advanced Outline progresses

Postby Genete » Tue Jul 26, 2011 3:46 pm

Hi!
I'm glad to show you some progresses I'm achieving during this summer.
As you know, Synfig has a new Advanced Outline Layer since 0.63.00.
When I released the Advanced Outline I knew that not all the issues of its development were solved but as the main goal was achieved we decided to release a basic version and improve and refine its features in upcoming updates.

The Advanced Outline layer has a list of width points. Each width point holds the width on a particular position of the curve as well as other things. The position of the width point is a real value in the range of [0.0, 1.0]. When the position is 0.0 the width point is at bline start and when the position is 1.0 the width point is at bline end.

When I coded the Advanced Outline, I reused the Link to BLine feature that was added some time ago to place the width points and calculate the interpolation. It worked fantastic and saved me a lot of code!. But as it is commented here, the speed followed by a object along a general blline is not constant due to the different tangents and lengths of each bezier which forms the bline.

That draw back is also obtained in the Advanced Outline since the widthpoints and the interpolation is based on the same code.

So I decided to fix the problem of the non constant speed modifying the code of the Link to BLine feature. It allowed me to kill two birds in one shot, because looking for the Advanced Outline solution I solved the wanted feature for the Link to BLine.

Let me show some visual examples of the problem and its solutions:
homogeneous-vs-standard.png

Video that shows the difference between homogeneous and standard on Link To BLine:
http://youtu.be/3PGXroxBcuo
Video that shows how to solve a render artefact produced by the non homogeneous width calculation.
http://youtu.be/Na5M5yN50Ls

The homogeneous option does a lot of calculations to place the width interpolations and the width points positions on the right place. It is due to the fact that the length of the bline up to the position of the width point or one intermediate interpolation is calculated several times. Maybe it might slows the render a bit but I don't know other quicker solution to the problem.

I hope to release this code on September. Thanks for reading!
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
rylleman
Site Admin
Posts: 740
Joined: Wed Jan 21, 2009 2:36 pm
Location: Sweden.
Contact:

Re: Advanced Outline progresses

Postby rylleman » Wed Jul 27, 2011 3:41 am

Well done Genete! Looks fantastic!

User avatar
DaveJ
Posts: 312
Joined: Fri Jul 01, 2011 6:14 am
Location: Hungary

Re: Advanced Outline progresses

Postby DaveJ » Wed Jul 27, 2011 4:32 am

Many thanks for all your hard work - this looks fantastic!

User avatar
jcome
Posts: 933
Joined: Tue Feb 26, 2008 3:33 am
Location: Foshan City, China

Re: Advanced Outline progresses

Postby jcome » Wed Jul 27, 2011 4:43 am

Constant Speed, finally here it comes.

Thanks for your hard work.
time flies...

User avatar
Genete
Site Admin
Posts: 4871
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: Advanced Outline progresses

Postby Genete » Wed Jul 27, 2011 12:15 pm

What I really will enjoy is that constant speed would allow me to create the option of dashed outlines... ;)
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Return to “Synfig news discussion”

Who is online

Users browsing this forum: No registered users and 1 guest