~ubuntu-branches/ubuntu/oneiric/airstrike/oneiric

« back to all changes in this revision

Viewing changes to pov/bonus-machine.pov

  • Committer: Bazaar Package Importer
  • Author(s): Sven Velt
  • Date: 2004-02-03 00:25:29 UTC
  • Revision ID: james.westby@ubuntu.com-20040203002529-6n4ejqo7nyqh2hu0
Tags: upstream-0.99+1.0pre6a
ImportĀ upstreamĀ versionĀ 0.99+1.0pre6a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Bonus machine animation for airstrike
 
3
 *
 
4
 * (w) 2002 by Eero Tamminen
 
5
 */
 
6
 
 
7
#declare XMAX=1.2;
 
8
#declare XMIN=-XMAX;
 
9
#declare YMAX=0.8;
 
10
#declare YMIN=-YMAX;
 
11
 
 
12
#include "scene.inc"
 
13
#include "colors.inc"
 
14
#include "finish.inc"
 
15
 
 
16
 
 
17
#declare cap =
 
18
difference {
 
19
        sphere {
 
20
                0, 1
 
21
        }
 
22
        box {
 
23
                <1.1, 0, 1.1>, <-1.1, -1.1, -1.1>
 
24
        }
 
25
        sphere {
 
26
                0, 0.9
 
27
        }
 
28
#if (clock > 0)
 
29
        sphere {
 
30
                0, 1
 
31
                // widens
 
32
                scale <clock, 1, 2>
 
33
                translate y
 
34
        }
 
35
#end
 
36
        pigment {
 
37
                color rgbt <1, 1, 2, 0.9 - clock/2>
 
38
        }
 
39
}
 
40
 
 
41
#declare base =
 
42
superellipsoid {
 
43
        <0.2, 0.4>
 
44
        pigment { color Plum }
 
45
        scale <1.1, 0.2, 1.1>
 
46
        translate -0.18 * y
 
47
}
 
48
 
 
49
// bonus machine
 
50
union {
 
51
        object { cap }
 
52
        object { base }
 
53
        rotate 180 * x
 
54
        translate 0.3 * y
 
55
        finish {
 
56
               Glossy
 
57
               phong 0.5
 
58
        }
 
59
}