Hello Again OSL

.start

Continued working on my osl shader tests posted earlier. Today I setup a node network to replicate what the OSL code does and in the process learned quite a bit about shading nodes. 

Also, While working with the Node Editor I noticed the following.
  1. Selecting nodes and pressing CTRL+J will join the nodes in a new frame. 
  2. There is no hotkey for removing a node from its parent (Frame/NodeGroup), so I had to manually do it from the NodeEditor header menu (Node -> Remove from Frame)
  3. Changing socket names of NodeGroups will update the names across all shared NodeGroups.
Following the code below, you will see the node network that is trying to mimic the code below
    float scalar = abs(dot(-I, Normal));
 
    if( scalar > highValue ) {
        Color = Highlight * HighBoost;
    } else  if( scalar > midValue ) {
        Color = Highlight * Mid;
    } else {
        Color = Highlight * Shadow;
    }


In the screenshot below, the active monkey has uses my custom node network and the other monkey uses the OSL script node. Need to improve the node network for dialing in the proper angles!

Related Posts

Links


.end
satishgoda at gmail dot com

Popular posts from this blog

Blender 2.64 - Tutorial - Intro to Masking (Rotoscoping)

Hello OSL

Render Wedges using the Blender Video Sequence Editor