#
# The Chair in the back row on the left.
#
AttributeBegin

	TransformBegin
		# Move the Chair onto the floor
		Translate 0 -3 0
		# Move the chair to its relative position in the row
		Translate 6.485 0 0
		# Rotate towards the front of the class (to the right)
		Rotate 93.75 0 1 0
		# Move the chairs legs onto the XZ plane
		Translate 0 1.658125 0
		Scale 2 1.895 2

		# 
		# The metallic frame
		#
		AttributeBegin
			Color [ .5 .5 .5 ]
			Declare "metalKa" "float"
			Declare "metalKs" "float"
			Declare "metalroughness" "float"
			Declare "rustKa" "float"
			Declare "rustKd" "float"
			Declare "rustcolor" "color"
			Declare "txtscale" "float"
			Declare "rusty" "float"
			Declare "rustbump" "float"
			Surface "WWRustyShinyMetal" 
				"metalKa" .2315 "metalKs" 3.125 
				"metalroughness" 0.475
				"rustcolor" [.9675 .83995 .8015]
				"rustKa" .2315 "rustKd" 0.785 
				"rusty" .2275 "rustbump" 0.6325 
				"txtscale" 5.1895
			Declare "Km" "float"
			Declare "frequency" "float"
			Declare "power" "float"
			Displacement "LGDented" "power" 2.3 "Km" 1.1525 "frequency" 2.875
			ReadArchive "chair03-seat.rib"
		AttributeEnd

		# 
		# The wooden writing area
		#
		AttributeBegin
			Declare "txtscale" "float"
			Declare "ringscale" "float"
			Declare "lightwood" "color"
			Declare "darkwood" "color"
			Declare "grainy" "float"
			Declare "usez" "float"
			Declare "orientation" "float"
			Surface "LGWood" 
				"orientation" 1
				"lightwood" [0.34 0.24 0.15] 
				"darkwood" [0.318 0.20 0.0852] 
				"grainy" .95
				"usez" 1
				"ringscale" 122
				"txtscale" 1.135
			Declare "txtscale" "float"
			Declare "magnitude" "float"
			Declare "offset" "float"
			Displacement "PXDWood" "txtscale" 5 "magnitude" 0.03
			ReadArchive "chair03-arm.rib"
		AttributeEnd

		#
		# Books on the desk
		#
		TransformBegin
			Translate  0.135 .445 0.35
			AttributeBegin
				TransformBegin
					Scale .1 .1 .1
					Color [0.858824 0.858824 0.439216]
					Surface "plastic" 
					ReadArchive "mybook-title.rib"
				TransformEnd
			AttributeEnd
			AttributeBegin
				TransformBegin
					Scale .1 .1 .1
					Color [0.858824 0.858824 0.439216]
					Surface "plastic" 
					ReadArchive "mybook-byline.rib"
				TransformEnd
			AttributeEnd
			AttributeBegin
				TransformBegin
					Scale .1 .1 .1
					Color [0.647059 0.164706 0.164706]
					Surface "plastic" 
					ReadArchive "mybookcover.rib"
				TransformEnd
			AttributeEnd
			AttributeBegin
				TransformBegin
					Scale .1 .1 .1
					Color [0.6 0.6 0.6]
					ReadArchive "mybooktext.rib"
				TransformEnd
			AttributeEnd
		TransformEnd

		AttributeBegin
			Color [1 1 1]
			Declare "hfreq" "float"
			Declare "vcolor" "color"
			Declare "hcolor" "color"
			Declare "skip" "float"
			Declare "density" "float"
			Surface "MJH3HolePaper" 
				"hfreq" 24 
				"vcolor" .95 0 0 
				"hcolor" 0 0 .385
				"skip" 2
				"density" .03695
			TransformBegin
				Translate 0.0715 -0.003 -0.3715
				ReadArchive "chair-paper2a.rib"
			TransformEnd
		AttributeEnd

	TransformEnd
AttributeEnd
