Synfig Project Forum

Forums for Synfig Project
It is currently Fri Aug 22, 2014 4:37 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jul 26, 2011 3:46 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4765
Location: Spain
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:
Attachment:
homogeneous-vs-standard.png
homogeneous-vs-standard.png [ 75.96 KiB | Viewed 1682 times ]

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


Top
 Profile  
 
PostPosted: Wed Jul 27, 2011 3:41 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 21, 2009 2:36 pm
Posts: 736
Location: Sweden.
Well done Genete! Looks fantastic!

_________________
www.rylanderanimation.se
Synfig scripts, etc.


Top
 Profile  
 
PostPosted: Wed Jul 27, 2011 4:32 am 
Offline
User avatar

Joined: Fri Jul 01, 2011 6:14 am
Posts: 312
Location: Hungary
Many thanks for all your hard work - this looks fantastic!

_________________
http://kecskebak.blogspot.com


Top
 Profile  
 
PostPosted: Wed Jul 27, 2011 4:43 am 
Offline
User avatar

Joined: Tue Feb 26, 2008 3:33 am
Posts: 904
Location: Foshan City, China
Constant Speed, finally here it comes.

Thanks for your hard work.

_________________
time flies...


Top
 Profile  
 
PostPosted: Wed Jul 27, 2011 12:15 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4765
Location: Spain
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group