Page 1 of 1

Zdefocus

PostPosted: Tue Dec 23, 2014 7:14 pm
by Carl June
Hi there,

my first post here.

I'm trying Fusion and I'm liking it a lot so far.
One of the thing I couldn't find though is a good zdefocus tool. Is there anything to add realistic defocus using zdepth passes?

Re: Zdefocus

PostPosted: Tue Dec 23, 2014 10:09 pm
by Marek Subocz
a quote from different thread on this forum:

michael vorberg wrote:there is no native depth based defocus in fusion right now. if you have a studio version which can load plugins the best solution is the frischluft plugin. which is really nice.
for the free version you could try a macro: http://web.archive.org/web/20110823131222/http://vfxpedia.com/index.php?title=Settings_and_Macros/DepthDefocus_Description

Re: Zdefocus

PostPosted: Wed Dec 24, 2014 12:51 am
by Carl June
Thank you for your reply Marek,

Sorry if this was already posted, next time I'll try to search better ;)

I'm trying to decide what to pick, if Fusion or Nuke. At work I can already play around with Nuke, and with Fusion free I can test Fusion as well.
3d wise I prefer Fusion, way better. Also, not sure if it's because I've already started with Nuke, but Fusion seems very intuitive.

I really hope they'll add a native Zdefocus in the next version.

Best,
Carl

Re: Zdefocus

PostPosted: Wed Dec 24, 2014 1:29 pm
by Marek Subocz
no problemo, Carl
glad to be of a help.

happy fusioning and Merry Christmas, Everyone! ;)

Re: Zdefocus

PostPosted: Wed Dec 31, 2014 8:51 pm
by ChrisWilliamson
Someone pointed me to a macro on this forum that does a pretty good depth defocus. But the built in Variblur node also does a pretty good Z-defocus (but without shaped aperture) you just need to use a use a 'bitmap' node to convert your depth image to a 'mask' & set the blur type to 'defocus'

heres a little flow to demonstrate:

{
Tools = ordered() {
Bitmap1 = BitmapMask {
Inputs = {
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1, }, },
ClippingMode = Input { Value = FuID { "None", }, },
Image = Input {
SourceOp = "Background1",
Source = "Output",
},
Channel = Input { Value = FuID { "Red", }, },
},
ViewInfo = OperatorInfo { Pos = { 587, 139, }, },
},
Background1 = Background {
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
Type = Input { Value = FuID { "Vertical", }, },
TopRightRed = Input { Value = 1, },
TopRightGreen = Input { Value = 1, },
TopRightBlue = Input { Value = 1, },
BottomLeftRed = Input { Value = 1, },
BottomLeftGreen = Input { Value = 1, },
BottomLeftBlue = Input { Value = 1, },
Gradient = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1, },
[1] = { 1, 1, 1, 1, },
},
},
},
},
ViewInfo = OperatorInfo { Pos = { 394, 139, }, },
},
VariBlur1 = VariBlur {
Inputs = {
Method = Input { Value = 2, },
Quality = Input { Value = 7, },
XBlurSize = Input { Value = 7.1, },
BlurLimit = Input { Value = 1.48, },
Input = Input {
SourceOp = "Paint1",
Source = "Output",
},
BlurImage = Input {
SourceOp = "Bitmap1",
Source = "Mask",
},
},
ViewInfo = OperatorInfo { Pos = { 587, 228, }, },
},
Paint1 = Paint {
Inputs = {
Input = Input {
SourceOp = "Background2",
Source = "Output",
},
Paint = Input {
SourceOp = "Rectangle9",
Source = "Out",
},
},
ViewInfo = OperatorInfo { Pos = { 455, 228, }, },
},
Rectangle9 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Paint = Input {
SourceOp = "Rectangle8",
Source = "Out",
},
},
},
Rectangle8 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.469265375286341, 0.12666667252779, }, },
Paint = Input {
SourceOp = "Rectangle7",
Source = "Out",
},
Width = Input { Value = 0.803598217666149, },
Height = Input { Value = 0.0026666671037674, },
},
},
Rectangle7 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.467016499489546, 0.618666678667068, }, },
Paint = Input {
SourceOp = "Rectangle6",
Source = "Out",
},
Width = Input { Value = 0.784107960760593, },
Height = Input { Value = 0.0106666684150696, },
},
},
Rectangle6 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.488005992025137, 0.319999992847443, }, },
Paint = Input {
SourceOp = "Rectangle5",
Source = "Out",
},
Width = Input { Value = 0.784107930958271, },
Height = Input { Value = 0.0106666684150696, },
},
},
Rectangle5 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.467766117304564, 0.845333337783813, }, },
Paint = Input {
SourceOp = "Rectangle4",
Source = "Out",
},
Width = Input { Value = 0.785607196390629, },
Height = Input { Value = 0.0053333044052124, },
},
},
Rectangle4 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.814092963933945, 0.512000013142824, }, },
Paint = Input {
SourceOp = "Rectangle3",
Source = "Out",
},
Width = Input { Value = 0.00299853086471558, },
Height = Input { Value = 0.922666691243649, },
},
},
Rectangle3 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.562218904495239, 0.512000005692244, }, },
Paint = Input {
SourceOp = "Rectangle2",
Source = "Out",
},
Width = Input { Value = 0.0029984712600708, },
Height = Input { Value = 0.928000010550022, },
},
},
Rectangle2 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.308845579624176, 0.513333346694708, }, },
Paint = Input {
SourceOp = "Rectangle1",
Source = "Out",
},
Width = Input { Value = 0.00599700212478638, },
Height = Input { Value = 0.94133336097002, },
},
},
Rectangle1 = Rectangle {
IsThreaded = false,
Brushes = {
},
ApplyModes = { "PaintApplyColor", },
Inputs = {
Center = Input { Value = { 0.121439278125763, 0.513333339244127, }, },
Width = Input { Value = 0.00299850106239319, },
Height = Input { Value = 0.946666680276394, },
},
},
Background2 = Background {
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1, },
[1] = { 1, 1, 1, 1, },
},
},
},
},
ViewInfo = OperatorInfo { Pos = { 292, 228, }, },
},
},
}

