File: infinitybox.pov

package info (click to toggle)
povray 1%3A3.6.1-12
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 31,084 kB
  • ctags: 20,310
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,753; ada: 1,637
file content (128 lines) | stat: -rw-r--r-- 2,573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//	Persistence of Vision Raytracer Version 3.5 Scene Description File
//	File: InfinityBox.pov
//	Author: Chris Huff
//
// -w320 -h240
// -w800 -h600 +a0.3
//*******************************************
#include "colors.inc"

#version 3.5;
//-------------------------------------------
global_settings {
	assumed_gamma 1
	max_trace_level 25
}

#default {finish {ambient 0}}

#declare CamLoc = < 1.5, 3.5,-7>;

camera {
	location CamLoc
	up y*image_height/image_width  right x
	look_at < 0, 1, 0>
	angle 35
}
light_source {CamLoc, color rgb 0.3}
light_source {<-50, 150,-180>, color White}
light_source {< 20, 25, 75>, color rgb 0.5}
//*******************************************
box {<-50,-1,-50>, < 50, 0, 50>
	texture {
		pigment {checker color rgb < 0.15, 0.1, 0.5>, color White}
	}
}


#declare EdgeRad = 0.05;
union {
	box {<-1, 0,-1>, < 1, 2, 1>
		texture {
			pigment {color White filter 1}
		}
		interior_texture {
			pigment {color rgb 0}
			finish {reflection 0.8}
		}
		no_shadow
	}

	cylinder {<-1, 0,-1>, < 1, 0,-1>, EdgeRad}
	cylinder {< 1, 0,-1>, < 1, 0, 1>, EdgeRad}
	cylinder {< 1, 0, 1>, <-1, 0, 1>, EdgeRad}
	cylinder {<-1, 0, 1>, <-1, 0,-1>, EdgeRad}

	cylinder {<-1, 2,-1>, < 1, 2,-1>, EdgeRad}
	cylinder {< 1, 2,-1>, < 1, 2, 1>, EdgeRad}
	cylinder {< 1, 2, 1>, <-1, 2, 1>, EdgeRad}
	cylinder {<-1, 2, 1>, <-1, 2,-1>, EdgeRad}

	cylinder {<-1, 0,-1>, <-1, 2,-1>, EdgeRad}
	cylinder {< 1, 0,-1>, < 1, 2,-1>, EdgeRad}
	cylinder {< 1, 0, 1>, < 1, 2, 1>, EdgeRad}
	cylinder {<-1, 0, 1>, <-1, 2, 1>, EdgeRad}

	sphere {<-1, 0,-1>, EdgeRad*2}
	sphere {< 1, 0,-1>, EdgeRad*2}
	sphere {< 1, 0, 1>, EdgeRad*2}
	sphere {<-1, 0, 1>, EdgeRad*2}

	sphere {<-1, 2,-1>, EdgeRad*2}
	sphere {< 1, 2,-1>, EdgeRad*2}
	sphere {< 1, 2, 1>, EdgeRad*2}
	sphere {<-1, 2, 1>, EdgeRad*2}

	texture {
		pigment {color White}
	}
	translate y*EdgeRad
}


sphere {< 0.3, 1.5, 0.4>, 0.35
	texture {
		pigment {color rgb < 0.5, 0, 0>}
		finish {
			reflection {0.5 metallic}
			diffuse 0.4

			brilliance 2
			specular 1 roughness 0.01
			metallic
		}
	}
}

sphere {<-0.5, 0.5,-0.2>, 0.1
	texture {
		pigment {color rgb < 1, 1, 0>}
		finish {
			reflection {0.5 metallic}
			diffuse 0.4

			brilliance 2
			specular 1 roughness 0.01
			metallic
		}
	}
}
box {<-0.3,-0.1,-0.2>, < 0.5, 0.1, 0.2>
	texture {
		pigment {color rgb < 0, 0.8, 0>}
		finish {
			reflection {0.5 metallic}
			diffuse 0.4

			brilliance 2
			specular 1 roughness 0.01
			metallic
		}
	}
	translate < 0.5, 0.3,-0.5>
}

//*******************************************


//-------------------------------------------