• Reel
  • Portfolio
  • About
  • Resume
  • Contact
Gala Tovar
  • Reel
  • Portfolio
  • About
  • Resume
  • Contact

Bacteria

This project was created using Sony’s Open Shading Language (OSL). It was meant to mimic how actual microscopic photography is taken. Which involves no real light. Therefore my scene had no physical lights. Rather the light produced comes from the scripted edge shader and the use of occlusion. There was also the inclusion of a noise shader that is responsible for the turbulence on the surface.

Programs used: Maya, Cutter (text editor)


 
 

Scripts

Color Script

SEM_502_Edge [[ int rfm_nodeid = 11, string rfm_classification = "rendernode/RenderMan/pattern", string help = "color." ]] (

color base = 1,
color edge = color(1,0,0),
float strength = 1,
output color resultRGB = 0,
output float resultF = 0)

{ vector i = normalize(I); vector n = normalize(N);

float angle = 1 - fabs(dot(n, -i));

resultRGB = mix(base, edge, pow(angle, strength)); resultF = angle - 0.5; }

 

Noise Script

shader SEM_502_Noise [[ int rfm_nodeid = 12, string rfm_classification = "rendernode/RenderMan/pattern", string help = "Noise Cntrl." ]] (

string spacename = "object",
float freq = 4,
int octaves = 3,
int creases = 0,
output float resultF = 0)

{ point p = transform(spacename, P); int n; float F = freq; float amplitude = 1; for(n = 0; n < octaves; n++) { resultF += noise("perlin", p F)/amplitude; F= 2; amplitude *= 2; } if (creases > 0) resultF = fabs(resultF);

 

Stills

 

Reference Image

 
 
 

Back
Next