SW_StereoCamera v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Stephen Wong
Stereo Camera Rig
Requirements:
6.1, 6.0 or later
Linux, Mac, Windows
20 Oct 2013
1032

The SW_StereoCamera is driven by the centre camera and the Control node.

The Control node allows you to adjust the value of interaxial, convergence, focal length and focal distance.

It also allows you to adjust the film back position in the Windows Translate slider.

Screen_Stereo_Single-Node_Camera_-_WONG

Please login in order to download these files.

Comments   

 
# Gabi bo 2010-12-15 03:57
very useful, thanks a lot
 
 
# William Park 2011-01-06 09:34
Thank's very much!! Wong..
I will be study hard!!!
 
 
# Carol Wu 2011-03-03 02:11
very helpful, thank you
 
 
# Kang Nam 2011-04-15 00:52
this looks awesome, thanks!
 
 
# Philipp Linz 2011-06-22 04:52
Dear Stephen,
IUs there a way of using this set up for image sequences? I was unable to do so. If there is a way, please do let me know.

Thanks,
Philipp
 
 
# Philipp Linz 2011-06-22 04:52
Dear Stephen,
IUs there a way of using this set up for image sequences? I was unable to do so. If there is a way, please do let me know.

Thanks,
Philipp
 
 
# Stephen T.Y. Wong 2011-06-22 07:16
You can connect these parameters ( see below ) with expressions link from the center Camera to the a 1 x 1 card by holding on cmd + drag on a Mac.

translate, rotate, scale.

also connect

Camera > Projection Tab > focal length to Card > lens in focal

Camera > horiz aperture to Card > lens -in-haperature

Now the card will follow the position, rotation with the Camera, and you can adjust the z value on the card.
 
 
# Philipp Linz 2011-06-22 08:01
Thank you very much.I forgot to mention that it is a left and a right image sequence that I need to work with.

If you could eleborate on that, I would be very greatful.

Regards,
Philipp
 
 
# Philipp Linz 2011-06-22 08:09
..Could you possible put a script together, using 2 colour bars, legt and right?? If so, that woukld be greatly appreaciated!
 
 
# Stephen T.Y. Wong 2011-06-22 09:23
if you're working with a left and right image sequence, then all you need is to go to project setting > "Set up views for stereo", then connect them to the "JoinViews" node, you might wanna view the result with "Anaglyph" node.

You will also need Ocula for Nuke to fix the stereo image issues ( vertical alignment, color matching & etc... ) .

For more info about stereo workflow on nuke, you may go to http://www.youtube.com/thefoundrychannel
and check out the Nuke Stereo Master class videos.
 
 
# Philipp Linz 2011-06-22 09:26
Dear Stephen,

this is how far i got and am now stuck.

Have a look at it if you wish:

