Jump to content


Photo

A New Directional Blur Macro

Macros Blur Gringo

  • Please log in to reply
16 replies to this topic

#1 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 26 October 2008 - 05:56 AM

This new macro applies correct motion blur to sRGB images and calculates its power and direction according to a path animation.

To use it, publish shape of your animation path:
go to Path's parameters in the Modifiers tab of your Transform, Merge etc., RMB on "Right-click here for shape animation", select Publish.

Then , in the macro controls,
1. RMB on "Right-click here to connect your path shape", select Connect To>Path:PolyLine>Value.
2. RMB on "Your Path Displacement", select Remove Motion_PathDisplacement.
3. RMB on "Your Path Displacement", select Connect To>Path>Displacement.
4. RMB on "Your Path Heading", select Connect To>Path>Heading.
5. Adjust the other parameters for your taste!

Attached Files



#2 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 26 October 2008 - 11:37 AM

Hurray, more toys for next week! :)

Thanks Gringo.

Pieter.

#3 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 26 October 2008 - 04:41 PM

I wish this macro was easier to apply, but I couldn't calculate coordinates of a center in the previous and the next frames.
Simple expressions syntax like Transform:GetValue("Center.X", time-1) doesn't work...

#4 Daniel Koch

Daniel Koch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 661 posts

Posted 27 October 2008 - 03:49 AM

GetValue(<input>, <time>) returns a parameter object, in this case a Point, with X and Y members (I know, GetValue() on a numeric input just returns a numeric value instead of a Number object, but that's just a special case to make it easier to use).

Try Transform:GetValue("Center", time-1).X instead.

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 27 October 2008 - 06:32 AM

Try Transform:GetValue("Center", time-1).X instead.

Thank you! It works.
A new simplified version of the macro will be available soon :)

#6 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 27 October 2008 - 12:30 PM

Here it is!
Improved version v02.

Just connect its center to the center of your animated transform or to a tracker, or to an expression. That's it!

Attached Files



#7 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 25 October 2009 - 08:50 PM

In this new version controls were named correctly to be used in simple exp​ressions, the Common Controls tab with additional mask controls was added.

Attached Files



#8 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 02 November 2009 - 05:05 PM

New Pre-Gamma / Post-Gamma control in this version lets you switch the gamma operations off.

Attached Files



#9 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 04 June 2011 - 04:26 PM

I found this macro on VFXpedia and I am trying to experiement with it while working on a workflow to fix an issue I have run into.

I have some badly shot keys. They was shot against WHITE! Not fun to key. However, it was also shot under uncorrected flouresants, and I has just barely able to key for green and get a starting point for keys. I was surprised it keyed as well as it did.

But, the motion blur on a moving hand is totally unkeyable with Ultrakeyer and this background. So I figured I try to put back some of the lost blur. Enter the macro DirectionalBlurFromPathGamma_v02-3, which I have never tried before.

So in playing around, I think this will work, but I ran into one odd issue. I tracked the motion of the hand and feed that tracker data to the macro.

The strange thing is that the macro creates the blur for the Left to Right motion, but does not correctly create it for the RIGHT to Left motion.

So I figured out that with TWO macro nodes, one connected to the Unsteady position of the Tracker and one connected to the Steady Position of the Tracker, I can get the right direction of blur for each direction. By cutting out pieces and spliting them together and I can get acceptable patches for the missing motion blur on the hand.

So my question is why doesn't the macro understand the change in direction and produce the correct direction of blur? I'll assume I'm just doing something wrong in my setup, forcing me to resort to my 'bandaid' fix.

If it is possible to do this with one Node, I'd love to know what I am doing wrong, since I have about 20 different shots to fix the missing motion blur.

Thanks,

-David

Attached Files



#10 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 04 June 2011 - 11:26 PM

Twixtor or some other optical flow motion blur will save your day. I''d suggest to try the free beta of speedo: http://info.genarts....ublic-Beta.html



#11 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 04 June 2011 - 11:31 PM

Hi Tilt!

Hey I never thought about using Speedo (I'm on the beta) for adding MoBlur. I was thinking of it as an advanced speed changer. I'll look into your suggestion.

Thanks,
-David

#12 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 06 June 2011 - 08:51 AM

There was a bug in intermediate calculations, thank you for the report!

Please, check the new version:
http://vfxpedia.com/...a_v02-4.setting

#13 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 06 June 2011 - 11:47 AM

Thank you Gringo, I'll test out the new version and report back.

-David

#14 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 06 June 2011 - 12:53 PM

Hi Gregory,

The new version of your macro works as expected. Thanks for the fix!
-David

#15 leif3d

leif3d

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 554 posts

Posted 06 June 2011 - 03:15 PM

Aha!
I needed something like this a couple of weeks ago, but I never thought this macro would be for motion blur. I guess the name doesn't really jump out at you for that purpose...
Thanks again Gregory!





Also tagged with one or more of these keywords: Macros, Blur, Gringo

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users