Monday, November 14, 2011

Assignment 1

For my assignment 1, I've decided to create a basketball
I'll just use a sphere for the shape of the basketball.
Specular highlight for the basketball, I'll give it a low specular and no reflectivity at all.
For the tiny bumps on the basketball, i'll create constant little bumps on it and give the sphere a slightly orange/bump color.
The diffuse for the basketball is generally low.




Cardboard


Bricks


Mossaic

Friday, October 28, 2011


#stewpitmushroomrib.rib

Projection "perspective" "fov" 55
Translate 0 0 5

LightSource "pointlight"
"from" [0 0 0]
"intensity" [0]
WorldBegin

TransformBegin
AttributeBegin

#WhiteColorBackground
Color 1 1 1
Translate 0 0 0
Disk 30 200 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#GreenColorCaps
Color 0.047 0.682 0.247
Sphere 1.5 -5 0.1 180
Rotate 0 0 0
Translate 0 1 0

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#Mushroomstalk

Color 0.945 0.808 0.478
Translate 0 0 -0.5
Rotate 90 120 10 20
Sphere 1 -0.5 1.2 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#white1
Color 1 1 1
Translate -1 0.4 -2
Disk 0.3 0.3 360

AttributeEnd
TransformEnd


TransformBegin
AttributeBegin

#white2
Color 1 1 1
Translate 1 0.4 -2
Disk 0.3 0.3 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#whitemiddle
Color 1 1 1
Translate 0 0.4 -2
Disk 0.3 0.3 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#eyes
Color 0 0 0
Translate -0.2 -0.3 -2
Scale 0.5 2 0.5
Sphere 0.1 0 0.4 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

#eyes
Color 0 0 0
Translate 0.1 -0.3 -2
Scale 0.5 2 0.5
Sphere 0.1 0 0.4 360

AttributeEnd
TransformEnd

WorldEnd

Monday, October 24, 2011

Zhi Yi's
Pacman


#myfirstrib.rib – test test

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

Projection "perspective" "fov" 80
Translate 0 1 5

WorldBeginAttributeBegin

Color 0 0 0
Translate 0.5 -0.1 -1
Disk 0.05 0.25 360

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 1.5 -1.5 0
Disk 0.1 0.3 360

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 3 -1.5 0
Disk 0.1 0.3 360

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 4.5 -1.5 0
Disk 0.1 0.3 360

AttributeEnd

AttributeBegin
Color 1 1 0
Translate 0 -0.5 2
Disk 0.5 4 300
AttributeEnd

TransformEnd
WorldEnd

Zhi Yi
Mickey Mouse



#myfirstrib.rib – test test
Display "myfirstrib.tiff" "file" "rgb"

Projection "perspective" "fov" 80
Translate 0 1 5

LightSource "pointlight"
"from" [2 2 -3]
"intensity" [10]
WorldBeginAttributeBegin
Color 5 1 3
Translate -2 -1 0
Sphere 1 -1 1 360

AttributeEnd
TransformEnd

TransformBegin
AttributeBegin

Color 5 1 3
Translate 2 -1 0
Sphere 1 -1 1 360

AttributeEnd
TransformEnd
TransformBegin
AttributeBegin

Color 8 5
Translate 0 -2 -2
Sphere 1 -1 1 360
AttributeEnd
TransformEnd

WorldEnd

Monday, October 17, 2011

Practical 1

BasketBall


Colour: Orange/Brown
Material: Rubber
Little specular highlight
Heavy Shadows
No reflections


Diamond


Colour : Transparent
Material: Diamond
High specular highlight
Soft Shadows
Transparent & Shiny
Very Reflective

Metal Rust


Colour: Dull Earthy Colours
Material: Metal
Little or No specular Highlight
Not Transparent. Not Shiny. Not glossy
Not Reflective