set cut_paste_input [stack 0]
version 6.1 v3
Camera2 {
inputs 0
focal {{Control2.Foca l_Length i x1319 50}}
focal_point {{Control2.Foca l_Distance i}}
name S3D_Camera2
tile_color 0xff0000ff
selected true
xpos 1717
ypos 532
}
set N2173f830 [stack 0]
Camera2 {
translate {{value+Control 2.Cam_Sep} 0 0}
rotate {0 {degrees(atan(t ranslate.x/S3D_ Camera2.focal_p oint))*Control2 .Cam_Converge} 0}
focal {{S3D_Camera2.f ocal}}
haperture {{S3D_Camera2.h aperture}}
vaperture {{S3D_Camera2.v aperture}}
near {{S3D_Camera2.n ear}}
far {{S3D_Camera2.f ar}}
win_translate {{Control2.Wind ows_Translate} 0}
focal_point {{sqrt(pow2(S3D _Camera2.focal_ point)+pow2(tra nslate.x*Contro l2.Cam_Converge ))}}
name S3D_Camera_Righ t2
tile_color 0xff00ff
selected true
xpos 1839
ypos 532
}
Camera2 {
inputs 0
translate {1 0 0}
name Camera2
selected true
xpos 2021
ypos -224
}
set N8f16f80 [stack 0]
push $N8f16f80
Read {
inputs 0
file D:/LIMO_PRE_CON VERGENCE/LIMO_R IGHT_DAY_00_IO_ d.tif
format "1920 1080 0 0 1920 1080 1 HD"
 
 
# Philipp Linz 2011-06-22 09:26
first 0
last 2869
name Read4
selected true
xpos 1888
ypos -529
}
Project3D {
inputs 2
name Project3D2
selected true
xpos 1842
ypos -351
}
Card2 {
translate {0 0 -2000}
uniform_scale 1000
control_points {3 3 3 6

1 {-0.5 -0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0 0 0}
1 {0 -0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0.5 0 0}
1 {0.5 -0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {1 0 0}
1 {-0.5 0 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0 0.5 0}
1 {0 0 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0.5 0.5 0}
1 {0.5 0 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {1 0.5 0}
1 {-0.5 0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0 1 0}
1 {0 0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0.5 1 0}
1 {0.5 0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {1 1 0} }
name Card3
selected true
xpos 1842
ypos -284
}
Scene {
inputs 2
name Scene3
selected true
xpos 1852
ypos -108
}
push 0
ScanlineRender {
inputs 3
output_motion_v ectors_type accurate
name ScanlineRender3
selected true
xpos 1866
ypos 93
}
push $N2173f830
Camera2 {
translate {{value-Control 2.Cam_Sep} 0 0}
rotate {0 {degrees(atan(t ranslate.x/S3D_ Camera2.focal_p oint))*Control2 .Cam_Converge} 0}
focal {{S3D_Camera2.f ocal}}
haperture {{S3D_Camera2.h aperture}}
vaperture {{S3D_Camera2.v aperture}}
near {{S3D_Camera2.n ear}}
far {{S3D_Camera2.f ar}}
win_translate {{Control2.Wind ows_Translate*- 1} 0}
focal_point {{sqrt(pow2(S3D _Camera2.focal_ point)+pow2(tra nslate.x*Contro l2.Cam_Converge ))}}
name S3D_Camera_Left 2
selected true
xpos 1582
ypos 532
}
push $cut_paste_input
Camera2 {
translate {-1 0 0}
name Camera1
selected true
xpos 1426
ypos -207
}
set N8f15750 [stack 0]
Read {
inputs 0
file D:/LIMO_PRE_CON VERGENCE/LIMO_L EFT_DAY_00_IO_ d.tif
format "1920 1080 0 0 1920 1080 1 HD"
first 0
last 2838
name Read5
selected true
xpos 1511
ypos -511
}
Project3D {
inputs 2
name Project3D1
selected true
xpos 1589
ypos -358
}
Card2 {
translate {0 0 -2000}
uniform_scale 1000
control_points {3 3 3 6

1 {-0.5 -0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0 0 0}
1 {0 -0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0.5 0 0}
1 {0.5 -0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {1 0 0}
1 {-0.5 0 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0 0.5 0}
1 {0 0 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0.5 0.5 0}
1 {0.5 0 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {1 0.5 0}
1 {-0.5 0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0 1 0}
1 {0 0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0.5 1 0}
1 {0.5 0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {1 1 0} }
name Card2
selected true
xpos 1619
ypos -281
}
push $N8f15750
Scene {
inputs 2
name Scene2
selected true
xpos 1614
ypos -82
}
push 0
ScanlineRender {
inputs 3
output_motion_v ectors_type accurate
name ScanlineRender2
selected true
xpos 1572
ypos 68
}
JoinViews {
inputs 2
name JoinViews1
selected true
xpos 1703
ypos 206
viewassoc "left
right"
}
Anaglyph {
views {left right}
amtcolour 1
name Anaglyph2
selected true
xpos 1685
ypos 269
}
Viewer {
frame 1319
input_process false
name Viewer2
selected true
xpos 1703
ypos 346
}
NoOp {
inputs 0
name Control2
selected true
xpos 1705
ypos 448
addUserKnob {20 User}
addUserKnob {7 Cam_Sep l Interaxial}
Cam_Sep 0.435
addUserKnob {7 Cam_Converge l "Convergence (%)"}
Cam_Converge 0.535
addUserKnob {7 Windows_Transla te l "Windows Translate"}
Windows_Transla te 0.33
addUserKnob {7 Focal_Distance l "Focal Distance" R 0 30}
Focal_Distance 5.6
addUserKnob {7 Focal_Length l "Focal Length" R 0 100}
Focal_Length 50
}
 
 
# Philipp Linz 2011-06-22 09:36
Thank you very much

I have tried that before and that does not work.....The script above is the closest i got to achieving it, but it is still wrong........
If you ever manage to make it work, please do let me know.

Regards,
Philipp
 
 
# Minjae Jeong 2012-01-11 00:23
it looks good~!! thank you!
 
 
# pankaj deshmukh 2012-03-20 01:48
but whr the cut and paste this script
 
 
# pankaj deshmukh 2012-03-20 01:50
1 more problem i have gizmo script from notepad but how to create gizmo file...helpp
 

You have no rights to post comments

We have 3841 guests and 107 members online