#
# 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 108.5 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"
			Declare "offset" "float"
			Surface "WWRustyShinyMetal" 
				"metalKa" .2315 "metalKs" 3.125 
				"metalroughness" 0.475
				"rustcolor" [.9375 .80995 .7715]
				"rustKa" .2315 "rustKd" 0.585 
				"rusty" .3575 "rustbump" 0.4825 
				"txtscale" 5.8895
				"offset" 0.12
			Declare "Km" "float"
			Declare "frequency" "float"
			Declare "power" "float"
			Displacement "LGDented" "power" 2.7 "Km" 1.3095 "frequency" 2.295
			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"
			Declare "usez" "float"
			Surface "LGWood" 
				"orientation" 1
				"lightwood" [0.44 0.34 0.25] 
				"darkwood" [0.398 0.2980.1832] 
				"grainy" .535
				"usez" 1
				"ringscale" 180
				"txtscale" 0.925
			Declare "txtscale" "float"
			Declare "magnitude" "float"
			Declare "offset" "float"
			Displacement "PXDWood" "txtscale" 2 "magnitude" 0.03 
			ReadArchive "chair03-arm.rib"
		AttributeEnd

		#
		# The paper on the desk
		#
		AttributeBegin
			Color [.925 .925 .925]
			Declare "hfreq" "float"
			Declare "vcolor" "color"
			Declare "hcolor" "color"
			Declare "skip" "float"
			Declare "density" "float"
			Surface "MJH3HolePaper" 
				"hfreq" 16 
				"vcolor" .95 0 0 
				"hcolor" 0 0 .385
				"skip" 2
				"density" .03695
			ReadArchive "chair-paper2a.rib"
		AttributeEnd

	TransformEnd
AttributeEnd
