Ok, I figured out a way to do a single pgBokeh setup after using a deepholdout. If anyone is still interested. Using some inspiration from these suggestions. By forcing it to use the 'Input' color.

First a recolor,
then a deepholdout to get the cut render I want to use.
Then shuffle that rgba into a new layer "layer 1"
Plug this into 'Input'
Plug in the original deep into 'Deep Input'
Change the Bokeh Channels to "layer 1"
Then Shuffle that result back to rgba

Cleanest way I could fine that gives the best results. I am liking pgBokeh results a lot with the deep input, though it would be awesome if the node defaulted to use the rgba of 'input' though, or maybe a checkbox/switch. But the work around is simple enough, just need to know to do it.

Thanks,
Adam

On 07/12/2012 02:07 PM, Adam Hazard wrote:
Ok cool. though I am having trouble figuring out how to remove the rgb channels from a deep in comp to make this work, Recoloring with a black constant, or a deep expression with 0 in the rgb channels, still renders out a black screen in Bokeh. And it still has the uncut defocused alpha from the 'a' channel of the deep. Or do the rgb channels need to be stripped out at render time?

Thanks,
Adam

On 07/12/2012 01:19 PM, Colin Doncaster wrote:
Hi,

If you remove the RGB channels from your deep image then Bokeh will do #1.

#2. It looks like this is an oversight, we used ChannelSet_knob and looking at the more recent c++ reference this has to be InputChannelSet_knob for "all" to show up. Not too sure if there's any other differences but we can change that easily.

Cheers

On 2012-07-12, at 3:01 PM, Adam Hazard wrote:

Thanks Dennis, took a good little while to figure out the order of operations and placement, but I got this to work with the dual phBokeh setup. Thank you!


However, I am having a bit of trouble figuring out Colin's single pgBokeh setup though.

Currently, I am doing the deep holdout to get the cut alpha I want. Then shuffle copying that alpha into the mask.a channel into the original beauty rgba. Then piping that into a deepRecolor and setting the channels to 'all'. That recolor is going into the 'Deep Input' of pgBokeh, and the previous shuffle copy is going into the 'Input'. In the pgBokeh I have the Bokeh channels set to rgba and switching the 'a' channel to the mask.a, since I can't set the channels to 'all'. Out of that I am then shuffle copying the cut defocused mask.a back into the rgba.a. However the defocused rgb is still uncut, and I cant seem to figure out how to cut the full rgb by the cut defocusd 'a', without loosing edge detail since I also dont have full uncut defocused a. All I have still is a full uncut nondefocused 'a'. Hopefully this all makes sense, but how are you setting this up for a single pgBokeh?

Additionally, I do have a couple suggestion for ease of use of the pgBokeh in this instance.

1. Since this node requires something plugged into 'Input', then it should also have an option to use the rgba from 'Input' and not default to the rgba of the 'Deep Input'. That way I can use the deep as a defocus mask but use what ever rgba I want plugged into 'Input', straight out of a deep holdout or whatever. Not sure why it requires something plugged into 'Input' when using Deeps. if it just ends up completely ignoring it, as far as I can tell. Unless I am missing some switch?

2. Include an 'all' in the Bokeh Channels dropdown.


If either of those would be possible, mainly #1, it would make this node much more useful for us in production, and would work like most other defocus nodes already in use.

Ok, thanks for any further help and suggestions.

-Adam

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to