+ | Map changing

This commit is contained in:
RedShip
2025-02-04 18:56:10 +01:00
committed by tomoron
parent e10e8e4cfc
commit 3b3813793f
5 changed files with 18 additions and 9 deletions

View File

@ -23,7 +23,6 @@ class Quad : public Object
float x, y, z; float x, y, z;
float x1, y1, z1; float x1, y1, z1;
float x2, y2, z2; float x2, y2, z2;
bool double_face;
int mat_index; int mat_index;
if (!(line >> x >> y >> z)) if (!(line >> x >> y >> z))

View File

@ -2,14 +2,14 @@ CAM -2.41462 2.57199 4.09049 -1.80012 -50.2012 0.02 2.973 45.75
MAT 20 20 20 0. 0.9 0.5 // 0 gray MAT 20 20 20 0. 0.9 0.5 // 0 gray
# pl 0 5.2 0 0 -1 0 0 // floor # pl 0 5.2 0 0 -1 0 0 // floor
qu -5 5 -5 0 0 10 10 0 0 0 qu -5 5 -5 0 0 10 10 0 0 0 0
MAT 255 100 100 1.0 0.0 0.0 //1 red MAT 255 100 100 1.0 0.0 0.0 //1 red
MAT 100 100 255 1.0 0.0 0.0 //2 blue MAT 100 100 255 1.0 0.0 0.0 //2 blue
po -0.75 1.5 5 0 1.5 0 1.5 0 0 1 2 po -0.75 1.5 5 0 1.5 0 1.5 0 0 0 2
po -0.75 10 2.4 0 1.5 0 1.5 0 0 1 1 po -0.75 10 2.4 0 1.5 0 1.5 0 0 0 1
MAT 200 200 200 0. 0. 0. // 3 white MAT 200 200 200 0. 0. 0. // 3 white
@ -19,7 +19,7 @@ cu 0 10 0 5 5 5 3
sp 0 10 0 1 4 sp 0 10 0 1 4
OBJ scenes/obj/lambo.obj 0 1.5 0 1 0 0 0 OBJ obj/lambo.obj 0 1.5 0 1 0 0 0

View File

@ -7,14 +7,24 @@ MAT 200 200 200 0 0 0 // 2 portal
pl 0 0 0 0 1 0 0 pl 0 0 0 0 1 0 0
# long tunnel
po -1.5 0 4.5 3 0 0 0 3 0 0 2 po -1.5 0 4.5 3 0 0 0 3 0 0 2
po -1.5 0 -4.5 3 0 0 0 3 0 1 2 po -1.5 0 -4.5 3 0 0 0 3 0 1 2
qu -1.5 0 -5 0 3 0 0 0 10 0 1 qu -1.5 0 -5 0 3 0 0 0 10 0 1
qu 1.5 0 -5 0 3 0 0 0 10 0 1 qu 1.5 0 -5 0 3 0 0 0 10 0 1
qu -1.5 3 -5 3 0 0 0 0 10 0 1 qu -1.5 3 -5 3 0 0 0 0 10 0 1
# small tunnel
qu 9.5 0 -1 0 3 0 0 0 2 0 1
qu 12.5 0 -1 0 3 0 0 0 2 0 1
qu 9.5 3 -1 3 0 0 0 0 2 0 1
cu 10 1.5 0 3 3 5 1 # small tunnel entrance
po 9.5 0 1 3 0 0 0 3 0 0 2
po -1.5 0 4.49 3 0 0 0 3 0 1 2
#small tunnel entrace behind
po 9.5 0 -1 3 0 0 0 3 0 1 2
po -1.5 0 -4.49 3 0 0 0 3 0 0 2

View File

@ -18,7 +18,7 @@ pl 0 0 0 0 1 0 0
cu 0 0.5 0 1 1 1 1 cu 0 0.5 0 1 1 1 1
sp 0 1.5 0 1 1 sp 0 1.5 0 1 1
qu -1 4 -1 2 0 0 0 0 2 2 qu -1 4 -1 2 0 0 0 0 2 1 2
cu 0 2.5 0 5 5 5 1 cu 0 2.5 0 5 5 5 1

View File

@ -9,7 +9,7 @@ MAT 255 255 100 0.0 0.0 0.0 //yellow
MAT 50 50 50 0.0 0.0 0.0 //gray MAT 50 50 50 0.0 0.0 0.0 //gray
qu -1 2.5 -1 2 0 0 0 0 2 0 qu -1 2.5 -1 2 0 0 0 0 2 0 0
pl 0 3 0 0 -1 0 1 pl 0 3 0 0 -1 0 1
pl 0 -3 0 0 1 0 6 pl 0 -3 0 0 1 0 6