Oops wrong internal name - reattached - also with this version geo is 
positioned at z=0

 
Howard



>________________________________
> From: Howard Jones <[email protected]>
>To: Nuke user discussion <[email protected]> 
>Sent: Thursday, 13 September 2012, 10:30
>Subject: Re: [Nuke-users] Can I use 2D track for 3D Camera?
> 
>
>Also here is a new version that allows for scene scale (sort of)
>
>
>
> 
>Howard
>
>
>
>>________________________________
>> From: Howard Jones <[email protected]>
>>To: Nuke user discussion <[email protected]> 
>>Sent: Thursday, 13 September 2012, 10:02
>>Subject: Re: [Nuke-users] Can I use 2D track for 3D Camera?
>> 
>>
>>Here's a script I just tested. The mistake I said earlier is the geo needs to 
>>be placed at z -1  not 0 as that is where the camera is
>>The camera move starts about frame 180. The camera was made where indicated 
>>on the attached screen grab  and the tracker copied to where indicated.
>>
>>Howard
>>
>>
>>set cut_paste_input [stack 0]
>>version 6.3 v8
>>ColorBars {
>> inputs 0
>> name ColorBars1
>> selected true
>> xpos
 -393
>> ypos 46
>>}
>>set N2350dcc0 [stack 0]
>>Tracker3 {
>> track1 {{curve i x168 565.0580444 565.0506592 565.0808105 565.0734863 
>>565.090332 565.0900269 565.0386963 565.0371704 565.0344849 565.0802612 
>>565.0743408 565.02771 565.0435181 565.0272827 565.0499878 565.0512695 
>>565.041687 565.0303345 565.0404663 565.0328369 565.0270386 565.0550537 
>>565.0609741 565.0543823 564.9695435 565.0925903 565.100708 565.1529541 
>>565.1568604 565.2304688 565.2637939 565.5274658 566.0942993 567.1130371 
>>568.5047607 570.1556396 572 574.0427246 576.4594727 579.5081787 582.8543701 
>>586.4736328 590.6512451 595.4264526 600.788147 606.6361694 613.3390503 
>>620.9207153 628.4902344 636.2153931 643.87146 651.5625 659.1858521 
>>666.7214966 674.1802368 681.5661621 689.1931763 696.713623 704.0188599 
>>711.1591187 717.930603 724.4248657 730.7055664 736.8729248 742.8016357 
>>748.3226929 753.6640015 758.7963257 763.5657959 768.1853638 772.6127319 
>>776.8475342 780.8762207 784.8641968}
 {curve i x168 914.9620972 914.9147339 914.9519653 915.0713501 915.1292114 
915.1333008 915.0280151 914.9485474 915.0281372 915.1885986 915.2176514 
915.0997314 914.9534912 915.0742798 915.1473999 915.1834717 915.1062012 
914.949585 915.0661011 915.0748901 915.1035156 915.1271973 915.102417 
914.973999 914.9142456 914.9026489 914.8991089 914.8400879 914.8340454 
914.8428955 914.9118042 915.0114136 915.0579834 915.0649414 915.3963013 
915.7054443 916 916.4089355 916.6481934 916.9378662 917.2780762 917.6220703 
918.2166138 919.0627441 919.9505615 921.2800293 923.1519775 924.7025757 
926.5269165 928.3306885 930.2348633 932.3450317 934.6914062 937.2457886 
940.0419312 943.072876 946.4127808 950.2473755 954.3674316 959.178894 
964.5707397 969.9567871 975.8885498 982.1394653 988.5229492 995.1955566 
1001.587158 1008.258301 1015.108521 1021.897705 1028.883911 1035.780273 
1041.881104 1047.743774}}
>> offset1 {0 0}
>> pattern1 {-30 -30 30 30}
>> search1
 {-21 -21 21 21}
>> track2 {1055 445}
>> offset2 {0 0}
>> pattern2 {-30 -30 30 30}
>> search2 {-21 -21 21 21}
>> track3 {1055 635}
>> offset3 {0 0}
>> pattern3 {-30 -30 30 30}
>> search3 {-21 -21 21 21}
>> track4 {865 635}
>> offset4 {0 0}
>> pattern4 {-30 -30 30 30}
>> search4 {-21 -21 21 21}
>> translate {{curve i x168 0 -0.007385253906 0.02276611328 0.01544189453 
>>0.03228759766 0.03198242188 -0.01934814453 -0.02087402344 -0.02355957031 
>>0.02221679688 0.01629638672 -0.03033447266 -0.01452636719 -0.03076171875 
>>-0.008056640625 -0.006774902344 -0.01635742188 -0.02770996094 -0.017578125 
>>-0.02520751953 -0.03100585938 -0.002990722656 0.0029296875 -0.003662109375 
>>-0.08850097656 0.03454589844 0.04266357422 0.09490966797 0.09881591797 
>>0.1724243164 0.2057495117 0.4694213867 1.036254883 2.054992676 3.446716309 
>>5.097595215 6.941955566 8.984680176 11.40142822 14.45013428 17.79632568
 21.41558838 25.59320068 30.3684082 35.73010254 41.578125 48.28100586 
55.8626709 63.43218994 71.15734863 78.81341553 86.50445557 94.12780762 
101.6634521 109.1221924 116.5081177 124.1351318 131.6555786 138.9608154 
146.1010742 152.8725586 159.3668213 165.647522 171.8148804 177.7435913 
183.2646484 188.605957 193.7382812 198.5077515 203.1273193 207.5546875 
211.7894897 215.8181763 219.8061523} {curve i x168 0 -0.04736328125 
-0.01013183594 0.1092529297 0.1671142578 0.1712036133 0.06591796875 
-0.01354980469 0.06604003906 0.2265014648 0.2555541992 0.1376342773 
-0.008605957031 0.1121826172 0.1853027344 0.2213745117 0.1441040039 
-0.01251220703 0.1040039062 0.1127929688 0.141418457 0.1651000977 0.1403198242 
0.01190185547 -0.0478515625 -0.05944824219 -0.06298828125 -0.1220092773 
-0.1280517578 -0.1192016602 -0.05029296875 0.04931640625 0.09588623047 
0.1028442383 0.4342041016 0.743347168 1.037902832 1.446838379 1.686096191 
1.975769043 2.315979004 2.659973145
 3.254516602 4.100646973 4.988464355 6.317932129 8.189880371 9.740478516 
11.56481934 13.36859131 15.27276611 17.38293457 19.72930908 22.28369141 
25.07983398 28.11077881 31.45068359 35.28527832 39.40533447 44.21679688 
49.60864258 54.99468994 60.92645264 67.17736816 73.56085205 80.23345947 
86.62506104 93.29620361 100.1464233 106.9356079 113.921814 120.8181763 
126.9190063 132.7816772}}
>> center {{curve i x168 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
>>565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444
 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 565.0580444 
565.0580444 565.0580444 565.0580444 565.0580444} {curve i x168 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972
 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 914.9620972 
914.9620972 914.9620972 914.9620972 914.9620972 914.9620972}}
>> name Tracker1
>> label "\[value transform] | \[value reference_frame]"
>> selected true
>> xpos -161
>> ypos 126
>>}
>>tracker2Camera {
>> inputs 0
>> name tracker2Camera1
>> selected true
>> xpos -158
>> ypos 192
>> format 0
>> apertureCalc {24.576 {apertureCalc.x*height/width i}}
>> fovCalc {{degrees(2*atan(apertureCalc/(2*focalLengthCalc))) i} 
>>{degrees(2*atan(apertureCalc/(2*focalLengthCalc))) i}}
>> apertureFocalRatio {{apertureCalc.x/focalLengthCalc.main i}}
>> Trax01 {{curve i x168 565.0580444 565.0506592 565.0808105 565.0734863 
>>565.090332 565.0900269 565.0386963 565.0371704
 565.0344849 565.0802612 565.0743408 565.02771 565.0435181 565.0272827 
565.0499878 565.0512695 565.041687 565.0303345 565.0404663 565.0328369 
565.0270386 565.0550537 565.0609741 565.0543823 564.9695435 565.0925903 
565.100708 565.1529541 565.1568604 565.2304688 565.2637939 565.5274658 
566.0942993 567.1130371 568.5047607 570.1556396 572 574.0427246 576.4594727 
579.5081787 582.8543701 586.4736328 590.6512451 595.4264526 600.788147 
606.6361694 613.3390503 620.9207153 628.4902344 636.2153931 643.87146 651.5625 
659.1858521 666.7214966 674.1802368 681.5661621 689.1931763 696.713623 
704.0188599 711.1591187 717.930603 724.4248657 730.7055664 736.8729248 
742.8016357 748.3226929 753.6640015 758.7963257 763.5657959 768.1853638 
772.6127319 776.8475342 780.8762207 784.8641968} {curve i x168 914.9620972 
914.9147339 914.9519653 915.0713501 915.1292114 915.1333008 915.0280151 
914.9485474 915.0281372 915.1885986 915.2176514 915.0997314 914.9534912 
915.0742798 915.1473999
 915.1834717 915.1062012 914.949585 915.0661011 915.0748901 915.1035156 
915.1271973 915.102417 914.973999 914.9142456 914.9026489 914.8991089 
914.8400879 914.8340454 914.8428955 914.9118042 915.0114136 915.0579834 
915.0649414 915.3963013 915.7054443 916 916.4089355 916.6481934 916.9378662 
917.2780762 917.6220703 918.2166138 919.0627441 919.9505615 921.2800293 
923.1519775 924.7025757 926.5269165 928.3306885 930.2348633 932.3450317 
934.6914062 937.2457886 940.0419312 943.072876 946.4127808 950.2473755 
954.3674316 959.178894 964.5707397 969.9567871 975.8885498 982.1394653 
988.5229492 995.1955566 1001.587158 1008.258301 1015.108521 1021.897705 
1028.883911 1035.780273 1041.881104 1047.743774}}
>> solved3D {{-(Trax01.y/height-0.5)*fovCalc.y i} 
>>{(Trax01.x/width-0.5)*fovCalc.x i} 0}
>> solvedTranslate {{(Trax01.x-width/2)/width*apertureFocalRatio i} 
>>{(Trax01.y-height/2)/width*apertureFocalRatio i} 0}
>>}
>>push $cut_paste_input
>>Camera2
 {
>> translate {{-tracker2Camera1.solvedTranslate i} 
>>{-tracker2Camera1.solvedTranslate i} 0}
>> focal {{tracker2Camera1.focalLengthCalc i}}
>> haperture {{tracker2Camera1.apertureCalc.x i}}
>> vaperture {{tracker2Camera1.apertureCalc.y i}}
>> name Camera1
>> label translate
>> selected true
>> xpos -153
>> ypos 287
>>}
>>CheckerBoard2 {
>> inputs 0
>> name CheckerBoard1
>> selected true
>> xpos -276
>> ypos 227
>>}
>>Sphere {
>> translate {0 0 -1}
>> uniform_scale 0.017
>> name Sphere1
>> selected true
>> xpos -276
>> ypos 309
>>}
>>push 0
>>ScanlineRender {
>> inputs 3
>> output_motion_vectors_type accurate
>> name ScanlineRender1
>> selected true
>> xpos -276
>> ypos 397
>>}
>>push $N2350dcc0
>>Dot {
>> name Dot1
>> selected true
>> xpos -362
>> ypos
 493
>>}
>>Merge2 {
>> inputs 2
>> also_merge all
>> name Merge1
>> selected true
>> xpos -276
>> ypos 488
>>}
>>
>>
>>
>>
>>>________________________________
>>> From: Howard Jones <[email protected]>
>>>To: Nuke user discussion <[email protected]> 
>>>Sent: Thursday, 13 September 2012, 8:14
>>>Subject: Re: [Nuke-users] Can I use 2D track for 3D Camera?
>>> 
>>>Send me your track
 and I'll send you the camera. 
