#
# 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 -2.5 0 0
		# Rotate towards the front of the class (to the right)
		Rotate 107.65 0 1 0
		# Move the chairs legs onto the XZ plane
		Translate 0 1.75 0
		Scale 2 2 2

		# 
		# The metallic frame
		#
		AttributeBegin
			Color [ .5 .5 .5 ]
			TransformBegin
				Translate 0 0 .1
				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"
				Declare "offset" "float"
				Surface "WWRustyShinyMetal" 
					"metalKa" .2315 "metalKs" 3.125 
					"metalroughness" 0.475
					"rustcolor" [.915 .53995 .5015]
					"rustKa" .2315 "rustKd" 0.485 
					"rusty" .2015 "rustbump" 0.4325 
					"txtscale" 5.3165
					"offset" -0.3572
				Declare "Km" "float"
				Declare "frequency" "float"
				Declare "power" "float"
				Displacement "LGDented" "power" 3.3 "Km" 1.425 "frequency" 3.625
			TransformEnd
			ReadArchive "chair03-seat.rib"
		AttributeEnd

		# 
		# The wooden writing area
		#
		AttributeBegin
			Declare "lightwood" "color"
			Declare "darkwood" "color"
			Declare "grainy" "float"
			Declare "usez" "float"
			Declare "orientation" "float"
			Declare "txtscale" "float"
			Surface "LGWood" 
				"orientation" 1
				"lightwood" [0.34 0.24 0.15] 
				"darkwood" [0.32 0.22 0.1052] 
				"grainy" .75
				"usez" 1
				"txtscale" .5
			Declare "txtscale" "float"
			Declare "magnitude" "float"
			Declare "offset" "float"
			Displacement "PXDWood" "txtscale" 10 "magnitude" 0.03 "offset" -5
			ReadArchive "chair03-arm.rib"
		AttributeEnd

		#
		# Books on the desk
		#
		AttributeBegin
			Color [0.647059 0.164706 0.164706]
			Surface "plastic" 
			ReadArchive "chair-uprightbooks-cover.rib"
		AttributeEnd
		AttributeBegin
			Color [0.6 0.6 0.6]
			ReadArchive "chair-uprightbooks-text.rib"
		AttributeEnd
	TransformEnd
AttributeEnd
