File: table_stuff.inc

package info (click to toggle)
povray 1%3A3.7.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • 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,389; cs: 879; awk: 590; perl: 245; xml: 95
file content (136 lines) | stat: -rw-r--r-- 2,347 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
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

// Persistence Of Vision Ray Tracer Include File
// File: table_stuff.inc
// Desc: stuff on the table for 'balcony.pov' demonstration scene
// Date: July/August 2001
// Auth: Christoph Hormann

// Updated: 09Aug2008 (jh) for v3.7 distribution

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

#if (version < 3.7)
  #version 3.5;
#end

#declare Mat_Glass=
material {
  texture {
    pigment { color rgbt 1 }
    finish {
      ambient 0.0
      diffuse 0.1
      specular 0.5
      roughness 0.01

      reflection {
        0.15, 1.0
        fresnel on
      }

      conserve_energy
    }
  }
  interior {
    ior 1.5
    fade_distance 0.1
    fade_power 1001
    fade_color <0.4,0.4,0.8>
  }
}

#declare Tex_Box_Metal=
texture {
  pigment {
    color rgb <0.5,0.45,0.4>
  }
  finish {
    ambient 0.0
    diffuse 0.05
    specular 0.5
    roughness 0.01
    metallic

    reflection {
      0.8
      metallic
    }
  }
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

#include "shapes.inc"
#include "functions.inc"

#declare Table_Height=0.66;

#declare Box_Iso=
isosurface {
  function  { -f_superellipsoid(x,y,z, 0.2, 0.2) }
  contained_by {box { -1.2, 1.2 }}
  max_gradient 1.1

  translate 1.001*z
}

#declare Box=
union {
  intersection {
    object { Box_Iso }
    object { Round_Box_Merge (<-1.1,-1.1,1.6>, <1.1,1.1,-0.1>, 0.4) }

  }
  intersection {
    object { Box_Iso }
    object { Round_Box_Merge (<-1.1,-1.1,1.6>, <1.1,1.1,2.2>, 0.4) }
    scale 1.01
    rotate 0.2
  }
  torus {
    0.6, 0.13
    rotate 90*z
    translate 2*z
  }

  scale <1,1,0.6>
}

#include "bglass.inc"

union {
  object {
    Glass

    photons{
      target 1.0
      refraction on
      reflection on
    }

    translate <-0.16,-0.1,0>
  }

  object {
    Box

    texture {
      Tex_Box_Metal
    }
    photons{
      target 1.0
      reflection on
    }

    scale 0.06
    translate <-0.1,0.2,0>
  }


  translate <3.3,2.52,Table_Height>
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/