Glass v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Frank Rueter
simple glass filter
Requirements:
5.0, 5.1, 5.2, 6.0, 6.1, 6.2 or later
Linux, Mac, Windows
5.0, 5.1, 5.2, 6.0, 6.1, 6.2 or later
Linux, Mac, Windows
25 May 2011
4652
1.1 adds a "smoothness" knob which smooths out the internal vectors and gets rid of artifacts.
This gizmo uses IDistort to create a simple glass light effect based on a control mask.
Please login in order to download these files.
Comments
so for each pixel: redPixel.width = redPixel.width* depth, redPixel.height = redPixel.height *depth, greenPixel.widt h = greenPixel.widt h*depth, greenPixel.heig ht = greenPixel.heig ht*depth etc
If this makes sense?
this is the new gizmo :
#! /apps/thefoundr y/Nuke6.2v2/Nuk e6.2 -nx
version 6.2 v2
Gizmo {
inputs 2
addUserKnob {20 "" l Glass}
addUserKnob {7 displace l Displace R 0 20}
displace 5
addUserKnob {7 abberation l Abberation}
addUserKnob {26 "" l Defocus}
addUserKnob {6 useDef l "Apply Defocus" -STARTLINE}
addUserKnob {41 size T ZBlur1.size}
addUserKnob {41 max_size l maximum T ZBlur1.max_size }
addUserKnob {41 shape l "filter shape" T ZBlur1.shape}
}
Input {
inputs 0
name img
xpos -289
ypos 81
}
set N7d93400 [stack 0]
Dot {
name Dot1
xpos -255
ypos 634
}
Input {
inputs 0
name control
xpos -64
ypos -426
number 1
}
set N7d99020 [stack 0]
push $N7d99020
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.alpha
name Copy6
xpos -64
ypos -355
disable {{"![exists parent.input1]" }}
}
set N7d9bd30 [stack 0]
Dot {
name Dot2
xpos 94
ypos -343
}
set N7dad360 [stack 0]
Transform {
translate {0 -1}
center {320 240}
name down
xpos 60
ypos -140
}
push $N7d9bd30
Dot {
name Dot3
xpos -122
ypos -343
}
Dot {
name Dot4
xpos -207
ypos -343
}
Transform {
translate {0 1}
center {320 240}
name up
xpos -241
ypos -180
}
push $N7dad360
Dot {
name Dot5
xpos 176
ypos -343
}
Transform {
translate {1 0}
center {320 240}
name right
xpos 142
ypos -221
}
push $N7d9bd30
Shuffle {
in alpha
green black
blue black
out rgb
name Shuffle1
xpos -64
ypos -311
}
Transform {
translate {-1 0}
center {320 240}
name left
xpos -64
ypos -285
}
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.green
name Copy2
xpos -64
ypos -228
}
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.blue
name Copy3
xpos -64
ypos -187
}
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.alpha
name Copy4
xpos -64
ypos -147
}
Expression {
temp_name0 l
temp_expr0 red
temp_name1 r
temp_expr1 green
temp_name2 u
temp_expr2 blue
temp_name3 d
temp_expr3 alpha
channel0 {forward.u -forward.v -backward.u none}
expr0 (l-r)*width
channel1 {-forward.u forward.v -backward.u none}
expr1 (d-u)*width
channel2 depth
expr2 (abs(l-r)+abs(d -u))*width/2
name Expression1
xpos -64
ypos -3
}
set N7df8cc0 [stack 0]
Dot {
name Dot6
xpos 89
ypos 1
}
Dot {
name Dot7
xpos 89
ypos 193
}
push $N7df8cc0
push $N7d93400
Copy {
inputs 2
from0 -rgba.alpha
to0 -rgba.alpha
channels forward
name Copy1
xpos -64
ypos 67
}
Copy {
inputs 2
from0 -rgba.alpha
to0 -rgba.alpha
channels depth
name Copy8
xpos -64
ypos 175
}
ZBlur {
channels rgba
math -linear
shape 1
name ZBlur1
xpos -64
ypos 252
disable {{!parent.useDe f}}
}
set N7e16300 [stack 0]
IDistort {
channels {rgba.red rgba.green rgba.blue rgba.alpha}
uv forward
uv_scale {{parent.displa ce i}}
name IDistort4
xpos 101
ypos 491
}
push $N7e16300
IDistort {
channels {-rgba.red -rgba.green rgba.blue rgba.alpha}
uv forward
uv_scale {{parent.displa ce/(1+parent.abberation/10)}}
name IDistort3
xpos 66
ypos 314
}
push $N7e16300
IDistort {
channels {rgba.red -rgba.green -rgba.blue rgba.alpha}
uv forward
uv_scale {{parent.displa ce/(1-parent.abberation/10)}}
name IDistort1
xpos -188
ypos 309
}
push $N7e16300
IDistort {
channels {-rgba.red rgba.green -rgba.blue rgba.alpha}
uv forward
uv_scale {{parent.displa ce i}}
name IDistort2
xpos -64
ypos 311
}
Copy {
inputs 2
from0 rgba.red
to0 rgba.red
name Copy9
xpos -64
ypos 372
}
Copy {
inputs 2
from0 rgba.blue
to0 rgba.blue
name Copy10
xpos -64
ypos 412
}
Switch {
inputs 2
which {{parent.abbera tion==0 i}}
name Switch1
xpos -64
ypos 491
addUserKnob {20 "" l Weta}
addUserKnob {32 knob l "update input order" t "changes the input order according to the input nodes' horizontal order (left most node becomes input 0)" -STARTLINE T " reconnectInputs "}
}
Copy {
inputs 2
from0 -rgba.alpha
to0 -rgba.alpha
channels depth
name Copy5
xpos -64
ypos 616
}
Output {
name Output1
xpos -64
ypos 744
}
end_group
Later, when opening the script, it errored, and actually wouldn't open, until I removed the node via a text editor.
Error is:
Glass1.inputs: unexpected "i" in 2inputs"
Glass1.2inputs: no such knob
Glass1.2: no such knob
I will have a look later to see what's going on...
RSS feed for comments to this post