Card3D

From RMIT Visual Effects
Jump to: navigation, search

Nuke has a very effective 3D environment. A significant use for this is to place flat (moving) images onto cards in front of a virtual camera. Done in the right way new camera moves can be faked and different output can be integrated in a believable 3D space. However, it can be very processor intensive. The inaptly named Card3D is a faster way of creating such effects... it does not work in a trie 3D environment, rather a simple emulation of one.

In the example below a moving camera creates the impression of 3D parallax.

Press 'Expand' and select and copy everything below this line, then paste into the Nuke node graph.

set cut_paste_input [stack 0]
version 9.0 v7
push $cut_paste_input
Axis2 {
translate {0 {curve x1 0 x150 -0.76} {curve x1 0 x150 0.8}}
rotate {{curve x1 0 x150 20} {curve x1 0} {curve x1 0}}
name Axis2
selected true
xpos -4314
ypos -1006
}
set Nffabe7e0 [stack 0]
push 0
Text2 {
inputs 0
font_size_toolbar 300
font_width_toolbar 100
font_height_toolbar 100
message "Parallax shift!"
old_message {{80 97 114 97 108 108 97 120 32 115 104 105 102 116 33}
  }
box {111.5 549.5 1908.5 850.5}
xjustify center
yjustify center
transforms {{0 2}
  }
font_size_values {{0 300 1 300 2 300 3 300 4 300 5 300 6 300 7 300 8 300 9 300 10 300 11 300 12 300 13 300 14 300 0 101 1 101 2 101 3 101 4 101 7 101 8 101 9 101 10 101 11 101 12 101 13 101 14 101}
  }
cursor_position 15
font {{ Helvetica : Regular : Helvetica.dfont : 4 }}
font_size 300
scale {1 1}
cursor_initialised true
initial_cursor_position {{1010 700}
  }
group_animations {{0} imported: 0 selected: items: "root transform/"}
animation_layers {{1 11 960 540 0 0 1 1 0 0 0 0}
  }
name Text1
selected true
xpos -4164
ypos -983
}
Card3D {
inputs 3
translate {0 -0.2 -2}
name Card3D3
selected true
xpos -4154
ypos -870
}
push $Nffabe7e0
push 0
CheckerBoard2 {
inputs 0
format "1920 1080 0 0 1920 1080 1 HD_1080"
boxsize 55
color1 {0.17 0.17 0.17 1}
color1_panelDropped true
color3 {0.17 0.17 0.17 1}
color3_panelDropped true
name CheckerBoard8
selected true
xpos -4469
ypos -1041
}
Card3D {
inputs 3
translate {0 -0.1 -3}
lens_in_focal {{parent.Card3D3.lens_in_focal i}}
lens_in_haperture {{parent.Card3D3.lens_in_haperture i}}
name Card3D2
selected true
xpos -4469
ypos -870
}
Merge2 {
inputs 2
name Merge2
selected true
xpos -4331
ypos -700
}
StickyNote {
inputs 0
name StickyNote22
label "Animated! \n\nFrom frame 1 to 150"
note_font_size 20
selected true
xpos -4365
ypos -1172
}