Auto Smooth Line While You Draw

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Auto Smooth Line While You Draw

Post by Svengali »

Sierra,
As Elodie said, RIGHT-click in the MainMenu (on the stroke icon) and the Shape Settings window will open.

At the bottom of the Shape Settings window you'll see a check box for Activate, a check box for Real Time and a slider labeled Smoothing.
  • check Activate to have strokes smoothed.
    when Real Time is checked, the line is smoothed as it is drawn.
    when Real Time is unchecked, the last drawn line is smoothed AFTER the stylus tip is raised.
    set smoothing slider value higher for greater smoothing.
Sven
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Auto Smooth Line While You Draw

Post by ZigOtto »

hi Sierra,

if you already have updated your tvpa version (last released = v9.5.12 I think),
you should have 3 extra lines at the bottom of your [Shape Settings] window,

picture :
smoothingSettings.png
smoothingSettings.png (4.29 KiB) Viewed 34817 times
:wink:
User avatar
Sierra Rose
Posts: 477
Joined: 04 May 2008, 17:14
Location: Windsor, California
Contact:

Re: Auto Smooth Line While You Draw

Post by Sierra Rose »

Thanks to you both...I found the 3 new controls on the shape settings panel. Another little TVP miracle.
WinXP 32bit 10.0.17Pro
Boomslang
Posts: 86
Joined: 10 Apr 2007, 14:07

Re: Auto Smooth Line While You Draw

Post by Boomslang »

I tested it, it's good! Though there's a quite some lag with higher smoothness. But that's probably just my computer.
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Auto Smooth Line While You Draw

Post by Elodie »

what do you mean by "high" ?
Boomslang
Posts: 86
Joined: 10 Apr 2007, 14:07

Re: Auto Smooth Line While You Draw

Post by Boomslang »

Well anything above the smooth-settings over 20 or so, it has some lag. I don't know if others experience this as well. I guess it just takes some getting used to.
Either way great update!
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Auto Smooth Line While You Draw

Post by Fabrice »

it's not properly a lag, if you set the value to 20, we just need 20 pixels to calculate the average path and then only draw after the corresponding line.
That's why the line can't be directly under the cursor for high values.

(I'm not sure it makes sense)
Fabrice Debarge
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Auto Smooth Line While You Draw

Post by Peter Wassink »

Fabrice wrote:it's not properly a lag, if you set the value to 20, we just need 20 pixels to calculate the average path and then only draw after the corresponding line....
I think you guys should work harder and create an algorithm that calculates where the animator will move the cursor so that this 'lag' effect can be solved.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Auto Smooth Line While You Draw

Post by Fabrice »

In fact, it's physically not possible because the pixel "where your cursor is" can't be the same after the smooth calculation, and we need all the information of the previous positions of the cursor to calculate the final results in realtime.
We can not guess if you will change the current direction of the line, break it or change the angle ... unfortunalety no algorythm can predict the future :P

The only way to avoid this is to uncheck the "realtime" box, the smooth/average calculation will then be done after the whole stroke is done.
Fabrice Debarge
User avatar
Satrip
Posts: 109
Joined: 03 Aug 2007, 15:52
Location: France-85
Contact:

Re: Auto Smooth Line While You Draw

Post by Satrip »

Maybe another good way to solve this would be an option to set the smooth value relative to the cursor speed (with a customisable curve),
so that if the smooth value is set to 20 (for example), the line is smoothed at 20 when drawing/moving fast then the value reduce progressively to reach 0 when stop moving.

Edit: Also a very good smooth on a raster inking tool is the one created by a japanese guy in a patch for GIMP (called "Gimp Painter", don't confound with "Gimp paint studio" the prestets/brushs pack). It worth the try to compare!
Here is a page explaining the feature
Some more technical details here
And here the patch+windows/mac/deb builds
Last edited by Satrip on 07 Apr 2010, 19:08, edited 1 time in total.
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Auto Smooth Line While You Draw

Post by Peter Wassink »

Fabrice wrote:...We can not guess if you will change the current direction of the line, break it or change the angle ...
If there is one team that can do it.... its you
imagine animators no longer having to think about where to move the cursor..... it would be fantastic.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Auto Smooth Line While You Draw

Post by Peter Wassink »

sorry about that....i'll stop joking now :roll:

Satrips suggestion doesn't sound half bad.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Auto Smooth Line While You Draw

Post by Fabrice »

Peter Wassink wrote:
Fabrice wrote:...We can not guess if you will change the current direction of the line, break it or change the angle ...
If there is one team that can do it.... its you
imagine animators no longer having to think about where to move the cursor..... it would be fantastic.
ok, ok :lol: thanks for that nice comment about us :wink:

if we can improve something, we will ! Sooner or later !
Fabrice Debarge
User avatar
meslin
Posts: 154
Joined: 26 Oct 2008, 03:07
Location: Connecticut / New York

Re: Auto Smooth Line While You Draw

Post by meslin »

The smoothing is a revelation for TVP, I haven't closed the Shape Settings window since the update.
Actually, between the two options of Real-Time (with # Smooth Pixels Lag) and Smoothing After Stroke is Complete, there is a third option, one that is used in the Japanese software NekoPainthttp://www2.tbb.t-com.ne.jp/neko_paint/. They call it "Neko Correct" but I am fairly certain that it just draws your unsmoothed real time stroke and then replaces it with the smoothed stroke when it has enough pixels to make the smoothing calculation. So with smoothing set to 20, you could start drawing a 20 scribbly pixels, and at the 21st pixel, the first one would get moved, at 22, the 2nd one would get moved, and you can see a little smoothy snakey line chasing after your cursor. It is actually quite nice!

David
valeli
Posts: 1
Joined: 28 Apr 2010, 03:26

Re: Auto Smooth Line While You Draw

Post by valeli »

good day to all and to the TVPaint team,
I'm glad you guys considered implementing a smoothing feature tool :D
this can help artists make cleaner line art

although the TVPaint's current smoothing feature is great, it doesn't work so well for me, as my hands aren't that quick and stable
and the tails of the lines go straight to where your cursor is after you stop

i like this similar smoothing feature used by some software, mostly 2d painting programs coming from Japan
here are some examples i recorded of "Lag Smoothing Feature"/"Pen Stabilizer" from

SYSTEMAX PaintToolSAI - i really believe they were the ones who first implemented this
Image
Image
-notice on the first image that the thickness at the line ends aren't calculated, this results
from an instant stop in a stroke
-the delay only works with tablets(like tvpaint's)

CELSYS IllustStudio(from the developers of RETAS Animation Studio)
Image
Image
-line ends are calculated/compensated
-there is delay even if only the mouse is used

these are in real-time
the line follows an estimated direction of where the cursor goes and the lag adjusts to the cursor/drawing speed
in short its a "slow motion" effect 8)

sorry for my bad english
Post Reply