Re: Zdefocus

PostPosted: Wed Jan 07, 2015 2:00 am
by Michel Zigaib
Depth blur is working fine for me so far, the only issue is that you don“t have some nice features like bloom and aperture shape.

I hope that helps.

Cheers!

Re: Zdefocus

PostPosted: Wed Jan 07, 2015 7:11 pm
by Marek Subocz
actually blooming should be there., but as looked for it i couldn't find it... ?
will look further into it
aperture.. not so much - but You have sth called - Bokeh Profiling- play with that (if You haven't already)

Re: Zdefocus

PostPosted: Wed Jan 07, 2015 7:30 pm
by Rony Soussan
ChrisWilliamson wrote:Someone pointed me to a macro on this forum that does a pretty good depth defocus. But the built in Variblur node also does a pretty good Z-defocus (but without shaped aperture) you just need to use a use a 'bitmap' node to convert your depth image to a 'mask' & set the blur type to 'defocus'


I think the most impressive part of the example is the grid made with paint node!

Re: Zdefocus

PostPosted: Wed Jan 07, 2015 8:29 pm
by ChrisWilliamson
haha thanks, I'm an artist at heart... :P

Re: Zdefocus

PostPosted: Mon Jan 12, 2015 10:46 am
by Eric Westphal
Sorry to state the obvious,
but there is a GridMaker Macro in Bins->Templates->Layouts...;-)

Cheers.

Eric.

Re: Zdefocus

PostPosted: Mon Jan 12, 2015 8:07 pm
by ChrisWilliamson
heh, maybe obvious to you, I hadn't even found the bin! :D

Re: Zdefocus

PostPosted: Tue Jun 16, 2015 8:49 pm
by Gregory Chalenko
Marek Subocz wrote:actually blooming should be there., but as looked for it i couldn't find it... ?
will look further into it
aperture.. not so much - but You have sth called - Bokeh Profiling- play with that (if You haven't already)

Hi Marek,

For blooming, please make sure that the Pre-Gamma / Post-Gamma checkbox is switched on and adjust the Image Gamma parameter.

It sits there for the case, when your input image is in sRGB or another non-linear color space. But even if you work in a totally correct linear way, you can still use that pair of controls to exaggerate the bokeh for artistic purposes.

Re: Zdefocus

PostPosted: Tue Jul 21, 2015 1:40 pm
by Dima Fedotof
i have DepthDefocus made by Chalenko from fusion instruments, but i have no right to give it to anyone, so if you can find it somewhere its yours... this defocus have bloom, normal borders, fast enough, and native and other good things that i can not describe because of luck of englesh language. :geek:

Re: Zdefocus

PostPosted: Tue Jul 21, 2015 1:41 pm
by Dima Fedotof
Wow! i didnt so chalenko post up here :P