>>>
>>>Howard
>>>
>>>On 13 Sep 2012, at 02:30, Todd Groves <[email protected]> wrote:
>>>
>>>> I thought by tracking a feature, I could paste that info into "2D track" 
>>>> in the gizmo, then "create camera" to generate a moving camera. But, the 
>>>> camera doesn't move.
>>>> When I generate a scene and axis, the axis does move. Is there some way to 
>>>> attach the camera to the axis to make the camera move? Or am I missing a 
>>>> step here in creating 
>>>> a moving camera? Pressing "create camera" alone hasn't generated a moving 
>>>> camera.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On Sep 12, 2012, at 4:25 PM, Todd Groves wrote:
>>>> 
>>>>> I'm not sure I understand. I thought the gizmo was a replacement for the 
>>>>> CameraTracker.
>>>>> What's the workflow for this gizmo?
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sep 12, 2012, at
 4:15 PM, Marten Blumen wrote:
>>>>> 
>>>>>> When you paste in the 2d track you then solve the camera. Its like
>>>>>> adding a really good tracking marker
>>>>>> 
>>>>>> On 9/13/12, Todd Groves <[email protected]> wrote:
>>>>>>> I did that, and pasted the 2D tracker data. But the camera does not 
>>>>>>> move.
>>>>>>> Do I still track features?
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Sep 12, 2012, at 1:43 PM, Marten Blumen wrote:
>>>>>>> 
>>>>>>>> Use the 'Add User Track' btn in Tracking tab in the CameraTracking 
>>>>>>>> node.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 13 September 2012 08:13, Todd Groves <[email protected]> wrote:
>>>>>>>> In a shot I'm trying to get a Camera Track for, there is not enough
>>>>>>>> parallax for the Cam Tracker to capture the dolly movement. Instead it
>>>>>>>> interprets the camera movement as a pan.
>>>>>>>> 
>>>>>>>> I believe if I can somehow use my 2D tracking information and apply it 
>>>>>>>> to
>>>>>>>> the camera, I can use that inside my 3D app. Any suggestions?
>>>>>>>> 
>>>>>>>> Thanks in advance.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Sent from my mobile device
>>>>>> _______________________________________________
>>>>>> 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
>>>_______________________________________________
>>>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
>
>

Attachment: tracker2Camera2.gizmo
Description: Binary data

_______________________________________________
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