#
# Bookcase against back wall 
#
AttributeBegin

	# Move the left edge of bookcase up near the left wall
	Translate -.685 0 0

	# Move the back of the bookcase up against the wall
	Translate 0 0 -1

	# Place the bookcase on the floor
	Translate 0 -3 0

	# Move back to same center line as back wall
	Translate 0 0 9.375

	# Move bottom of bookcase up to origin's plane
	Translate 0 3.0375 0

	# Scale bookcase to be the same scale as the chairs
	Scale 4.878  6.075  2.375

	# The bookcase
	AttributeBegin
		TransformBegin
			Scale 1.15 0 0
			Declare "txtscale" "float"
			Declare "ringscale" "float"
			Declare "lightwood" "color"
			Declare "darkwood" "color"
			Declare "grainy" "float"
			Declare "usez" "float"
			Declare "orientation" "float"
			Surface "LGWood" 
				"lightwood" [0.26 0.16 0.07] 
				"darkwood" [0.22 0.12 0.0052] 
				"grainy" .515
				"usez" 1
				"ringscale" 122
				"txtscale" 1.135
		TransformEnd
		ReadArchive "bookshelf-back.rib"
	AttributeEnd

	#
	# Top row of books
	#
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		# Surface "plastic" 
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" "stripespacing" .125
		ReadArchive "books8.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Declare "stripecolor" "color"
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" 
				"stripespacing" .215
				"stripecolor" 1 0 0
		ReadArchive "books9.rib"
	AttributeEnd
	AttributeBegin
		Color [0.115 0.1509 0.415]
		Declare "roughness" "float"
		Declare "stripecolor" "color"
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" 
				"stripespacing" .005
				"stripecolor" 1 1 .75
				"roughness" .75
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Declare "offset" "float"
		Displacement "PXDWood" "txtscale" 5 "magnitude" 0.03 
		ReadArchive "books10.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic"
		ReadArchive "books11.rib"
	AttributeEnd
	AttributeBegin
		Color [0.309804 0.184314 0.184314]
		Surface "plastic"
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Declare "offset" "float"
		Displacement "PXDWood" "txtscale" 3 "magnitude" 0.046 
		ReadArchive "books12.rib"
	AttributeEnd

	#
	# Middle shelf
	#
	# Middle row, stacked books
	AttributeBegin
		Surface "plastic" 
		Color [0.115 0.1509 0.415]
		ReadArchive "books13a-cover.rib"
	AttributeEnd
	AttributeBegin
		Surface "plastic" 
		Color [0.6 0.6 0.6]
		ReadArchive "books13a-text.rib"
	AttributeEnd
	AttributeBegin
		Surface "plastic" 
		Color [0.858824 0.658824 0.339216]
		ReadArchive "books13b-cover.rib"
	AttributeEnd
	AttributeBegin
		Surface "plastic" 
		Color [0.6 0.6 0.6]
		ReadArchive "books13b-text.rib"
	AttributeEnd
	AttributeBegin
		Surface "plastic" 
		Color [0.858824 0.658824 0.339216]
		ReadArchive "books13c-cover.rib"
	AttributeEnd
	AttributeBegin
		Surface "plastic" 
		Color [0.6 0.6 0.6]
		ReadArchive "books13c-text.rib"
	AttributeEnd

	AttributeBegin
		Color [0.917647 0.917647 0.678431]
		Surface "plastic"
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Declare "offset" "float"
		Displacement "PXDWood" "txtscale" 3 "magnitude" 0.044 
		ReadArchive "books14.rib"
	AttributeEnd
	AttributeBegin
		Color [0.847059 0.74902 0.847059]
		Declare "roughness" "float"
		Declare "stripecolor" "color"
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" 
				"stripespacing" .002
				"stripecolor" 1 0 .75
				"roughness" .45
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Declare "offset" "float"
		Displacement "PXDWood" "txtscale" 5 "magnitude" 0.05 "offset" 5
		ReadArchive "books15.rib"
	AttributeEnd
	AttributeBegin
		Color [0.72 0.45 0.20]
		Surface "plastic"
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Declare "offset" "float"
		Displacement "PXDWood" "txtscale" 15 "magnitude" 0.044 "offset" 10
		ReadArchive "books16.rib"
	AttributeEnd
	AttributeBegin
		Color [0.35 0.35 0.67]
		Declare "roughness" "float"
		Declare "stripecolor" "color"
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" 
				"stripespacing" .215
				"stripecolor" 0 0 1
				"roughness" .55
		ReadArchive "books17.rib"
	AttributeEnd
	AttributeBegin
		Color [0.52 0.39 0.39]
		Declare "roughness" "float"
		Declare "stripecolor" "color"
		Declare "stripespacing" "float"
		Declare "stripewidth" "float"
		Surface "LGWallpaper2Stripe" 
				"stripespacing" .025
				"stripecolor"  0 0 1
				"roughness" .75
		ReadArchive "books18.rib"
	AttributeEnd

	#
	# Bottom shelf - the encyclopedias
	#
	AttributeBegin
		Color [0.309804 0.184314 0.184314]
		Surface "plastic" 
		Displacement "LGBrickBump"
		ReadArchive "books19.rib"
	AttributeEnd

AttributeEnd
