Hi all,
I'm looking for a way to accurately converting a point position pass (world
space) to a depth pass (camera space). I have a camera available.
The following expression gets me close but not pixel perfect:
set cut_paste_input [stack 0]
version 7.0 v4
push $cut_paste_input
Expression {
temp_name0 cx
temp_expr0 shot_camera.translate.x-r
temp_name1 cy
temp_expr1 shot_camera.translate.y-g
temp_name2 cz
temp_expr2 shot_camera.translate.z-b
temp_name3 dist
temp_expr3 sqrt(cx*cx+cy*cy+cz*cz)
channel0 rgba
expr0 dist
channel1 none
name Expression7
label "convert p world to z-depth"
selected true
xpos 266
ypos -50
}
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users