st Coloration

These images show the results of using the RenderMan Shading Language (RSL) to write a variety of special effects surface shaders. The notes and RSL code accompanying each image explain how each effect was achieved.

orange_cross

 

color surfcolor = 1;

if( t >= top && t <= bottom )

     surfcolor = color(1.0,0.5,0.0);

if( s >= left && s <= right )

     surfcolor = color(1.0,0.5,0.0);

orange cross source code

orange_circle

 

color surfcolor = 1;

if ((s-s1)*(s-s1) + (t-t1)*(t-t1) <= radius*radius)

     surfcolor = color(1, 0.5, 0);

orange circle source code

orange_crescent

 

color surfcolor = 1;

if (((s-s1)*(s-s1) + (t-t1)*(t-t1) <= radius*radius) &&

((s-s2)*(s-s2) + (t-t2)*(t-t2) >= radius*radius))

     surfcolor = color(1, 0.5, 0);

orange crescent source code

orange_curve

 

color surfcolor = 1;

if (t - position <= amp*sin(s*freq))

     surfcolor = color(1, 0.5, 0);

orange curve source code

girl

 

I got the "Eight Curve" formula from "Famous Curves Index"

for the ribbon.

 

I use "mix (x, y, alpha)" for the shading of the face.

x and y are different colors, and the distance from

the center point is used as the alpha.

girl source code

 

Back to Top