pPass_Mask_hub v2.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Philippe HUBERDEAU
Gizmo that generates mask from point position pass. It has offset, rotate, non-uniform spread parameters and ability to generate cube or sphere. This new version has curve to control the shape of the gradient/feather as well as modify the spread according to the negative or positive values. (see animated gif)
Requirements:
10.0, 9.0, 8.0, 7.1, 7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
27 Feb 2020
1839

- For fine details on tiny distances, prefer 32b float renders to avoid banding.

- To perform better antialiasing than by Matrix antialias, render pPass with double master resolution. The output is downscaled to root.format resolution.

 

- If the the result is completly black, try raising spread and multiplier values.

- If the the result is completly white, try lowering spread and multiplier values.

 

- You can copy the rotation of the camera in the rotate channels to line up the orientations or tweak it to your needs... But copy only one keyframe otherwise you will go to camera space which far less interesting !

 

- This gizmo uses RotateNormals gizmo from Hakan Blomdahl. Thanks to him

- Thanks to Nathan Dunsworth who made me discover pPass power !

- Added options requested by Viktor Daniel : invert, premult and output channel

 

- The rotation is now performed before scale and rotation, so it is more handy to control scales and moves according to orientation

- Added a way to visually pick and spot the aera with ViewOnPP.

 

Enjoy,

philhub

 

 

pp mask hub showcase

 

ppmask customCurve x2b half

Please login in order to download these files.

Comments   

 
0 # lucien Fostier 2010-09-27 05:31
Yeah philhub sur nukepedia

I'm gonna test this soon

keep it real man!

lulu
 
 
+2 # Philippe HUBERDEAU 2010-09-27 07:16
Hi Lulu !
Just used it on only one project, but found it very handy for those lazy guys like me who can't bare rotos work ! ;-)
Stereo shots with amazing cam moves ? Just no more work to do ...
Combined with relighting it's just big fun !
 
 
0 # Viktor Daniel 2010-09-28 03:16
Hi mate,
When I trying to use this gizmo with stereo project Nuke shows me some errors

ERROR: Gizmo1.RotateNo rmals.RotData.r otate: Nothing is named "parent.parent.AxisInternRot.rotate.main"
ERROR: Gizmo1.RotateNo rmals.RotData.r otate: Nothing is named "parent.parent.AxisInternRot.rotate.main"
ERROR: Gizmo1.RotateNo rmals.RotData.r otate: Nothing is named "parent.parent.AxisInternRot.rotate.main"

How to fix this?
 
 
0 # Philippe HUBERDEAU 2010-09-28 03:36
Hi Viktor,
I had just made last fix at home before posting it and of course, as always, quick fixes are not friend with stability ! Sorry for that. The last ".main" has to be deleted in order to handle mono AND stereo projects. I'm pretty new to nukepedia, so hope i can easily post an update... Stay tuned... and thanks for reporting it.
 
 
0 # Howard Jones 2010-09-28 05:43
Hi Phillippe

Thanks for this - we have been testing this against our own version and noticed that your centre seems incorrect - if you change the expression attached to the constant to -r, -g, -b instead of 1-r etc the centre appears to be correct. Of course it could be ours that is out.

