1 | <?lua |
---|
2 | include("hudtemplates3.oxo") |
---|
3 | include("stats.oxo") |
---|
4 | include("templates/lodinformation.oxt") |
---|
5 | include("templates/spaceship_swallow.oxt") |
---|
6 | include("templates/spaceship_pirate.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | <Level |
---|
12 | name = "Planet_Demo" |
---|
13 | description = "Demonstration of planets with high resolution." |
---|
14 | |
---|
15 | > |
---|
16 | <templates> |
---|
17 | <Template link=lodtemplate_default /> |
---|
18 | </templates> |
---|
19 | |
---|
20 | <Scene |
---|
21 | ambientlight = "0.5, 0.5, 0.5" |
---|
22 | skybox = "Orxonox/skypanoramagen1" |
---|
23 | > |
---|
24 | |
---|
25 | <AmbientSound ambientSource="AlphaCentauri.ogg" looping="true" playOnLoad="true" /> |
---|
26 | <Light type=directional position="-10000,-10000,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
27 | |
---|
28 | <?lua |
---|
29 | planetsize=4000 |
---|
30 | ?> |
---|
31 | |
---|
32 | <SpawnPoint position="<?lua print(math.sin(1.5) *(2)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> |
---|
33 | |
---|
34 | |
---|
35 | <Planet position="0,0,0" scale="<?lua print(planetsize) ?>" pitch=-90 mesh="Muunilinst.mesh" atmosphere="atmosphere1" rotationaxis="0,1,0" rotationrate="0.2" atmospheresize=300.0f imagesize=1024.0f /> |
---|
36 | |
---|
37 | <Planet position="<?lua print(3*planetsize) ?>,0,0" scale=1000 pitch=30 mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f /> |
---|
38 | |
---|
39 | <Planet position="0,<?lua print(3*planetsize) ?>,0" scale=1000 pitch=30 mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f /> |
---|
40 | |
---|
41 | <Planet position="0,0,<?lua print(3*planetsize) ?>" scale=1000 pitch=30 mesh="Planet3.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f /> |
---|
42 | |
---|
43 | </Scene> |
---|
44 | </Level> |
---|