FreeCalypso > hg > tcs211-pirelli
comparison chipsetsw/drivers/drv_app/r2d/lcds/ColorBoard/Demo/demo.pov @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 // Persistence Of Vision raytracer version 3.1 sample file. | |
2 // Magnifying glass created using POV-Ray's refraction. | |
3 // A convex lens created with CSG | |
4 // (and something to view through it) | |
5 // This example doesn't work very well, but it gives a good | |
6 // starting point for a better use of the magnifying glass. | |
7 | |
8 | |
9 global_settings { assumed_gamma 2.2 } | |
10 | |
11 #include "colors.inc" | |
12 #include "shapes.inc" | |
13 #include "textures.inc" | |
14 #include "glass.inc" | |
15 #include "consts.inc" // Index of refraction constants | |
16 | |
17 camera { | |
18 location <0.0, 2, -13> | |
19 direction <0.0, 0.0, 1> | |
20 angle 40 | |
21 up <0.0, 1.0, 0.0> | |
22 right <3/4, 0.0, 0.0> | |
23 look_at <0, 0, 0> | |
24 } | |
25 | |
26 light_source { <30, 50, -50> color White } | |
27 | |
28 light_source { <-30, 10, 20> color Gray50 } | |
29 | |
30 fog { color Gray90 distance 200 } // This fog reaches max density at 200z | |
31 | |
32 // Background sphere | |
33 sphere { <0, 0, 0>, 1 | |
34 hollow on | |
35 finish { crand 0.015 } | |
36 pigment { | |
37 gradient y | |
38 color_map { | |
39 [0.0 1.0 color Blue color Black] | |
40 } | |
41 scale 10000 | |
42 } | |
43 } | |
44 | |
45 // A lens. This uses the Ellipsoid quadric to make it independantly | |
46 // scalable, but it would be faster to use spheres. | |
47 // It is designed "sideways" so you can see the thickness. | |
48 // It is then rotated 90o on Y so the viewer is looking through the lens. | |
49 #declare Lens_Thickness = 0.35; | |
50 #declare Lens_Diameter = 1.5; | |
51 | |
52 #declare Lens = | |
53 intersection { | |
54 sphere { <0, 0, 0>, 1.5 translate <0.75, 0, 0> } | |
55 sphere { <0, 0, 0>, 1.5 translate <-0.75, 0, 0> } | |
56 | |
57 interior{ior Flint_Glass_Ior} | |
58 texture { | |
59 T_Glass3 | |
60 finish { | |
61 reflection 0 // Over-ride reflection | |
62 } | |
63 } | |
64 | |
65 scale <Lens_Thickness, Lens_Diameter, Lens_Diameter> | |
66 translate clock*6*x | |
67 } | |
68 | |
69 | |
70 plane { y, -4 | |
71 pigment { | |
72 checker color Red color Green | |
73 scale <3, 1, 3> | |
74 } | |
75 finish { | |
76 ambient 0.8 | |
77 diffuse 0.6 | |
78 } | |
79 } | |
80 | |
81 object { Lens rotate 80*y } | |
82 | |
83 // A sphere in the distance | |
84 sphere { <3, 1, 30>, 2 finish {Phong_Shiny ambient 0.35} pigment {Orange} } | |
85 | |
86 object { Cylinder_X | |
87 finish { | |
88 Phong_Shiny | |
89 ambient 0.45 | |
90 diffuse 0.6 | |
91 } | |
92 pigment { | |
93 granite | |
94 scale 2 | |
95 } | |
96 | |
97 rotate -75*y | |
98 translate <0 ,-3, 25> | |
99 } |