#
# 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 3.675 0 0
		# Rotate towards the front of the class (to the right)
		Rotate 100 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 3.5 1 3.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"
				Declare "offset" "float"
				Surface "WWRustyShinyMetal" 
					"metalKa" .2315 "metalKs" 3.125 
					"metalroughness" 0.475
					"rustcolor" [.9675 .83995 .8015]
					"rustKa" .2315 "rustKd" 0.485 
					"rusty" .2565 "rustbump" 0.4325 
					"txtscale" 2.4165
					"offset" 0.3172
				Declare "Km" "float"
				Declare "frequency" "float"
				Declare "power" "float"
				Displacement "LGDented" "power" 2.3 "Km" 1.6525 "frequency" 2.875
			TransformEnd
			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" .295
				"ringscale" 490
			Declare "txtscale" "float"
			Declare "magnitude" "float"
			Declare "offset" "float"
			Displacement "PXDWood" "txtscale" 15 "magnitude" 0.044 "offset" 10
			ReadArchive "chair03-arm.rib"
		AttributeEnd
	TransformEnd
AttributeEnd
