comparison chipsetsw/drivers/drv_app/r2d/lcds/ColorPC/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/2, 0.0, 0.0>
23 look_at <0, 0, 0>
24
25 }
26
27 light_source { <30, 50, -50> color White }
28
29 light_source { <-30, 10, 20> color Gray50 }
30
31 fog { color Gray90 distance 200 } // This fog reaches max density at 200z
32
33 // Background sphere
34 sphere { <0, 0, 0>, 1
35 hollow on
36 finish { crand 0.015 }
37 pigment {
38 gradient y
39 color_map {
40 [0.0 1.0 color Blue color Black]
41 }
42 scale 10000
43 }
44 }
45
46 // A lens. This uses the Ellipsoid quadric to make it independantly
47 // scalable, but it would be faster to use spheres.
48 // It is designed "sideways" so you can see the thickness.
49 // It is then rotated 90o on Y so the viewer is looking through the lens.
50 #declare Lens_Thickness = 0.35;
51 #declare Lens_Diameter = 1.5;
52
53 #declare Lens =
54 intersection {
55 sphere { <0, 0, 0>, 1.5 translate <0.75, 0, 0> }
56 sphere { <0, 0, 0>, 1.5 translate <-0.75, 0, 0> }
57
58 interior{ior Flint_Glass_Ior}
59 texture {
60 T_Glass3
61 finish {
62 reflection 0 // Over-ride reflection
63 }
64 }
65
66 scale <Lens_Thickness, Lens_Diameter, Lens_Diameter>
67 translate clock*6*x
68 }
69
70
71 plane { y, -4
72 pigment {
73 checker color Red color Green
74 scale <3, 1, 3>
75 }
76 finish {
77 ambient 0.8
78 diffuse 0.6
79 }
80 }
81
82 object { Lens rotate 80*y }
83
84 // A sphere in the distance
85 sphere { <3, 1, 30>, 2 finish {Phong_Shiny ambient 0.35} pigment {Orange} }
86
87 object { Cylinder_X
88 finish {
89 Phong_Shiny
90 ambient 0.45
91 diffuse 0.6
92 }
93 pigment {
94 granite
95 scale 2
96 }
97
98 rotate -75*y
99 translate <0 ,-3, 25>
100 }