db&w Support Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 21, 2010, 12:40:27 AM
2469 Posts in 444 Topics by 801 Members
Latest Member: Mark Warner
Home Help Search Calendar Login Register
db&w Support Forum  |  exrTrader  |  exrTrader General Discussion  |  Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB  (Read 1208 times)
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1231


Obfuscated SDK Hacker


WWW
Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB
« on: October 17, 2009, 02:10:59 PM »

Hello there,

attached is a settings files to convert the motion vectors as exported by LW/exrTrader to the format understood by : ReelSmart Motion Blur from Re:Vision Effects.

Basically, these settings perform the steps described in the exrTrader Manual, but within Fusion.

If you use these settings, then there is no need to tinker with the processing options for the motion buffer in exrTrader.

You can either load the settings into a Custom Tool in Fusion, or add them to a Bin and then drag and drop them into a Comp.

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
MrWyatt
Kilo Pixel Renderer
**
Offline Offline

Posts: 94

infiniMap User


WWW
Re: Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB
« Reply #1 on: October 18, 2009, 02:04:19 PM »

can you post the math you are doing to convert the values. I try to do something similar for nuke using an expressions node and am kind of stuck with what rsmb wants.
any hint would help.
thanks in advance.

greetings

Guillaume
Logged

lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1231


Obfuscated SDK Hacker


WWW
Re: Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB
« Reply #2 on: October 18, 2009, 03:16:27 PM »

can you post the math you are doing to convert the values. I try to do something similar for nuke using an expressions node and am kind of stuck with what rsmb wants.
any hint would help.
thanks in advance.
Sure, this is pretty much a straight copy of the expression as used in Fusion:

n1 = 2048
s1 = (1 / n1 ) * 0.5
vx = max(min((vx1 + n1) * s1, 1), 0)
vy = max(min((vy1 + n1) * s1, 1), 0)

n1 is the max distance as expected by RSBM, usually 2048
s1 is a temp calculation to (slightly) speed things up.
min/max are used to clamp the result within the range of 0..1
vx is the final vector on x, vx1 the float buffers from LW, vy/vy1 the same for the y direction.

Cheers,
Mike
P.S. The .setting file is a text file anyhow, so you can extract the expressions from it.
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
MrWyatt
Kilo Pixel Renderer
**
Offline Offline

Posts: 94

infiniMap User


WWW
Re: Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB
« Reply #3 on: October 18, 2009, 05:49:23 PM »

Sure, this is pretty much a straight copy of the expression as used in Fusion:

n1 = 2048
s1 = (1 / n1 ) * 0.5
vx = max(min((vx1 + n1) * s1, 1), 0)
vy = max(min((vy1 + n1) * s1, 1), 0)

n1 is the max distance as expected by RSBM, usually 2048
s1 is a temp calculation to (slightly) speed things up.
min/max are used to clamp the result within the range of 0..1
vx is the final vector on x, vx1 the float buffers from LW, vy/vy1 the same for the y direction.

Cheers,
Mike

Thank you very much Mike. this will help me tremendously in my nuke expression.

P.S. The .setting file is a text file anyhow, so you can extract the expressions from it.

argh, haven't thought about checking it first. Am not really a fusion wizard so I thought it would be something binary instead of human readable text.
(slaps hand against forehead).
Logged

lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1231


Obfuscated SDK Hacker


WWW
Re: Fusion 5/6 Custom Tool Settings to convert LW style motion vectors to RSMB
« Reply #4 on: October 18, 2009, 05:58:11 PM »

argh, haven't thought about checking it first. Am not really a fusion wizard so I thought it would be something binary instead of human readable text.
(slaps hand against forehead).
No worries. that was actually their big change for V5.0, now flows/comps are basically stored as a big, nested, text based Lua array.

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
Pages: [1] Go Up Print 
« previous next »
Jump to: