1 // This work is licensed under the Creative Commons Attribution 3.0 Unported License.
2 // To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/
3 // or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View,
4 // California, 94041, USA.
6 // Persistence of Vision Ray Tracer Scene Description File
7 // File: subsurface.pov
9 // Desc: Subsurface Scattering Demo - Candle on a Checkered Plane
11 // Auth: Christoph Lipka
13 // Recommended settings:
16 // ~4 min on a 2.3GHz AMD Phenom X4 9650 QuadCore
25 subsurface
{ samples 400, 40 }
29 // ----------------------------------------
32 location <0.0, 2.5, -4.0>
33 angle 50 // direction 1.5*z
34 right x*image_width
/image_height
35 look_at <0.5, 1.0, 0.0>
42 [0.0 rgb <0.6,0.7,1.0>]
43 [0.7 rgb <0.0,0.1,0.8>]
53 // ----------------------------------------
55 // a checkered white/"black" marble plane
61 // marble parameters derived from Jensen et al. "A Practical Model for Subsurface Light Transport", Siggraph 2001
66 [0.5 color rgb <0.83,0.79,0.75>*1.0]
67 [0.9 color rgb <0.83,0.79,0.75>*0.8]
68 [1.0 color rgb <1.00,0.75,0.70>*0.5]
79 reflection { 0.2 fresnel
}
81 subsurface
{ translucency
<0.4562, 0.3811,0.3325> }
85 pigment{ crackle turbulence 0.25
87 color_map { [0.00 color rgb<1,1,1>]
88 [0.025 color rgb<0.252,0.482,0.372>]
89 [0.05 color rgb<0.082,0.092,0.072>]
90 [0.15 color rgb<0.05,0.09,0.06>]
91 [0.52 color rgb<0.008,0.019,0.012>]
92 [0.65 color rgb<0.0025,0.0029,0.0014>]
93 [0.75 color rgb<0.0060,0.0084,0.0065>]
94 [1.00 color rgb<0.008,0.012,0.012>]
104 reflection { 0.2 fresnel
}
106 subsurface
{ translucency
<0.4562, 0.3811,0.3325> }
115 // the classic chrome sphere
116 sphere { <1.5,0.7,1>, 0.7
117 pigment { color rgb 1 }
120 specular 0.7 roughness 0.01
122 reflection { 0.7 metallic }
129 cylinder { <0.0, 0.0, 0.0>,
130 <0.0, 2.0, 0.0>, 1.0, 1.0 } // candle "body"
131 sphere { <0.0, 2.5, 0.0>, 0.8, -2.0 } // (used to shape the candle top)
132 sphere { <0.0,-0.52, 0.0>, 0.8, -2.0 } // (used to shape the candle bottom)
133 sphere { <0.0, 2.0, -0.5>, 0.1, -0.2 } // the "notch" where wax runs over
134 cylinder { <0.0, 1.88,-0.52>,
135 <0.0, 1.5, -0.52>, 0.05, 0.2 } // a streak of wax running over
136 sphere { <0.0, 1.5, -0.55>, 0.07, 0.2 } // a drop of of wax running over
139 pigment { color rgb <0.8,0.50,0.01> }
141 diffuse 0.6 specular 0.6 roughness 0.1
142 subsurface
{ translucency
<5,3,1>*0.5 }
145 interior
{ ior 1.45 }
151 box { <-1,-1,-1>, <0,1,1> }
154 translate <0.15, 1.95, 0.0>
155 pigment { color rgb 0 }
156 finish { ambient 0 diffuse 1 specular 0 }
160 // a classic-textured slab for comparison
164 pigment { color rgb <0.9,0.6,0.6> }
168 reflection { 0.2 fresnel
}
172 interior
{ ior 1.45 }
173 scale <0.25,0.05,0.25>
175 translate <1.2,0.05,0.25>