Spoke to soon. MergeMat produces artifacts like crazy, so back to plan B (using two ScanelineRender nodes and mergeing speculat and diffuse in 2D - booo).



On 07/08/14 15:41, Frank Rueter|OHUfx wrote:
Ah, using the secondary inputs is fine, just not the first pipe which is meant to take the upstream texture or shader. If I leave that unconnected and use MergeMat to plus the specular on top of my texture instead I get what I wanted.

Cryptic...

Thanks!
frank

On 05/08/14 20:30, Ron Ganbar wrote:
Just don't connect anything to the input of the Specular and you should be fine.



Ron Ganbar
email: ron...@gmail.com <mailto:ron...@gmail.com>
tel: +44 (0)7968 007 309 [UK]
     +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/


On Tue, Aug 5, 2014 at 6:25 AM, Frank Rueter|OHUfx <fr...@ohufx.com <mailto:fr...@ohufx.com>> wrote:

    Hi everybody,

    I'm trying to figure out how to add a specular component to the
    default shading behaviour, but every time I add a Specular
    shader, the object gets self illuminated, even when the light is
    behind the object.
    The same is true for any kind of shader node.
    When I don't use any shader I get the result I want (object is
    black when the light is behind it). All I need is specular on top
    of that.

    What am I missing?

    Cheers,
    frank

    set cut_paste_input [stack 0]
    version 8.0 v5
    Camera2 {
     inputs 0
     focal 45
     haperture 90
     vaperture 90
     far 10
     name Camera3
     selected true
     xpos 915
     ypos -677
    }
    Light2 {
     inputs 0
     falloff_type Quadratic
     translate {{curve x1 -1 x50 0.1060127839 x100 1} {curve x1 -1
    x50 0.3700000048 x100 -1} {curve x1 -2 x50 -0.1226326749 x100 -2}}
     depthmap_slope_bias 0.01
     name Light2
     selected true
     xpos 921
     ypos -819
    }
    push $cut_paste_input
    Roto {
     output alpha
     replace true
     curves {{{v x3f99999a}
      {f 0}
      {n
       {layer Root
        {f 512}
        {t 0}
        {a}
        {curvegroup Bezier1 512 bezier
         {{cc
           {f 8192}
           {p
            {x42d40000 x433a0000}
            {x43cf0000 x44bdc000}
            {xc2d40000 xc33a0000}
            {xc3810000 x42940000}
            {x440b8000 x438d0000}
            {x43810000 xc2940000}
            {xc3080000 xc2fc0000}
            {x44cac000 x433a0000}
            {x43080000 x42fc0000}
            {x42000000 xc36a0000}
            {x44f94000 x44468000}
            {xc2000000 x436a0000}
            {x42cc0000 xc3160000}
            {x44f3c000 x44c34000}
            {xc2cc0000 x43160000}
            {x43520000 xc2400000}
            {x44c04000 x44f7c000}
            {xc3520000 x42400000}}}
          {cc
           {f 8192}
           {p
            {x42d40000 x433a0000}
            {}
            {xc2d40000 xc33a0000}
            {xc3810000 x42940000}
            {}
            {x43810000 xc2940000}
            {xc3080000 xc2fc0000}
            {}
            {x43080000 x42fc0000}
            {x42000000 xc36a0000}
            {}
            {xc2000000 x436a0000}
            {x42cc0000 xc3160000}
            {}
            {xc2cc0000 x43160000}
            {x43520000 xc2400000}
            {}
            {xc3520000 x42400000}}}}
         {t x44a84000 x4483c000}
         {a osw x41200000 osf 0 str 1 spx x44800000 spy x44800000 sb
    1 ltn x42a60000 ltm x42a60000 tt x40800000}}}}}}
     toolbox {selectAll {
      { selectAll str 1 ssx 1 ssy 1 sf 1 }
      { createBezier str 1 ssx 1 ssy 1 sf 1 sb 1 tt 4 }
      { createBezierCusped str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { createBSpline str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { createEllipse str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { createRectangle str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { createRectangleCusped str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { brush str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { eraser src 2 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { clone src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { reveal src 3 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { dodge src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { burn src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { blur src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { sharpen src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
      { smear src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 }
    } }
     toolbar_brush_hardness 0.200000003
     toolbar_source_transform_scale {1 1}
     toolbar_source_transform_center {1024 1024}
     colorOverlay {0 0 0 0}
     lifetime_type "all frames"
     lifetime_start 83
     lifetime_end 83
     motionblur_shutter_offset_type centred
     source_black_outside true
     createNewTrack {{-1} "-1\t(none)\t-1" "1000\tNew Track Layer\t1000"}
     name Roto3
     selected true
     xpos 915
     ypos -1752
    }
    CheckerBoard2 {
     inputs 0
     name CheckerBoard1
     selected true
     xpos 1073
     ypos -1824
    }
    Copy {
     inputs 2
     from0 rgba.alpha
     to0 rgba.alpha
     bbox A
     name Copy2
     selected true
     xpos 1073
     ypos -1752
    }
    Premult {
     name Premult2
     selected true
     xpos 1073
     ypos -1641
    }
    set N55ec630 [stack 0]
    Dot {
     name Dot5
     selected true
     xpos 886
     ypos -1637
    }
    Erode {
     size 1
     name Erode4
     selected true
     xpos 852
     ypos -1587
    }
    Erode {
     size 1
     name Erode5
     selected true
     xpos 852
     ypos -1549
    }
    Erode {
     size 1
     name Erode6
     selected true
     xpos 852
     ypos -1511
    }
    Shuffle {
     red alpha
     green alpha
     blue alpha
     name Shuffle3
     selected true
     xpos 852
     ypos -1473
    }
    Dot {
     name Dot6
     selected true
     xpos 886
     ypos -1375
    }
    set N56258f0 [stack 0]
    Invert {
     name Invert3
     selected true
     xpos 852
     ypos -979
    }
    Dot {
     name Dot9
     selected true
     xpos 886
     ypos -911
    }
    push $N56258f0
    push $N55ec630
    Specular {
     inputs 2
     white 0.05
     min_shininess 100
     max_shininess 100
     name Specular2
     selected true
     xpos 1073
     ypos -1379
    }
    Card2 {
     rows 300
     columns {{rows}}
     translate {0 0 -1}
     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 1073
     ypos -1064
    }
    DisplaceGeo {
     inputs 2
     source alpha
     scale -0.02
     name DisplaceGeo2
     selected true
     xpos 1073
     ypos -915
    }
    Scene {
     inputs 2
     name Scene2
     selected true
     xpos 1083
     ypos -819
    }
    push 0
    ScanlineRender {
     inputs 3
     motion_vectors_type distance
     name ScanlineRender2
     selected true
     xpos 1073
     ypos -657
    }




-- ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
    <http://ohufx.com/index.php/vfx-compositing> | *workflow
    customisation and consulting
    <http://ohufx.com/index.php/vfx-customising>* *


    _______________________________________________
    Nuke-users mailing list
    Nuke-users@support.thefoundry.co.uk
    <mailto:Nuke-users@support.thefoundry.co.uk>,
    http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users




_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *



_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *

_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to