// POV Ray source for a simple spacecraft // Uses difference, union, and merge CSG functions. // Written for POV-Ray v2.0/2.2 #include "colors.inc" #include "textures.inc" #include "shapes.inc" #declare Starry_Sky = pigment { spotted color_map { [0.0 color Black] [0.95 color Black] [1.0 color White] } } camera { location <4 ,4 ,-4 >*7 look_at <10,0,0> } light_source { <-50,100,0> color White} sphere{<0,0,0>,4000 pigment{Starry_Sky} } #declare Fuselage = cone{ <30,0,0>,0, <0,0,0>,20 texture{Silver_Texture} scale <1,.2,1> } #declare Windscreen = difference{ difference{ sphere{<0,0,0>,1} box{<0,1,1>,<-1,-1,-1>} } sphere{<0,0,0>,.8} texture{Glass3 pigment{Blue} } } #declare Canopy = difference{ sphere{<0,0,0>,1} box{<0,1,1>,<1,-1,-1>} texture{Chrome_Texture} } #declare Cockpit = union{ object{Windscreen} object{Canopy} scale <4,2,2> translate <10,2,0> } merge{ object{Cockpit} object{Fuselage} }