Howard
 
 
0 # Philippe HUBERDEAU 2010-09-28 07:03
Hi Howard,
I hadn't noticed any shift when using but it may depends on the scene scale. Anyway you're completely right. Thanks for making me aware of that, now it's neater. Since i had written it few months ago (but never found time cleaned it up. Uhuh, actually not so clean ;-) you make me dive in again, so i take advantage to fix the falloff issue. Now it's bidirectionnal.
Thanks
philhub
 
 
0 # Viktor Daniel 2010-09-28 12:24
Would be cool to see some more instructions in details, I can get proper colormask only b&w one in Put RGB to Alpha mode.
Also could be nice to have Invert output option, Premul output and option to select output channel also.
 
 
0 # Philippe HUBERDEAU 2010-09-29 12:46
Excuse me but i didn't get your 1st sentence. You talked about PutAlphaInRGB option or do you suggest another option which would be PutRGBtoAlpha, because of course it's not the same and it doesn't make sense to me. Also didn't understand why you talked about colormask only b&w. It's not meant to handle multi mask in multi channel. Can you explain more in depth ?
About invert, premult, and output channel, i didn't found the need to add it til then, but i understand that different people have different use of a tool. That's the essence of options. To be ticked or not to be ticked. So let's do it !
philhub
 
 
0 # Philippe HUBERDEAU 2010-09-30 01:00
That's it
 
 
0 # Viktor Daniel 2010-09-30 02:19
Yeap, I was meaning Put Alpha in RGB. I thought that with this gizmo I can output color masks of any object in the scene.
Apparently I'm using it in not proper way so would be cool if you could make a little tutorial how to use it right.
Thanks.
 
 
0 # Philippe HUBERDEAU 2010-09-30 04:44
The behavior you looking for is more like extract mask from an objectID or materialID pass. You know what ? i've also made a gizmo for that ! Lucky man ! ;-)
It's called IDselect_hub.
I will post a script example to show how it works.
 
 
0 # Philippe HUBERDEAU 2010-10-01 00:17
The point position pass you render must be in world space, thus the mask you generate is "sticked" to the scene (for still objects of course)
The script is too large to paste in the comments, so please dl it on : http://www.divshare.com/download/12700426-202
philhub
 
 
0 # Viktor Daniel 2010-10-01 12:57
Thanks for that, Philippe
 
 
0 # Philippe HUBERDEAU 2011-07-17 15:38
For your own interest, i've just put a new version, nothing very exciting, but my last version seemed to be broken for stereo projects, and the premult option just didn't do anything. It's a pity that i didn't have the opportunity to use it for monthes... and must be drunk when releasing the last version, so sorry for that !
 
 
0 # Philippe HUBERDEAU 2012-06-26 06:16
Another minor update (1.6). It's been awhile since i played with it and i now find that sometimes the result is broken and the clear cache fix it. But it's almost unusable, so now it's working well (at least for me ;^) Also, i fix the "out_mask" feature which was quite useless, and externalize the "invert" option.
That's all folks !
 
 
0 # Philippe HUBERDEAU 2012-06-26 10:26
The falloff was also pretty weird, it's far better now !
 
 
0 # Alexey Kuchinski 2016-03-02 10:27
Hi Philippe, thanks for the update.
You may want to erase version number info in the gizmo.
it rises error on earlier than 9.8 versions.
cheers
 
 
0 # Philippe HUBERDEAU 2016-03-05 11:34
Thanks for reporting Alexey.
It's modified in the 2.0 now.
 
 
0 # Alexey Kuchinski 2016-03-05 14:19
Hi Philippe

so comes next complain :)
it is pretty imposible to resample once you sampled once

i must use Ctrl+click and view PP which cause Viewer to flicker since it samples a result instead of input,
if i am using Ctrl+Alt+click to sample an original i am getting black.


----
problem is in your constant, you can not sample again from constant.

instead of constant you can put grade node
connect input to Input1
set gain to 0
link add(offset) to your color picker
disable black clamp

now you can resample
-----

cheers
 
 
0 # Philippe HUBERDEAU 2016-03-10 16:38
Thanks again Alexei ;-)
Didn't dig too much that problem as i realized clicking in a "quick manner" solved it. But i'm always glad to learn new tricks and enhance the tools, so it's worth adding it !
By the way i have only Non Commercial Nuke at the moment so the fix will only come a bit later.
Thanks again,
philhub
 
 
+1 # Philippe HUBERDEAU 2016-03-14 10:01
Done in v2.1
 
 
0 # Ben Dewalle 2020-03-04 18:37
Awesome and very light tool, I've been using it for years! It saved me so much.
Thanks for the update Philippe :)
 

You have no rights to post comments

We have 2997 guests and 57 members online