Rotating part of an image - feathering the edges with distortion instead of fading

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
User avatar
Peter Wassink
Posts: 3698
Joined: 17 Feb 2006, 15:38
Location: Amsterdam (Basse-Lotharingie)
Contact:

Rotating part of an image - feathering the edges with distortion instead of fading

Post by Peter Wassink » 21 Aug 2020, 10:34

For our current project it would be most useful if the rotation of a selection could make use of feathering.
What i need is for the parts of the image that are not moving to stay connected in a fluid way to the imageparts that are transformed.
to express it visually; it should connect like rubber and not like mist.
The current fade usually does not deliver the best result because the smoothing of the selection of the rotation causes a smudged crossfade (mist).

Strangely enough, this fade starts appearing as a smudge with a rotation of zero degrees (Bug?)
this is a 400pixel diameter circle selection with a smoothvalue of 100, and a transformtoolrotation of zero :
rotating-feathered selection-005.png
rotating-feathered selection-005.png (90.47 KiB) Viewed 2117 times
white smudge appears even if the rotation is zero?

when you make any rotation there will be a smudge (caused by the fading of the smooth setting of the selection)
rotating-feathered selection-006.png
this is smooth value 100

I would like to have a way in tvpaint where rotating part of an image can be achieved with a gradual distortion (rubber), instead of a gradual fade.
and also have a larger fade range then 100, so that i t would be possible to do this:
rotating-feathered selection-002.png
this image was achieved using the warpgrid, it has to be done manually and is quite labor intensive as you cannot create a bounding box on selected gridpoints.
This would be an alternative way of achieving what i want,
add an option to manipulate multiple selected gridpoints of the warping grid with the use of a bounding box.
Peter Wassink - 2D animator
• PC: Win10/64 Home - Xeon Quadcore E5410@2.33Ghz - 12Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM

User avatar
ematecki
Site Admin
Posts: 2177
Joined: 15 Feb 2006, 14:32

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by ematecki » 21 Aug 2020, 11:45

Tornado FX maybe ?
Quicktime is DEAD. Get over it and move on !

User avatar
Peter Wassink
Posts: 3698
Joined: 17 Feb 2006, 15:38
Location: Amsterdam (Basse-Lotharingie)
Contact:

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by Peter Wassink » 21 Aug 2020, 12:49

ah i forgot about that one, it is close in a way...but alas... in its current state its is not really usable for our needs.

i used a circle selection for the example but in practice the selection shapes are very random, i want something that allows you to rotate and move a group of pixels while keeping a connection to the pixels outside of the selection.
to maintain the continuity of the shape, preferably such way that you cannot tell afterwards where the edge of the selection was.

The warp grid could be perfect... but its interface is lacking....a lot!
and its not possible to animate.

The tornado twists all of the inside of the selection, maybe if some controls were added to include a range.
Then it could be made to do what i asked above.
Peter Wassink - 2D animator
• PC: Win10/64 Home - Xeon Quadcore E5410@2.33Ghz - 12Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM

User avatar
slowtiger
Posts: 2514
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by slowtiger » 21 Aug 2020, 14:54

Just did a test with the old wrapping grid:
check.gif
check.gif (60.58 KiB) Viewed 2090 times
It's possible, but a PITA. And you can't reuse it other than in the exact same spot since you can't scale it.
TVP 10.0.18, Mac Pro Quadcore 3 GHz, 16 GB RAM, OS 10.11, QT 7.7.3

Svengali
Posts: 1329
Joined: 28 Dec 2006, 10:08
Contact:

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by Svengali » 21 Aug 2020, 16:59

Use the circular GUIDELINE option and set a circle center and size.
Then under optical flow, set fairly fine grid resolution.
Then set size and power of deform brush.
Then test the circle you want.

Note that you can assign a shortcut key to "FX STACK: APPLY" that lets you apply the deformation once for each tap of the shortcut key, to the current frame only.

Then you can use that shortcut key a specific number of times on a sequence of frames to progressively increase/decrease the intensity of distortion.

Note also that you can easily delete the current circular guideline and draw a new one to change the center and size of the circle...

Here's an example which uses multiple circular deforms (also the background has been wrapped and unwrapped)...
zizCIRCLEzag2.gif
zizCIRCLEzag2.gif (5.8 MiB) Viewed 2082 times
sven
Desktop: tvp Pro 11.0.10-64bit, Win8.1 - 24GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.36-1
Android Tablet: release 11, Samsung Galaxy Note10.1 - 32GB internal - microSD 32GB

Svengali
Posts: 1329
Joined: 28 Dec 2006, 10:08
Contact:

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by Svengali » 23 Aug 2020, 15:25

I think this is closer to what you want to do?
It's quick and dirty and rather convoluted, combining a keyframer operation with a flow deform operation (the seam doesn't quite match up but it could, given more care...)
TwistAndStretch.gif
TwistAndStretch.gif (1.59 MiB) Viewed 2007 times
sven
Desktop: tvp Pro 11.0.10-64bit, Win8.1 - 24GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.36-1
Android Tablet: release 11, Samsung Galaxy Note10.1 - 32GB internal - microSD 32GB

User avatar
Peter Wassink
Posts: 3698
Joined: 17 Feb 2006, 15:38
Location: Amsterdam (Basse-Lotharingie)
Contact:

Re: Rotating part of an image - feathering the edges with distortion instead of fading

Post by Peter Wassink » 24 Aug 2020, 17:38

Thanks Sven Eric and Marcus,
i need it to manipulate part of a drawing element without that part loosing its connection to the rest of the element.

its maybe a convoluted way to express it.
but what i need it for is to make painted strokes line up with a line drawing on a toplayer.
sometimes i only need to adjust a part of the painted stroke.
but when i make a selection with the transform tool i loose the connection with the part i want to remain in place.

all the above is in search of a way to manipulate in such a way that no cracks appear:
rotation-improvement.png
rotation-improvement.png (50.9 KiB) Viewed 1958 times
you can cover the crack a litttle bit with a feather, but its usually not satisfying... it becomes mist like:
rotation-improvement2.png
rotation-improvement2.png (56.23 KiB) Viewed 1958 times
it should be rubbery, a bit like this:
rotation-improvement3.png
this was done with the warptool, but he warptool is also very limited in its controls.
You cannot rotate a selection of points, you cannot control the arc of the stretch...
Peter Wassink - 2D animator
• PC: Win10/64 Home - Xeon Quadcore E5410@2.33Ghz - 12Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM

Post Reply