home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Zone
/
VRZONE.ISO
/
mac
/
PC
/
REND386
/
VR386
/
CUBEALL.PLG
< prev
next >
Wrap
Text File
|
1993-04-18
|
1KB
|
45 lines
# a cube visible from the outside and inside, 10000x10000
cubeall 8 12
# vertices:
# X Y Z
# front face
-5000 -5000 -5000 # vertex 0
5000 -5000 -5000 # vertex 1
5000 5000 -5000 # vertex 2
-5000 5000 -5000 # vertex 3
# back face
-5000 -5000 5000 # vertex 4
5000 -5000 5000 # vertex 5
5000 5000 5000 # vertex 6
-5000 5000 5000 # vertex 7
# polygons: all cosine-lit, assorted colors
# color #verts vert1 vert2 ...
# these faces are derived from a shifted square
0x11ff 4 0 1 2 3 # front face: counterclockwise
0x12ff 4 7 6 5 4 # back face: clockwise
# these faces are facing us in the sketch, thus are CCW
0x13ff 4 2 6 7 3 # top
0x14ff 4 1 5 6 2 # right side
# these faces are away from us in the sketch, and thus CW
0x15ff 4 0 4 5 1 # bottom
0x16ff 4 0 3 7 4 # left side
# faces with vertex order reversed let cube be seen from the inside
0x11ff 4 3 2 1 0 # front wall
0x12ff 4 4 5 6 7 # back wall
0x13ff 4 3 7 6 2 # top
0x14ff 4 2 6 5 1 # right side
0x15ff 4 1 5 4 0 # bottom
0x16ff 4 4 7 3 0 # left side