// Persistence of Vision Ray Tracer Scene Description File // File: booktest.pov // Vers: 3.1 // Desc: A simple example of a shelf of books using books.inc // ==== Standard POV-Ray Includes ==== #include "colors.inc" // Standard Color definitions #include "textures.inc" // Standard Texture definitions #include "woods.inc" /* // books.inc variables RowLength=1.5; // How long a row of books to create (X-Axis) RowHeight=.40; // How tall a row of books to create (Y-Axis) RowDepth=.30; // How deep a row of books to create (Z-Axis) NumBooks=10; // Approximate number of books in the row VariThick=.40; // Decimal Percentage by which thickness of books are to vary. VariHeight=.15; // Decimal Percenatge by which height of books are to vary. VariDepth=.15; // Decimal Percentage by which depth of books are to vary. BookSeed=seed(1); // Seed value to use for random numbers VariColours=true; // If true, colours of bindings are random; otherwise uses a supplied texture VariAlign=.1; // Decimal Percentage of RowDepth by which spines of books are to misaligned StackStyle=0; // 0=Shelved (Bottom Edges Even), 1=Nicely Stacked, 2=Messily Stacked FillerColour=1; // 0=Plain White, 1=Gray Gradient ExactLength=true; // false=NumBooks More Important Than RowLength, true=Vice Versa Titles=true; // false=Plain Covers, true=Titles on Spines Tilted=true; // 0=vertical books 1=tilted books (shelved books only) MaxTiltedAngle=10; // Max angle for tilted books VariTilted = 0.20; // Decimal percentage of tilted books */ camera { location <1.5, 2.0, -3.0> direction 1.5*z right 4/3*x look_at <1.0, 0.5, 0.0> } light_source { 0*x color red 1.0 green 1.0 blue 1.0 translate <-30, 30, -30> } light_source { 0*x color red 1.0 green 1.0 blue 1.0 translate <45, 15, -25> } union { box {<0,0,0>,<1.8,0.04,0.5> translate <0,1.0,0>} //top shelf box {<0,0,0>,<1.8,0.04,0.5> translate <0,0.5,0>} //middle shelf box {<0,0,0>,<1.8,0.04,0.5> } // bottom shelf texture {T_Wood17 rotate <4,90,0>} } union { box {<0,0,0>,<0.05,1.4,0.5> translate <0,-0.36,0>} //left side box {<0,0,0>,<0.05,1.4,0.5> translate <1.8,-0.36,0>} //right side texture {T_Wood17 rotate <4,0,0>} } #declare RowLength=1.6; object { #declare NumBooks=16; // change variables before including books.inc #include "books.inc" // top shelf translate <0.05,0.54,0.05> } object{ #declare NumBooks=20; #include "books.inc" // bottom shelf translate <0.05,0.04,0.05> } plane { z, 0.51 pigment {rgb <0.7383, 0.7148, 0.4180>}} // back wall plane { y, -0.36 pigment {color rgb <0.2,0.5,0.8>}} //floor