#
# 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 88.875 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" [.915 .53995 .5015]
				"rustKa" .2315 "rustKd" 0.785 
				"rusty" .0575 "rustbump" 0.6325 
				"txtscale" 3.2195
			Declare "Km" "float"
			Declare "frequency" "float"
			Declare "power" "float"
			Displacement "LGDented" "power" 1.925 "Km" 1.2115 "frequency" 3.405
			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 "orientation" "float"
			Surface "LGWood" 
				"orientation" 1
				"lightwood" [0.34 0.24 0.15] 
				"darkwood" [0.32 0.22 0.1052] 
				"grainy" .295
				"ringscale" 490
			ReadArchive "chair03-arm.rib"
		AttributeEnd

		#
		# The paper on the desk
		#
		TransformBegin
			AttributeBegin
				Color [0.6 0.6 0.6]
				Surface "LGWallpaper2Stripe"
				ReadArchive "chair-paper2a.rib"
			AttributeEnd
		TransformEnd

	TransformEnd
AttributeEnd
