1 // This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
2 // To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
3 // letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
5 // Persistence of Vision Raytracer Scene Description File
7 // Description: Demonstrates various new float math functions and #while loop
8 // Modified for 3.5: changed "log()" to "ln()".
22 #
declare Font
="cyrvetic.ttf"
27 sphere{<Xval
,exp(Xval
),0>,Rad
pigment{color rgb<1,0.2,0>}}
30 sphere{<Xval
,pow(Xval
,-1),0>,Rad
pigment{color rgb<0.2,0.7,0>}}
33 sphere{<Xval
,pow(Xval
,2),0>,Rad
pigment{Blue
}}
34 sphere{<Xval
,pow(Xval
,3),0>,Rad
pigment{Cyan
}}
37 sphere{<Xval
,ln
(Xval
),0>,Rad
pigment{Magenta
}}
40 #
declare Xval
=Xval
+0.02;
43 text{ttf Font
"Y=exp(X)",0.1,0 translate <-6.5, 0.5,0> pigment{color rgb<1,0.2,0>}}
44 text{ttf Font
"Y=pow(X,-1)",0.1,0 translate <-6.5,-1.5,0> pigment{color rgb<0.2,0.7,0>}}
45 text{ttf Font
"Y=pow(X,2)",0.1,0 translate <-6.5, 3,0> pigment{Blue
}}
46 text{ttf Font
"Y=pow(X,3)",0.1,0 translate <-6.5,-4,0> pigment{Cyan
}}
47 text{ttf Font
"Y=ln(X)",0.1,0 translate < 2.5, 2,0> pigment{Magenta
}}
51 angle 7 // direction <0, 0, 12>
52 right x*image_width
/image_height
56 light_source { <5000, 10000, -20000> color White
}
57 light_source { <-500, -1000, 2000> color White
}
58 plane { -z, -Rad
pigment {checker color rgb <1,1,1>*1.2 color rgb <1,1,.8>} }
61 cylinder{-x*5.5,x*5.5,.1}
62 cone{-x*6.5,0,-x*5.5,.2}
63 cone{ x*6.5,0, x*5.5,.2}
77 text{ttf Font
"X",0.1,0 translate <5.5,-1,0>}
78 text{ttf Font
"Y",0.1,0 translate <-.75,4,0>}