home *** CD-ROM | disk | FTP | other *** search
- // Persistence Of Vision raytracer version 3.0 sample file.
- // File by Dan Farmer
- // Lambda/omega demonstration
-
- #version 3.0
- global_settings { assumed_gamma 2.2 }
-
- #include "colors.inc"
-
- camera {
- location <0, 0, -10>
- right x*1.3333
- angle 57
- look_at 0
- }
-
- light_source { <-20, 30, -25> rgb 1 }
-
- #declare L = clock * 3
-
- #declare Font="cyrvetic.ttf"
-
- union {
- text{ ttf Font
- concat("lambda=",str(L,1,2)),0.1,0
- scale <1.25, 1.25, 2>
- translate <-3, 1, -1>
- pigment { White }
- }
- box { <-4,-0.5, -1> <4, 0.5, 1>
- pigment {
- gradient y
- turbulence 1
- lambda L
- color_map {
- [0.2 SteelBlue ]
- [0.5 White ]
- [0.9 Red ]
- }
- scale 0.5
- }
- }
- translate y*1.35
- }
-
- #declare O = clock
- union {
- text{ ttf Font
- concat("omega=",str(O,1,2)),0.1,0
- scale <1.25, 1.25, 2>
- translate <-3, 1, -1>
- pigment { White }
- }
- box { <-4,-0.5, -1> <4, 0.5, 1>
- pigment {
- gradient y
- turbulence 1
- omega O
- color_map {
- [0.2 SteelBlue ]
- [0.5 White ]
- [0.9 Red ]
- }
- scale 0.5
- }
- }
- translate -y*1.35
- }
-
- plane { z, 10 pigment { Plum }}
-