render3d

  • Increase font size
  • Default font size
  • Decrease font size
Start

NOLINK_01

E-mail Print PDF

Pixie rendering:

Beauty channel:

alt

myAOV channel:

alt

The shader is only applied to the teapot, not the floor. So why do I get these patterns?

shader source:



surface showmicro( color col = 1; output varying color myAOV = 0 )
{
  normal nN = normalize(N);
  
  color dcol = diffuse(nN);
    point pp = vtransform("world",P);
    float n = sin(pp[1] * 100);
    myAOV = n;
    Ci = dcol * col;
    Oi = 1.0;      
}

rib file:
# AOV Testrib

Option "searchpath" "string archive" ".:%RIBS%"
Option "searchpath" "string shader" ".:%PIXIEHOME%/shaders:%SHADERS%:%MYSHADERS%"

Projection "perspective" "fov" 45

DisplayChannel "color myAOV"
Display "aov_01.tif" "tiff" "rgb" 
Display "+myOwnColorAOV.tif" "tiff" "myAOV"

Format 512 512 1
ShadingRate 1
#Camera perspShape
Clipping 0.1 1000
Projection "perspective" "fov" [54.4322]
Shutter 0 0
ConcatTransform [ 0.681998 -0.369411 -0.6312 -2.60244e-008  3.95291e-008 0.863058 -0.505105 -2.47622e-008  -0.731354 -0.344481 -0.588604 -2.04502e-008  -0.090876 -0.315378 2.86712 1 ]

WorldBegin
    TransformBegin 
        LightSource "distantlight" "from" [-10 10 10] "to" [0 0 0] 
        LightSource "distantlight" "from" [10 10 10] "to" [0 0 0] "lightcolor" [.8 .8 1] "intensity" .5
    TransformEnd 
    
    Attribute "visibility" "transmission" 1    
    
    
    TransformBegin        
        Surface "matte"
        ReadArchive "nurbsplane.rib"
    TransformEnd
    
    TransformBegin
        Surface "showmicro" "col" [1 0 0]
        ReadArchive "teapot.rib"
    TransformEnd
WorldEnd

Last Updated on Saturday, 26 June 2010 20:26