File: radiosity3.pov

package info (click to toggle)
povray 1%3A3.7.0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 147,232 kB
  • sloc: cpp: 845,011; ansic: 122,118; sh: 34,204; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,388; cs: 879; awk: 590; perl: 245; xml: 95
file content (138 lines) | stat: -rw-r--r-- 2,682 bytes parent folder | download | duplicates (7)
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
129
130
131
132
133
134
135
136
137
138
// This work is licensed under the Creative Commons Attribution 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/
// or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View,
// California, 94041, USA.

// Persistence Of Vision Ray Tracer Scene Description File
// File: radiosity3.pov
// Desc: radiosity tutorial scene
// Date: 2000-2001
// Auth: Christoph Hormann

// -w240 -h180 +a0.3

// Updated: 29Dec2010 (cli) modified scene to use 3.7 syntax and more realistic diffuse finish

//#version 3.6;
#version 3.7;

#declare use_light=false;

global_settings {
  assumed_gamma 1.0
  
  radiosity {
    pretrace_start 0.08
    pretrace_end   0.04
    count 35

    nearest_count 5
    error_bound 0.2
    recursion_limit 1

    low_error_factor .5
    gray_threshold 0.0
    minimum_reuse 0.015
    brightness 1

    adc_bailout 0.01/2

  }
}

#if (use_light)
  light_source {
    <-1.5, 1, -0.5>*10000
    color rgb <1.0, 0.92, 0.77>
  }
#end

camera {
  location <3.8, 7.2, -10>
  look_at <0.0, 1.2, 0.0>
}


sphere {
  <0, 0, 0>, 1
  texture {
   pigment {
     gradient y
     color_map {
       [0.0 color rgb < 0.900, 0.910, 1.000 >]
       [0.0 color rgb < 0.700, 0.705, 1.000 >]
     }
   }
   finish { diffuse 0 #if (version < 3.7) ambient 1.4 #else emission 1.4 #end }
  }
  hollow on
  no_shadow
  scale 30000
}


#declare FinX= finish { diffuse 0.65 #if (version < 3.7) ambient 0 #end }

union {

  superellipsoid { <0.7, 0.3>
    translate < -1.6, 0.5, -4.1>
    texture {
      pigment { color rgb <1.0, 0.7, 0.6> }
      finish { FinX }
    }
  }

  torus { 2.1, 0.3
    rotate 90*x
    translate < -1.6, 0.0, -4.1>
  }

  union {
  #local Cnt=0;
  #while (Cnt < 6)
    cylinder { < 5.2-Cnt*0.3, 0, -3+Cnt>, < 5.2-Cnt*0.3, 1+Cnt*0.6, -3+Cnt>, 0.25 }
    sphere { < 0, 0, 0> 0.5 scale<1, 0.3, 1> translate < 5.2-Cnt*0.3, 1+Cnt*0.6, -3+Cnt> }
    #local Cnt=Cnt+1;
  #end
  }

  cylinder { < 1.8, 0, -0.75>, < 1.8, 1.8, -0.75>, 1
    texture {
      pigment { color rgb <0.6, 0.7, 1.0> }
      finish { FinX }
    }
  }
  sphere { < 1.8, 1.8, -0.75> 1
    texture {
      pigment { color rgb <0.6, 0.7, 1.0> }
      finish { FinX }
    }
  }

  sphere { < 0, 0, 0> 1
    scale <2.6,0.3,2.6>
    translate 4.5*y
  }
  sphere { < 0, 4.8, 0> 0.8 }

  box { <-3, 4.2, -3>, < 3.0,  4.0,  3> }
  difference {
    box { <-3,  0.0, -3>, <-2.8,  4.2,  3> }
    box { <-5, -0.1,  0>, <-2.0,  3.2,  2> }
  }
  box { < 3, 0.0, -3>, < 2.8,  4.2,  3> }

  texture {
    pigment { color rgb 1 }
    finish { FinX }
  }
}

plane {
  y, 0
  texture {
    pigment { color rgb 1 }
    finish { FinX }
  }
}