Monday, December 5, 2011

Monday, November 21, 2011

Monday, November 14, 2011

Surface Shader

Surface: Wood
Transparency: Opaque
Surface: Rough
Colour: Different Shades of Brown
Textures: slight dent

Monday, November 7, 2011

Practical 3




3 Patterns

1) Pattern 1 - Veins & Ripples





2) Pattern 2 - Rainbow & Splatter





3) Pattern 3 - Rainbow & Ripples


Monday, October 31, 2011

Practical 2

1) Renderman is a scripting language used in scripting software or notepad ++ to create shapes and shaders, rendered using the software Pixie.

2)Pacman


#mypacman.rib – test test

Display "mypacman.tiff" "file" "rgb"


Projection "perspective" "fov" 30
Translate 0 0 5

LightSource "pointlight"
"from" [2 2 -3]
"intensity" [30]

WorldBegin
AttributeBegin
color 1 1 0
Rotate 180 1 0 0
Rotate 45 0 0 1
scale 0.5 0.5 0.5
Sphere 1 -1 1 270

AttributeEnd

AttributeBegin
color 0 0 0
translate 0 0.15 -2
scale 0.05 0.05 0.05
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0.6 0.7 1.5
translate 0.3 0 0
Rotate 180 0 0 1
scale 0.05 0.05 0.05
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0.6 0.7 1.5
translate 0.8 0 0
Rotate 180 0 0 1
scale 0.05 0.05 0.05
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0.6 0.7 1.5
translate 1.3 0 0
Rotate 180 0 0 1
scale 0.05 0.05 0.05
Sphere 1 -1 1 360

AttributeEnd


WorldEnd

3)Mushroom


#mymushroom.rib – test test

Display "mymushroom.tiff" "file" "rgb"


Projection "perspective" "fov" 30
Translate 0 0 5

LightSource "pointlight"
"from" [2 2 -3]
"intensity" [30]

WorldBegin
AttributeBegin
color 0 1 0
translate 0 0.25 0
scale 1 0.88 1
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0.9 0.8 0.5
translate 0 -0.48 -0.4
scale 0.55 0.45 0.5
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 1 1 1
translate 0 0.3 -0.66
scale 0.48 0.49 0.4
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 1 1 1
translate -0.54 0.2 -0.33
scale 0.48 0.47 0.38
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 1 1 1
translate 0.54 0.2 -0.33
scale 0.48 0.47 0.38
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 0 0
translate -0.2 -0.44 -0.9
scale 0.04 0.1 0.03
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 0 0
translate 0.2 -0.44 -0.9
scale 0.04 0.1 0.03
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 1 1 1
translate 0.19 -0.37 -1
scale 0.02 0.025 0.007
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 1 1 1
translate -0.2 -0.37 -1
scale 0.02 0.025 0.007
Sphere 1 -1 1 360

AttributeEnd

WorldEnd

Monday, October 24, 2011

Mickey Mouse Exercise

Ling Zheng

Mickey Mouse



#myfirstrib.rib – test test

Display "myfirstrib.tiff" "file" "rgb"


Projection "perspective" "fov" 60
Translate 0 0 5

LightSource "pointlight"
"from" [2 2 -3]
"intensity" [10]

WorldBegin
AttributeBegin
color 1 1 1
Rotate 1 0 0
translate 0 -0.5 0
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 1 1.5
Rotate 15 0 0 1
translate -0.6 0.95 0
scale 0.5 0.55 0.7
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 1 1.5
Rotate 15 0 0 -1
translate 0.6 0.95 0
scale 0.5 0.55 0.7
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 0 0
Rotate 0 0 0 0
translate 0 -0.25 -2
scale 0.05 0.08 0.08
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 0 0
Rotate 0 0 0 0
translate 0.3 -0.05 -2
scale 0.05 0.1 0.05
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
color 0 0 0
Rotate 0 0 0 0
translate -0.3 -0.05 -2
scale 0.05 0.1 0.05
Sphere 1 -1 1 360

AttributeEnd


WorldEnd

Monday, October 17, 2011

Practical 1

Object: Marbles
  • Color - Transparent White
  • Smooth Surface (Glass)
  • Specular highlights
  • Reflects the environment on the surface of glass
  • Shadows cast are tainted by the color of glass (Ray Trace Shadows)


Object: Wooden board
  • Color - Light Brown with dark brown holes
  • Rough Surface (holes)
  • Diffuse highlights
  • No Reflections
  • Slight shadows cast on wood due to light direction(Depth Map Shadows)


Object: Almonds
  • Color - Brown and dark brown stripes
  • Rough surface (wrinkled shell)
  • Diffuse highlight
  • No Reflections
  • Black shadows unlike shadows cast by glass (Depth Map Shadows)