Beta memo: at this time the forums and insider use two different registration and login systems. We're working on unifying the process, so if you register with your same e-mail on the forums and insider we'll merge your accounts later. To access the forums please use the login below. -Thanks.
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Posts
    1

    Default merging multiple camera projections

    Hi All,

    I\'m running in to problems understanding the workflow for merging multiple camera projections on to 3D cards, where the cards are overlapping. At the moment, I have say, 3 different cards piped in to the same scene with some rotopaint work done on them to remove elements.

    I have used masks with soft edges to blend the projections on to the original footage (which has been 3d tracked). If I want to keep those cards where they are but not have the chatter i\'m getting where some of them are directly in the same 3d space, should I be merging one over the other? The reason I didn\'t want to do this is I would see my script becoming large and a bit cumbersome. It made more sense to me to pipe everything in to one scene and try and figure out how to specify an order to which the cards are rendered from top to bottom.

    I\'m not sure if this makes sense - it\'s really a layering thing I\'m trying to figure out, specific to 3d cards and projections.

    Can anyone help point me in the right direction? Here\'s a screenie of my script with some labels. (Ignore the missing footage sequences, the drive the project referenced these is turned off!)

    Last edited by judderman; 30th May 2012 at 15:28.

  2. #2
    Join Date
    Jun 2008
    Posts
    15

    Default

    Hi judderman \"Mergemat\" can do this. Insert a \"Mergemat\" node and connect all the project3D nodes out into Mergemat. Add a card node and connect it with mergemat node.....
    [IMG]/home/satheesh/Desktop/mergeProject3D.jpg[/IMG]





    #! /usr/local/Nuke6.3v4/Nuke6.3 -nx
    version 6.3 v4
    define_window_layout_xml {<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <layout version=\"1.0\">
    <window x=\"893\" y=\"55\" w=\"1696\" h=\"1060\" screen=\"0\">
    <splitter orientation=\"1\">
    <split size=\"1062\"/>
    <splitter orientation=\"1\">
    <split size=\"40\"/>
    <dock id=\"\" hideTitles=\"1\" activePageId=\"Toolbar.1\">
    <page id=\"Toolbar.1\"/>
    </dock>
    <split size=\"1018\"/>
    <splitter orientation=\"2\">
    <split size=\"498\"/>
    <dock id=\"\" activePageId=\"Viewer.1\">
    <page id=\"Viewer.1\"/>
    </dock>
    <split size=\"498\"/>
    <dock id=\"\" activePageId=\"DAG.1\">
    <page id=\"DAG.1\"/>
    <page id=\"Curve Editor.1\"/>
    <page id=\"DopeSheet.1\"/>
    </dock>
    </splitter>
    </splitter>
    <split size=\"614\"/>
    <dock id=\"\" activePageId=\"Properties.1\">
    <page id=\"Properties.1\"/>
    </dock>
    </splitter>
    </window>
    </layout>
    }
    Root {
    inputs 0
    name /home/satheesh/Desktop/mergeCam_v01.nk
    format \"2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)\"
    proxy_type scale
    proxy_format \"1024 778 0 0 1024 778 1 1K_Super_35(full-ap)\"
    }
    Camera2 {
    inputs 0
    focal 35
    name Camera2
    xpos 344
    ypos -128
    }
    ColorBars {
    inputs 0
    name ColorBars1
    xpos 148
    ypos -311
    }
    Roto {
    output alpha
    premultiply rgb
    curves {AnimTree: \"\" {
    Version: 1.2
    Flag: 0
    RootNode: 1
    Node: {
    NodeName: \"Root\" {
    Flag: 512
    NodeType: 1
    Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1024 S 0 778
    NumOfAttributes: 11
    \"vis\" S 0 1 \"opc\" S 0 1 \"mbo\" S 0 1 \"mb\" S 0 1 \"mbs\" S 0 0.5 \"fo\" S 0 1 \"fx\" S 0 0 \"fy\" S 0 0 \"ff\" S 0 1 \"ft\" S 0 0 \"pt\" S 0 0
    }
    NumOfChildren: 1
    Node: {
    NodeName: \"Ellipse1\" {
    Flag: 576
    NodeType: 3
    CurveGroup: \"\" {
    Transform: 0 0 S 1 1 0 S 1 1 0 S 1 1 0 S 1 1 1 S 1 1 1 S 1 1 0 S 1 1 1615 S 1 1 690
    Flag: 0
    NumOfCubicCurves: 2
    CubicCurve: \"\" {
    Type: 0 Flag: 8192 Dim: 2
    NumOfPoints: 12
    0 S 1 1 -154.64 S 1 1 0 0 0 S 1 1 1615 S 1 1 330 0 0 S 1 1 154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 -198.823 0 0 S 1 1 1895 S 1 1 690 0 0 S 1 1 0 S 1 1 198.823 0 0 S 1 1 154.64 S 1 1 0 0 0 S 1 1 1615 S 1 1 1050 0 0 S 1 1 -154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 198.823 0 0 S 1 1 1335 S 1 1 690 0 0 S 1 1 0 S 1 1 -198.823 0
    }
    CubicCurve: \"\" {
    Type: 0 Flag: 8192 Dim: 2
    NumOfPoints: 12
    0 S 1 1 -154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 -198.823 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 198.823 0 0 S 1 1 154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 -154.64 S 1 1 0 0 0 S 1 1 0 S 1 1 198.823 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 -198.823 0
    }
    NumOfAttributes: 44
    \"vis\" S 0 1 \"r\" S 0 1 \"g\" S 0 1 \"b\" S 0 1 \"a\" S 0 1 \"ro\" S 0 0 \"go\" S 0 0 \"bo\" S 0 0 \"ao\" S 0 0 \"opc\" S 0 1 \"bm\" S 0 0 \"inv\" S 0 0 \"mbo\" S 0 0 \"mb\" S 0 1 \"mbs\" S 0 0.5 \"mbsot\" S 0 0 \"mbso\" S 0 0 \"fo\" S 0 1 \"fx\" S 0 0 \"fy\" S 0 0 \"ff\" S 0 1 \"ft\" S 0 0 \"src\" S 0 0 \"stx\" S 0 0 \"sty\" S 0 0 \"str\" S 0 0 \"sr\" S 0 0 \"ssx\" S 0 1 \"ssy\" S 0 1 \"ss\" S 0 0 \"spx\" S 0 0 \"spy\" S 0 0 \"stot\" S 0 0 \"sto\" S 0 0 \"sv\" S 0 0 \"sf\" S 0 1 \"sb\" S 0 1 \"nv\" S 0 1 \"view1\" S 0 1 \"ltn\" S 0 1 \"ltm\" S 0 1 \"ltt\" S 0 0 \"tt\" S 0 6 \"pt\" S 0 0
    }
    }
    NumOfChildren: 0
    }
    }
    }
    }
    toolbox {selectAll {
    { selectAll ssx 1 ssy 1 sf 1 }
    { createBezier ssx 1 ssy 1 sf 1 sb 1 tt 4 }
    { createBSpline ssx 1 ssy 1 sf 1 sb 1 }
    { createEllipse ssx 1 ssy 1 sf 1 sb 1 tt 6 }
    { createRectangle ssx 1 ssy 1 sf 1 sb 1 tt 7 }
    { brush ssx 1 ssy 1 sf 1 sb 1 }
    { eraser src 2 ssx 1 ssy 1 sf 1 sb 1 }
    { clone src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { reveal src 3 ssx 1 ssy 1 sf 1 sb 1 }
    { dodge src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { burn src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { blur src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { sharpen src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { smear src 1 ssx 1 ssy 1 sf 1 sb 1 }
    } }
    toolbar_brush_hardness 0.200000003
    toolbar_lifetime_type all
    toolbar_source_transform_scale {1 1}
    toolbar_source_transform_center {320 240}
    colorOverlay 0
    lifetime_type \"all frames\"
    motionblur_shutter_offset_type centred
    source_black_outside true
    createNewTrack {{-1} \"-1t(none)t-1\" \"1000tNew Track Layert1000\"}
    name Roto2
    xpos 148
    ypos -210
    }
    Project3D {
    inputs 2
    name Project3D2
    xpos 148
    ypos -108
    }
    Camera2 {
    inputs 0
    name Camera1
    xpos -185
    ypos -139
    }
    CheckerBoard2 {
    inputs 0
    name CheckerBoard1
    xpos -31
    ypos -315
    }
    Roto {
    output alpha
    premultiply rgb
    curves {AnimTree: \"\" {
    Version: 1.2
    Flag: 0
    RootNode: 1
    Node: {
    NodeName: \"Root\" {
    Flag: 512
    NodeType: 1
    Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1024 S 0 778
    NumOfAttributes: 11
    \"vis\" S 0 1 \"opc\" S 0 1 \"mbo\" S 0 1 \"mb\" S 0 1 \"mbs\" S 0 0.5 \"fo\" S 0 1 \"fx\" S 0 0 \"fy\" S 0 0 \"ff\" S 0 1 \"ft\" S 0 0 \"pt\" S 0 0
    }
    NumOfChildren: 1
    Node: {
    NodeName: \"Rectangle1\" {
    Flag: 576
    NodeType: 3
    CurveGroup: \"\" {
    Transform: 0 0 S 1 1 0 S 1 1 0 S 1 1 0 S 1 1 1 S 1 1 1 S 1 1 0 S 1 1 412.5 S 1 1 715
    Flag: 0
    NumOfCubicCurves: 2
    CubicCurve: \"\" {
    Type: 0 Flag: 8192 Dim: 2
    NumOfPoints: 12
    1 S 1 1 0 S 1 1 -163.333 0 1 S 1 1 90 S 1 1 960 0 1 S 1 1 215 S 1 1 0 0 1 S 1 1 -215 S 1 1 0 0 1 S 1 1 735 S 1 1 960 0 1 S 1 1 0 S 1 1 -163.333 0 1 S 1 1 0 S 1 1 163.333 0 1 S 1 1 735 S 1 1 470 0 1 S 1 1 -215 S 1 1 0 0 1 S 1 1 215 S 1 1 0 0 1 S 1 1 90 S 1 1 470 0 1 S 1 1 0 S 1 1 163.333 0
    }
    CubicCurve: \"\" {
    Type: 0 Flag: 8192 Dim: 2
    NumOfPoints: 12
    1 S 1 1 0 S 1 1 -163.333 0 1 S 1 1 0 S 1 1 0 0 1 S 1 1 215 S 1 1 0 0 1 S 1 1 -215 S 1 1 0 0 1 S 1 1 0 S 1 1 0 0 1 S 1 1 0 S 1 1 -163.333 0 1 S 1 1 0 S 1 1 163.333 0 1 S 1 1 0 S 1 1 0 0 1 S 1 1 -215 S 1 1 0 0 1 S 1 1 215 S 1 1 0 0 1 S 1 1 0 S 1 1 0 0 1 S 1 1 0 S 1 1 163.333 0
    }
    NumOfAttributes: 44
    \"vis\" S 0 1 \"r\" S 0 1 \"g\" S 0 1 \"b\" S 0 1 \"a\" S 0 1 \"ro\" S 0 0 \"go\" S 0 0 \"bo\" S 0 0 \"ao\" S 0 0 \"opc\" S 0 1 \"bm\" S 0 0 \"inv\" S 0 0 \"mbo\" S 0 0 \"mb\" S 0 1 \"mbs\" S 0 0.5 \"mbsot\" S 0 0 \"mbso\" S 0 0 \"fo\" S 0 1 \"fx\" S 0 0 \"fy\" S 0 0 \"ff\" S 0 1 \"ft\" S 0 0 \"src\" S 0 0 \"stx\" S 0 0 \"sty\" S 0 0 \"str\" S 0 0 \"sr\" S 0 0 \"ssx\" S 0 1 \"ssy\" S 0 1 \"ss\" S 0 0 \"spx\" S 0 1024 \"spy\" S 0 778 \"stot\" S 0 0 \"sto\" S 0 0 \"sv\" S 0 0 \"sf\" S 0 1 \"sb\" S 0 1 \"nv\" S 0 1 \"view1\" S 0 1 \"ltn\" S 0 1 \"ltm\" S 0 1 \"ltt\" S 0 0 \"tt\" S 0 7 \"pt\" S 0 0
    }
    }
    NumOfChildren: 0
    }
    }
    }
    }
    toolbox {selectAll {
    { selectAll ssx 1 ssy 1 sf 1 }
    { createBezier ssx 1 ssy 1 sf 1 sb 1 tt 4 }
    { createBSpline ssx 1 ssy 1 sf 1 sb 1 }
    { createEllipse ssx 1 ssy 1 sf 1 sb 1 }
    { createRectangle ssx 1 ssy 1 sf 1 sb 1 tt 7 }
    { brush ssx 1 ssy 1 sf 1 sb 1 }
    { eraser src 2 ssx 1 ssy 1 sf 1 sb 1 }
    { clone src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { reveal src 3 ssx 1 ssy 1 sf 1 sb 1 }
    { dodge src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { burn src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { blur src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { sharpen src 1 ssx 1 ssy 1 sf 1 sb 1 }
    { smear src 1 ssx 1 ssy 1 sf 1 sb 1 }
    } }
    toolbar_brush_hardness 0.200000003
    toolbar_lifetime_type all
    toolbar_source_transform_scale {1 1}
    toolbar_source_transform_center {320 240}
    colorOverlay 0
    lifetime_type \"all frames\"
    motionblur_shutter_offset_type centred
    source_black_outside true
    createNewTrack {{-1} \"-1t(none)t-1\" \"1000tNew Track Layert1000\"}
    name Roto1
    xpos -31
    ypos -218
    }
    Project3D {
    inputs 2
    name Project3D1
    xpos -31
    ypos -119
    }
    MergeMat {
    inputs 2
    name MergeMat1
    xpos 38
    ypos -2
    }
    Card2 {
    translate {0 0 -2}
    uniform_scale 1.3
    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 Card1
    xpos 38
    ypos 70
    }
    Viewer {
    frame 1
    input_process false
    name Viewer1
    xpos 38
    ypos 176
    }
    Last edited by satheesrev; 30th May 2012 at 22:37.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •