#
# Bookcase against windowed wall (on left)
#
AttributeBegin

	# This moves the bookcase's back up to the walls edge
	Translate 1.005 0 0

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

	# This matches the center of the bookcase with the wall,
	# somewhat centered under the window.
	Translate -4.85 1.575 2.795

	# Rotate to align with left wall
	Rotate -90 0 1 0 

	# Offset the shelves/books so they'll be closer to the 
	# intersection of the walls
	Translate 0.5  0  0

	# Scale bookcase to fit by window
	Scale  1.75   2  .5

	# Scale bookcase to be the same scale as the chairs
	Scale 2.878  2.878  9.375

	# The bookcase
	AttributeBegin
		TransformBegin
		Declare "txtscale" "float"
		Declare "ringscale" "float"
		Declare "lightwood" "color"
		Declare "darkwood" "color"
		Declare "grainy" "float"
		Declare "usez" "float"
		Declare "Ka" "float"
		Declare "orientation" "float"
			Scale 1.5 .4195 1.1275
			Surface "LGWood" 
				"Ka" 1.375
				"lightwood" [0.30 0.20 0.11] 
				"darkwood" [0.22 0.12 0.0052] 
				"grainy" .515
				"usez" 1
				"ringscale" 122
				"txtscale" 1.135
		TransformEnd
		ReadArchive "bookshelf-left.rib"
	AttributeEnd

	#
	# Top of bookshelf, both books
	#
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		Surface "plastic" 
		ReadArchive "books1a-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books1a-text.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic" 
		ReadArchive "books1b-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books1b-text.rib"
	AttributeEnd

	#
	# Top shelf, both books
	#
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		Surface "plastic" 
		ReadArchive "books2a-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books2a-text.rib"
	AttributeEnd
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		Surface "plastic" 
		ReadArchive "books2b-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books2b-text.rib"
	AttributeEnd

	#
	# Middle shelf, right section
	# Bottom shelf, middle section
	#
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		Surface "plastic" 
		ReadArchive "books3-both.rib"
	AttributeEnd

	#
	# Middle shelf, left section
	#
	AttributeBegin
		Color [0.115 0.1509 0.415]
		Surface "plastic" 
		ReadArchive "books4-both.rib"
	AttributeEnd

	#
	# Middle shelf, middle section
	#
	AttributeBegin
		Color [0.647059 0.164706 0.164706]
		Surface "plastic" 
		ReadArchive "books5a.rib"
	AttributeEnd
	AttributeBegin
		Color [0 0.138039 0.475]
		Surface "plastic" 
		ReadArchive "books5b.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic" 
		ReadArchive "books5c.rib"
	AttributeEnd
	AttributeBegin
		Color [0 0.2589 0.515]
		Surface "plastic" 
		ReadArchive "books5d.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic" 
		ReadArchive "books5e.rib"
	AttributeEnd

	#
	# Top shelf, smaller set of 2 books
	#
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic" 
		ReadArchive "books7a-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books7a-text.rib"
	AttributeEnd
	AttributeBegin
		Color [0.858824 0.658824 0.339216]
		Surface "plastic" 
		ReadArchive "books7b-cover.rib"
	AttributeEnd
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "books7b-text.rib"
	AttributeEnd

	#
	# Piece of paper - on books
	#
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "paper2.rib"
	AttributeEnd

	#
	# Piece of paper - on shelf
	#
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		ReadArchive "paper1.rib"
	AttributeEnd

	#
	# Globe and stand
	#
	AttributeBegin
		Color [0.6 0.6 0.6]
		Surface "plastic" 
		Declare "txtscale" "float"
		Declare "magnitude" "float"
		Displacement "PXDWood" "txtscale" 15 "magnitude" 0.63 
		ReadArchive "globe.rib"
	AttributeEnd
	AttributeBegin
		Color [0.235 0.235 0.235]
		Surface "plastic" 
		ReadArchive "globe-base.rib"
	AttributeEnd
	AttributeBegin
		Color [0.90 0.91 0.98]
		Surface "plastic" 
		ReadArchive "globe-joints.rib"
	AttributeEnd

AttributeEnd
