Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
q6d.inc
Go to the documentation of this file.
1 //POVRay include files
2 #include "arrays.inc"
3 #include "chars.inc"
4 #include "colors.inc"
5 #include "finish.inc"
6 #include "glass.inc"
7 #include "golds.inc"
8 #include "math.inc"
9 #include "metals.inc"
10 #include "rand.inc"
11 #include "shapes.inc"
12 #include "shapes2.inc"
13 #include "shapesq.inc"
14 #include "skies.inc"
15 #include "stoneold.inc"
16 #include "stones.inc"
17 #include "stones1.inc"
18 #include "stones2.inc"
19 #include "strings.inc"
20 #include "textures.inc"
21 #include "transforms.inc"
22 
23 #macro AXIS_POVRAY(mac_x_ver,mac_y_ver,mac_z_ver,mac_x_rot,mac_y_rot,mac_z_rot)
24 object {
25  union {
26  union {
27  cylinder{<0.,0.,0.><2500.,0.,0.> 10}
28  text { ttf "timrom.ttf" "X" 1, 0 scale <2,2,2> translate(<20, 0, 0>)}
29  texture{ pigment{rgb<1,0,0>}}
30  }
31  union {
32  cylinder{<0.,0,0.><0.,2500.,0.> 10}
33  text { ttf "timrom.ttf" "Y" 1, 0 scale <2,2,2> translate(<0, 20, 0>)}
34  texture{ pigment{rgb<0,1,0>}}
35  }
36  union {
37  cylinder{<0.,0,0.><0.,0.,2500.> 10}
38  text { ttf "timrom.ttf" "Z" 1, 0 scale <2,2,2> translate(<0, 0, 20>)}
39  texture{ pigment{rgb<0,0,1>}}
40  }
41  translate(<mac_x_ver,mac_y_ver,mac_z_ver>)
42  rotate(<mac_x_rot,mac_y_rot,mac_z_rot>)
43  }
44 }
45 #end
46 
47 
48 #macro AXIS_NED()
49 object {
50  union {
51  union {
52  cylinder{<0.,0.,0.><2500.,0.,0.> 10}
53  texture{ pigment{rgb<1,0,0>}}
54  }
55  union {
56  cylinder{<0.,0,0.><0.,2500.,0.> 10}
57  texture{ pigment{rgb<0,1,0>}}
58  }
59  union {
60  cylinder{<0.,0,0.><0.,0.,2500.> 10}
61  texture{ pigment{rgb<0,0,1>}}
62  }
63  }
64  matrix < 1, 0, 0,
65  0, 0,-1,
66  0,-1, 0,
67  0, 0, 0 >
68 }
69 #end
70 
71 
72 
73 #macro Q6D(xned, yned, zned, phi, theta, psi)
74 
75 object {
76  union {
77  box{<-250,-10,-10><0,10,10> texture{pigment{Blue}}}
78  box{<0,-10,-10><250,10,10> texture{pigment{Red}}}
79  cylinder{<-250,0,-10><-250,0,-15> 125 texture{pigment{Green}}}
80  cylinder{<250, 0,-10><250,0,-15> 125 texture{pigment{Green}}}
81 
82  box{<-10,-250,-10><10,250,10> texture{pigment{Blue}}}
83  cylinder{<0,-250,-10><0,-250,-15> 125 texture{pigment{Green}}}
84  cylinder{<0, 250,-10><0, 250,-15> 125 texture{pigment{Green}}}
85  }
86  rotate <phi,theta, psi>
87  translate <xned,yned,zned>
88  matrix < 1, 0, 0,
89  0, 0,-1,
90  0,-1, 0,
91  0, 0, 0 >
92 }
93 #end
94 
95 
96 #declare cam_x = 0;
97 #declare cam_y = 5000;
98 #declare cam_z = 20000;
99 
100 #declare cam_look_x = 0;
101 #declare cam_look_y = 0;
102 #declare cam_look_z = 0;
103 
104 #declare cam_a = 36;
105 //#declare cam_a = 10;
106 
107 camera
108 {
109  location <cam_x,cam_y,cam_z>
110  look_at <cam_look_x,cam_look_y,cam_look_z>
111  angle cam_a
112 }
113 
114 #local lgt1_pos_x = 3400;
115 #local lgt1_pos_y = 5100;
116 #local lgt1_pos_z = 2600;
117 #local lgt1_intense = 0.763488;
118 #local lgt2_pos_x = -3400;
119 #local lgt2_pos_y = 5100;
120 #local lgt2_pos_z = 2600;
121 #local lgt2_intense = 0.763488;
122 #local lgt3_pos_x = 3400;
123 #local lgt3_pos_y = 5100;
124 #local lgt3_pos_z = -1700;
125 #local lgt3_intense = 0.763488;
126 #local lgt4_pos_x = -3400;
127 #local lgt4_pos_y = 5100;
128 #local lgt4_pos_z = -1700;
129 #local lgt4_intense = 0.763488;
130 
131 light_source{<lgt1_pos_x,lgt1_pos_y,lgt1_pos_z> White*lgt1_intense}
132 light_source{<lgt2_pos_x,lgt2_pos_y,lgt2_pos_z> White*lgt2_intense}
133 light_source{<lgt3_pos_x,lgt3_pos_y,lgt3_pos_z> White*lgt3_intense}
134 light_source{<lgt4_pos_x,lgt4_pos_y,lgt4_pos_z> White*lgt4_intense}
135 
136 
137 //plane { -y, 3000 texture{T_Chrome_2D normal{waves 0.1 frequency 3000.0 scale 30.0}} translate<0,0,0>}
138 //plane { -z, 3000 texture{T_Chrome_2D normal{waves 0.1 frequency 3000.0 scale 30.0}} translate<0,0,0>}
139 
140 plane { -y, 3000 texture{T_Chrome_2D}}
141 //plane { -z, 3000 texture{T_Chrome_2D}}
142 
143 sky_sphere {pigment {Navy}
144 pigment {bozo turbulence 0.65 octaves 7 omega 0.7 lambda 2
145 color_map {
146 [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>]
147 [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>]
148 [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]}
149 scale <0.1, 0.5, 0.1>} rotate 90*z}
150 
151 background{Gray50}
static const float scale[]
float lambda