source: trunk/examples/demo/qasteroids/sprites/ship/ship.pov

Last change on this file was 160, checked in by dmik, 19 years ago

Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.

File size: 2.2 KB
Line 
1
2#version 3.0
3global_settings { assumed_gamma 2.0 }
4
5#include "colors.inc"
6#include "textures.inc"
7#include "metals.inc"
8
9camera {
10 orthographic
11 up <0, 130, 0>
12 right <130, 0, 0>
13 location <0, 0, -130>
14 look_at <0, 0, 0>
15}
16
17light_source { <50, 25, -25> colour White }
18light_source { <0, 0, -100> colour Gray80 }
19
20#declare ShipColor = color red 1.0 green 1.0 blue 0.9
21
22#declare BaseTexture =
23texture {
24 pigment { ShipColor }
25}
26
27#declare Grubby =
28texture {
29 pigment {
30 bozo
31 color_map {
32 [0.0 color rgbt <1, 1, 1, 1>]
33 [0.8 color rgbt <0.9, 0.9, 0.9, 0.5>]
34 [1.0 color rgbt <0.8, 0.8, 0.8, 0.5>]
35 }
36 turbulence 2.0
37 scale 3
38 }
39}
40
41#declare ShipTexture =
42texture { BaseTexture }
43texture { Grubby }
44
45union {
46 cone {
47 <12, 0, 0>, 0.5
48 <11, 0, 0>, 1.0
49 texture { ShipTexture }
50 }
51 cone {
52 <11, 0, 0>, 1.0
53 <8, 0, 0>, 2.0
54 texture { ShipTexture }
55 }
56 cone {
57 <8, 0, 0>, 2.0
58 <3.5, 0, 0>, 3.8
59 texture { ShipTexture }
60 }
61 difference {
62 cone {
63 <8, 0, -0.01>, 2.0
64 <3.5, 0, -0.01>, 3.8
65 pigment { color Gray20 }
66 }
67 box {
68 <9, -4.0, -3.7>,
69 <2, 4.0, 10>
70 rotate <0, -18, 0>
71 }
72 box {
73 <6.5, -4.0, -8>,
74 <10, 4.0, 8>
75 }
76 box {
77 <2, -4.0, -8>,
78 <4.5, 4.0, 8>
79 }
80 }
81 cone {
82 <3.5, 0, 0>, 3.8
83 <2, 0, 0>, 4.0
84 texture { ShipTexture }
85 }
86 cylinder {
87 <2, 0, 0>,
88 <-9, 0, 0>,
89 4.0
90 texture { ShipTexture }
91 }
92 cone {
93 <-9, 0, 0>, 4.0
94 <-10, 0, 0>, 3.5
95 texture { ShipTexture }
96 }
97 prism {
98 linear_sweep
99 linear_spline
100 0,
101 0.5,
102 4,
103 <7.5, 0>, <-7.5, 10>, <-7.5, -10>, <7.5, 0>
104 rotate <90, 0, 0>
105 texture { T_Silver_2A }
106 texture { ShipTexture }
107 }
108 prism {
109 linear_sweep
110 linear_spline
111 -0.5,
112 0.5,
113 4,
114 <4, 0>, <-7.5, 5>, <-7.5, -5>, <4, 0>
115 pigment { color White }
116 }
117 cone {
118 <-12, 0, 0>, 3.0
119 <-10, 0, 0>, 2.0
120 texture { T_Silver_2A }
121 pigment { color Gray60 }
122 }
123
124 rotate <0, 0,-360*clock>
125 scale <5, 5, 5>
126}
127
128
Note: See TracBrowser for help on using the repository browser.