merging multiple camera projections

Home Page forums Applications Nuke merging multiple camera projections

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #205041
    Anonymous
    Guest

    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!)

    skitched-20120530-105256.jpg

    #219970
    esky11 esky111
    Participant

    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…..
    mergeProject3D.jpg

    #! /usr/local/Nuke6.3v4/Nuke6.3 -nx
    version 6.3 v4
    define_window_layout_xml {

    }
    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
    }

    #219971
    Anonymous
    Inactive

    3D projection is a method of mapping points in three dimensions on a two dimensional plane. Like most current methods for displaying graphical data are based on planar two-dimensional media, the use of this type of projection is very common, especially in computer graphics, engineering and drafting.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap