Here's a Deep Expression node to do it, though clamp doesn't seem to work in 
the deep expression node so there may be some oddities depending on the data.  
This also doesn't account for the new volumetric deep data that might have 
varying .front and .back values - but I'm guessing that %99 of users aren't 
using that at the moment.

Just deepToImage the output...

set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
DeepExpression {
 temp_name0 near
 temp_expr0 0
 temp_name1 far
 temp_expr1 100
 chans1 deep
 rgba.red "((deep.front - near) / ( far - near )) * rgba.alpha"
 rgba.green "((deep.front - near) / ( far - near )) * rgba.alpha"
 rgba.blue "((deep.front - near) / ( far - near )) * rgba.alpha"
 name DeepExpression1
 selected true
 xpos 202
 ypos -32
}


On 2012-09-25, at 10:24 PM, Colin Doncaster <[email protected]> wrote:

> The Z returned will be ugly ol' regular Zed.  
> 
> You would want to copy the depth key of each samples depth into the RGB of 
> the sample then the deep to image. 
> 
> On 2012-09-25, at 9:23 PM, Frank Rueter <[email protected]> wrote:
> 
>> Not sure what you mean. DeepToImage should give you a rgbaz image, depth in 
>> z - done.
>> No (I haven't used in it yonks but that's what it should be doing)?
>> 
>> DepthKeying a deep image is somewhat like rendering a compressed cg image on 
>> blue and then chroma keying it  though. ;)
>> 
>> You've got more info in the deep data then what you will get out of any 
>> conventional z buffer
>> 
>> 
>> 
>> 
>> On 9/26/12 12:20 PM, David Schnee wrote:
>>> Guess I was hoping for a slick tool for the job... I'll create one, thanks.
>>> 
>>> On 09/20/2012 04:32 PM, Frank Rueter wrote:
>>>> 
>>>> Doesn't DeepToImage do that for you?
>>>> 
>>>> 
>>>> 
>>>> On 9/21/12 11:27 AM, David Schnee wrote:
>>>>> What's the best way to derive a nice z~depth matte from a Deep render?
>>>>> 
>>>>> Many thanks,
>>>>> -Schne
>>>>> -- 
>>>>> 
>>>>> \/ davids / comp \/ 177
>>>>> /\ tippettstudio /\ breakin'donz
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Nuke-users mailing list
>>>>> [email protected], http://forums.thefoundry.co.uk/
>>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Nuke-users mailing list
>>>> [email protected], http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>> 
>>> 
>>> -- 
>>> 
>>> \/ davids / comp \/ 177
>>> /\ tippettstudio /\ breakin'donz
>>> 
>>> 
>>> _______________________________________________
>>> Nuke-users mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>> 
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 

_______________________________________________
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