Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
q3d.inc
Go to the documentation of this file.
1 
2 //POVRay include files
3 #include "arrays.inc"
4 #include "chars.inc"
5 #include "colors.inc"
6 #include "finish.inc"
7 #include "glass.inc"
8 #include "golds.inc"
9 #include "math.inc"
10 #include "metals.inc"
11 #include "rand.inc"
12 #include "shapes.inc"
13 #include "shapes2.inc"
14 #include "shapesq.inc"
15 #include "skies.inc"
16 #include "stoneold.inc"
17 #include "stones.inc"
18 #include "stones1.inc"
19 #include "stones2.inc"
20 #include "strings.inc"
21 #include "textures.inc"
22 #include "transforms.inc"
23 
24 
25 #macro Q3D()
26 union {
27  box{<-250,-10,-10><250,10,10> texture{pigment{Red}}}
28  cylinder{<-250,10,0><-250,15,0> 125 texture{pigment{Green}}}
29  cylinder{<250,10,0><250,15,0> 125 texture{pigment{Green}}}
30 
31  box{<-10,-10,-250><10,10,250> texture{pigment{Red}}}
32  cylinder{<0,10,-250><0,15,-250> 125 texture{pigment{Green}}}
33  cylinder{<0,10, 250><0,15, 250> 125 texture{pigment{Green}}}
34 
35 }
36 #end
37 
38 #declare cam_x = 0;
39 #declare cam_y = 5000;
40 #declare cam_z = 20000;
41 
42 #declare cam_look_x = 0;
43 #declare cam_look_y = 0;
44 #declare cam_look_z = 0;
45 
46 #declare cam_a = 32;
47 //#declare cam_a = 10;
48 
49 camera
50 {
51  location <cam_x,cam_y,cam_z>
52  look_at <cam_look_x,cam_look_y,cam_look_z>
53  angle cam_a
54 }
55 
56 #local lgt1_pos_x = 3400;
57 #local lgt1_pos_y = 5100;
58 #local lgt1_pos_z = 2600;
59 #local lgt1_intense = 0.763488;
60 #local lgt2_pos_x = -3400;
61 #local lgt2_pos_y = 5100;
62 #local lgt2_pos_z = 2600;
63 #local lgt2_intense = 0.763488;
64 #local lgt3_pos_x = 3400;
65 #local lgt3_pos_y = 5100;
66 #local lgt3_pos_z = -1700;
67 #local lgt3_intense = 0.763488;
68 #local lgt4_pos_x = -3400;
69 #local lgt4_pos_y = 5100;
70 #local lgt4_pos_z = -1700;
71 #local lgt4_intense = 0.763488;
72 
73 light_source{<lgt1_pos_x,lgt1_pos_y,lgt1_pos_z> White*lgt1_intense}
74 light_source{<lgt2_pos_x,lgt2_pos_y,lgt2_pos_z> White*lgt2_intense}
75 light_source{<lgt3_pos_x,lgt3_pos_y,lgt3_pos_z> White*lgt3_intense}
76 light_source{<lgt4_pos_x,lgt4_pos_y,lgt4_pos_z> White*lgt4_intense}
77 
78 
79 //plane { -y, 3000 texture{T_Chrome_2D normal{waves 0.1 frequency 3000.0 scale 30.0}} translate<0,0,0>}
80 //plane { -z, 3000 texture{T_Chrome_2D normal{waves 0.1 frequency 3000.0 scale 30.0}} translate<0,0,0>}
81 
82 plane { -y, 3000 texture{T_Chrome_2D}}
83 //plane { -z, 3000 texture{T_Chrome_2D}}
84 
85 sky_sphere {pigment {Navy}
86 pigment {bozo turbulence 0.65 octaves 7 omega 0.7 lambda 2
87 color_map {
88 [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>]
89 [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>]
90 [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]}
91 scale <0.1, 0.5, 0.1>} rotate 90*z}
92 
93 background{Gray50}
static const float scale[]