home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Homebrewer's Handbook
/
vr.iso
/
2mro
/
objects
/
cubeall.plg
< prev
next >
Wrap
Text File
|
1996-03-19
|
1KB
|
43 lines
# a cube visible from the outside and inside, 10000x10000
cubeall 8 12
# vertices:
# X Y Z
# front face
-500 -500 -500 #VTX 0 # vertex 0
500 -500 -500 #VTX 1 # vertex 1
500 500 -500 #VTX 2 # vertex 2
-500 500 -500 #VTX 3 # vertex 3
# back face
-500 -500 500 #VTX 4 # vertex 4
500 -500 500 #VTX 5 # vertex 5
500 500 500 #VTX 6 # vertex 6
-500 500 500 #VTX 7 # 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