Hi Thoma, My problem is that I'm using an FBX with animated geo >
If I understand correctly your situation, I'm not sure UVProject has ever worked the way you expect it to. I think UVProject does do its job correctly. The reason you don't get your textures to "stick" is that your UV-baking is happening for each frame of the animated geo. As in, on every frame, UV project is doing its job correctly, but on the next frame the baked UVs will be replaced again (with those corresponding to the projection onto the new position of the geo). The wording is a bit confusing, but hope it makes sense. If you want to bake UVs based on the projection at a certain reference frame (and therefore have the textures stick to the animated geo), you can try StickyProject from Nukepedia. http://www.nukepedia.com/plugins/3d/stickyproject/ Hope that helps. Ivan On Thu, Sep 20, 2012 at 11:15 AM, thoma <[email protected]>wrote: > ** > Hi Deke, > > I can't post exactly what I'm working on but I'll provide a general > illustration of what I'm talking about below. My problem is that I'm using > an FBX with animated geo and the transforms for that geo aren't accessible > seperately within nuke. Plus it's the principle that this node doesn't seem > to work anymore! So before anyone says it - my real world scenario doesn't > allow for the parented projector camera example below.... > > *Code:* > > set cut_paste_input [stack 0] > version 6.3 v4 > BackdropNode { > inputs 0 > name BackdropNode3 > tile_color 0x999999ff > note_font_size 25 > selected true > xpos -3153 > ypos 2802 > bdwidth 1339 > bdheight 760 > } > Camera2 { > inputs 0 > name Camera12 > selected true > xpos -2278 > ypos 3327 > } > push $cut_paste_input > Axis2 { > translate {{curve i x1 0 x20 0.2} {curve i x1 0} {curve i x1 0 x20 0}} > name Axis3 > selected true > xpos -2278 > ypos 3046 > } > set N2f2977d0 [stack 0] > push $N2f2977d0 > Camera2 { > name Camera13 > selected true > xpos -2311 > ypos 3147 > } > CheckerBoard2 { > inputs 0 > name CheckerBoard4 > selected true > xpos -2152 > ypos 3030 > } > RotoPaint { > 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 578 > 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: "Bezier1" { > Flag: 576 > NodeType: 3 > CurveGroup: "" { > Transform: 0 0 S 1 120 0 S 1 120 0 S 1 120 0 S 1 120 1 S 1 120 1 S 1 > 120 0 S 1 120 1274.83 S 1 120 730.333 > Flag: 0 > NumOfCubicCurves: 2 > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 36 > 0 S 1 120 0 S 1 120 2 0 0 S 1 120 1524 S 1 120 880 0 0 S 1 120 0 S 1 > 120 -2 0 0 S 1 120 4 S 1 120 -2 0 0 S 1 120 1434 S 1 120 944 0 0 S 1 120 -4 > S 1 120 2 0 0 S 1 120 34 S 1 120 32 0 0 S 1 120 1206 S 1 120 870 0 0 S 1 > 120 -34 S 1 120 -32 0 0 S 1 120 14 S 1 120 10 0 0 S 1 120 1128 S 1 120 800 > 0 0 S 1 120 -14 S 1 120 -10 0 0 S 1 120 32 S 1 120 20 0 0 S 1 120 1062 S 1 > 120 762 0 0 S 1 120 -32 S 1 120 -20 0 0 S 1 120 -8 S 1 120 8 0 0 S 1 120 > 1016 S 1 120 632 0 0 S 1 120 8 S 1 120 -8 0 0 S 1 120 -8 S 1 120 4 0 0 S 1 > 120 1042 S 1 120 606 0 0 S 1 120 8 S 1 120 -4 0 0 S 1 120 -14 S 1 120 -8 0 > 0 S 1 120 1178 S 1 120 582 0 0 S 1 120 14 S 1 120 8 0 0 S 1 120 -14 S 1 120 > -4 0 0 S 1 120 1206 S 1 120 596 0 0 S 1 120 14 S 1 120 4 0 0 S 1 120 -212 S > 1 120 30 0 0 S 1 120 1352 S 1 120 644 0 0 S 1 120 212 S 1 120 -30 0 0 S 1 > 120 -4 S 1 120 -28 0 0 S 1 120 1594 S 1 120 676 0 0 S 1 120 4 S 1 120 28 0 > 0 S 1 120 6 S 1 120 -6 0 0 S 1 120 1556 S 1 120 772 0 0 S 1 120 -6 S 1 120 > 6 0 > } > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 36 > 0 S 1 120 0 S 1 120 2 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 0 S 1 120 > -2 0 0 S 1 120 4 S 1 120 -2 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -4 S 1 120 > 2 0 0 S 1 120 34 S 1 120 32 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -34 S 1 120 > -32 0 0 S 1 120 14 S 1 120 10 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -14 S 1 > 120 -10 0 0 S 1 120 32 S 1 120 20 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -32 S > 1 120 -20 0 0 S 1 120 -8 S 1 120 8 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 8 S > 1 120 -8 0 0 S 1 120 -8 S 1 120 4 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 8 S 1 > 120 -4 0 0 S 1 120 -14 S 1 120 -8 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 14 S > 1 120 8 0 0 S 1 120 -14 S 1 120 -4 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 14 S > 1 120 4 0 0 S 1 120 -212 S 1 120 30 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 212 > S 1 120 -30 0 0 S 1 120 -4 S 1 120 -28 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 > 4 S 1 120 28 0 0 S 1 120 6 S 1 120 -6 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 > -6 S 1 120 6 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 578 "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 120 "ltm" S 0 120 "ltt" S 0 0 "tt" S 0 4 "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 } > { 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" > lifetime_start 120 > lifetime_end 120 > motionblur_shutter_offset_type centred > source_black_outside true > createNewTrack {{-1} "-1\t(none)\t-1" "1000\tNew Track Layer\t1000"} > name RotoPaint16 > selected true > xpos -2152 > ypos 3119 > } > Project3D { > inputs 2 > name Project3D8 > selected true > xpos -2152 > ypos 3168 > } > Card2 { > translate {0 0 -3.694999933} > 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 Card5 > selected true > xpos -2152 > ypos 3207 > } > TransformGeo { > inputs 2 > name TransformGeo5 > selected true > xpos -2152 > ypos 3268 > } > push 0 > ScanlineRender { > inputs 3 > output_motion_vectors_type accurate > name ScanlineRender7 > selected true > xpos -2152 > ypos 3348 > } > Camera2 { > inputs 0 > name Camera11 > selected true > xpos -3019 > ypos 3324 > } > Camera2 { > inputs 0 > name Camera10 > selected true > xpos -3018 > ypos 3214 > } > CheckerBoard2 { > inputs 0 > name CheckerBoard3 > selected true > xpos -2892 > ypos 3032 > } > RotoPaint { > 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 578 > 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: "Bezier1" { > Flag: 576 > NodeType: 3 > CurveGroup: "" { > Transform: 0 0 S 1 120 0 S 1 120 0 S 1 120 0 S 1 120 1 S 1 120 1 S 1 > 120 0 S 1 120 1274.83 S 1 120 730.333 > Flag: 0 > NumOfCubicCurves: 2 > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 36 > 0 S 1 120 0 S 1 120 2 0 0 S 1 120 1524 S 1 120 880 0 0 S 1 120 0 S 1 > 120 -2 0 0 S 1 120 4 S 1 120 -2 0 0 S 1 120 1434 S 1 120 944 0 0 S 1 120 -4 > S 1 120 2 0 0 S 1 120 34 S 1 120 32 0 0 S 1 120 1206 S 1 120 870 0 0 S 1 > 120 -34 S 1 120 -32 0 0 S 1 120 14 S 1 120 10 0 0 S 1 120 1128 S 1 120 800 > 0 0 S 1 120 -14 S 1 120 -10 0 0 S 1 120 32 S 1 120 20 0 0 S 1 120 1062 S 1 > 120 762 0 0 S 1 120 -32 S 1 120 -20 0 0 S 1 120 -8 S 1 120 8 0 0 S 1 120 > 1016 S 1 120 632 0 0 S 1 120 8 S 1 120 -8 0 0 S 1 120 -8 S 1 120 4 0 0 S 1 > 120 1042 S 1 120 606 0 0 S 1 120 8 S 1 120 -4 0 0 S 1 120 -14 S 1 120 -8 0 > 0 S 1 120 1178 S 1 120 582 0 0 S 1 120 14 S 1 120 8 0 0 S 1 120 -14 S 1 120 > -4 0 0 S 1 120 1206 S 1 120 596 0 0 S 1 120 14 S 1 120 4 0 0 S 1 120 -212 S > 1 120 30 0 0 S 1 120 1352 S 1 120 644 0 0 S 1 120 212 S 1 120 -30 0 0 S 1 > 120 -4 S 1 120 -28 0 0 S 1 120 1594 S 1 120 676 0 0 S 1 120 4 S 1 120 28 0 > 0 S 1 120 6 S 1 120 -6 0 0 S 1 120 1556 S 1 120 772 0 0 S 1 120 -6 S 1 120 > 6 0 > } > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 36 > 0 S 1 120 0 S 1 120 2 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 0 S 1 120 > -2 0 0 S 1 120 4 S 1 120 -2 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -4 S 1 120 > 2 0 0 S 1 120 34 S 1 120 32 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -34 S 1 120 > -32 0 0 S 1 120 14 S 1 120 10 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -14 S 1 > 120 -10 0 0 S 1 120 32 S 1 120 20 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 -32 S > 1 120 -20 0 0 S 1 120 -8 S 1 120 8 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 8 S > 1 120 -8 0 0 S 1 120 -8 S 1 120 4 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 8 S 1 > 120 -4 0 0 S 1 120 -14 S 1 120 -8 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 14 S > 1 120 8 0 0 S 1 120 -14 S 1 120 -4 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 14 S > 1 120 4 0 0 S 1 120 -212 S 1 120 30 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 212 > S 1 120 -30 0 0 S 1 120 -4 S 1 120 -28 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 > 4 S 1 120 28 0 0 S 1 120 6 S 1 120 -6 0 0 S 1 120 0 S 1 120 0 0 0 S 1 120 > -6 S 1 120 6 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 578 "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 120 "ltm" S 0 120 "ltt" S 0 0 "tt" S 0 4 "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 } > { 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" > lifetime_start 120 > lifetime_end 120 > motionblur_shutter_offset_type centred > source_black_outside true > createNewTrack {{-1} "-1\t(none)\t-1" "1000\tNew Track Layer\t1000"} > name RotoPaint15 > selected true > xpos -2892 > ypos 3126 > } > Card2 { > translate {{curve i x1 0 x20 0.4} {curve i x1 0 x20 0.2} {curve i x1 > -4.704999924 x20 -4.50499992}} > 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 Card4 > selected true > xpos -2892 > ypos 3180 > } > UVProject { > inputs 2 > render_mode textured > frustum_culling true > name UVProject4 > selected true > xpos -2892 > ypos 3235 > } > push 0 > ScanlineRender { > inputs 3 > output_motion_vectors_type accurate > name ScanlineRender6 > selected true > xpos -2892 > ypos 3345 > } > StickyNote { > inputs 0 > name StickyNote5 > label "This is the UVproject method that *should result\n in a sticky > projection with frustrum-derived UVs" > selected true > xpos -2980 > ypos 2947 > } > StickyNote { > inputs 0 > name StickyNote12 > label "This is the method with parented projector camera. \n It produces > the result I'm after but with a method I can't always use." > selected true > xpos -2338 > ypos 2938 > } > > _______________________________________________ > 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
