#include "colors.inc" #include "textures.inc" #include "glass.inc" #include "metals.inc" #include "stones1.inc" #include "temple.inc" #include "oldblade.inc" #declare Dark_Marble_Map = color_map { [0.0, 0.8 color rgb <0.1, 0.1, 0.1> color rgb <0, 0.4, 0>] [0.8, 1.0 color rgb <0, 0.5, 0> color rgb <0.2, 0.6, 0.2>] } // black marble with a neat-o looking green streak #declare Dark_Marble = texture { pigment { marble turbulence 1 color_map { Dark_Marble_Map } } finish {reflection <.2,.4,.2>} } sphere {0 100 texture{Shadow_Clouds scale 8}} plane { y 0 texture { checker texture{pigment{White_Marble}} texture{Dark_Marble} } scale 3 } //light_source {<-5,10,-10> color White} //light_source {<-5,10,-10> color White} //light_source {y*99 color White rotate 30*x} light_source {y*99 color White rotate -50*z rotate -50*y} light_source {y*99 color rgb .7 rotate -50*z rotate -50*y} light_source {y*99 color White rotate -50*z rotate 50*y} light_source {y*99 color rgb .5 rotate -50*z rotate 100*y} camera { location <0,3,-7> look_at y*2 } union{ object {sword translate y*2 rotate 15 translate y*2} intersection { #declare board = plane {y 1 texture{pigment { image_map {gif "circuit.gif" map_type 0 interpolate 2} rotate x*90} } } object {board rotate 45*x} object {board rotate -45*x} object {board rotate 45*z} object {board rotate -45*z} object {board translate -.5*y} object {board rotate 180*x translate y*.8} translate y } translate y*.2 rotate -24*y } #declare crossroads = union { union { box { <-2,0,-200> <2,.05,200> } box { <-200,0,-2> <200,.05,2> } texture { pigment { image_map { gif "chipback.gif" // the file to read (iff/gif/tga/png/sys) map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized distance } } rotate x*90 scale 10 } } cylinder { 0 .07*y 2 texture{Polished_Chrome} } //DREAM CITY BIT #declare dreamcity = union { sphere {<0,0,0> 10 texture{pigment{color rgbf <1,.6,.6,1>} finish {phong .4}}} #declare hallucin = union { box { <3,0,0> <3,2,4> } box { <-1,0,3> <2,1,5> } box { <-5, 0,3> <2,2,2> } cylinder {0 9*y 1} box {<1,0,5> <2,5,1>} box {<1,0,6> <2,2,2>} sphere {<3,3,3> 1} cone {<7,1,0> 3 <7,3,0> 0} sphere {<4,1,7> 1} sphere {<6,2,4> .5} box {<7,0,4> <2,5,1>} texture{pigment{color rgb .7}} } #declare badtrip = union { object{hallucin} object{hallucin scale .2 rotate 43*y} object{hallucin scale .6 rotate 148*y} object{hallucin scale .54 rotate 224*y} } object {badtrip} object {badtrip rotate 300*y} } /* #declare dreamring = union { #declare iterator = 0 #declare number_of_cities = 10 #while (iterator < number_of_cities) object { dreamcity scale .2 translate 10*x rotate (360/number_of_cities)*iterator*y } #declare iterator = iterator + 1 #end } */ #declare bigcity = union { object {dreamcity} //object {dreamring} translate 50*z } object {bigcity} } object {crossroads rotate -y*24} object {TEMPLE scale .7 translate <0,.75,35> rotate y*15}