home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / 2mro / objects / cubeout.plg < prev    next >
Text File  |  1996-03-19  |  969b  |  32 lines

  1. # a cube visible from the outside, 1000x1000
  2. cubeout 8 6
  3.  
  4. # vertices:
  5. # X    Y    Z
  6.         # front face
  7.   -500   -500   -500     #VTX 0       # vertex 0
  8.    500   -500   -500     #VTX 1       # vertex 1
  9.    500    500   -500     #VTX 2       # vertex 2
  10.   -500    500   -500     #VTX 3       # vertex 3
  11.  
  12.         # back face
  13.   -500   -500    500     #VTX 4       # vertex 4
  14.    500   -500    500     #VTX 5       # vertex 5
  15.    500    500    500     #VTX 6       # vertex 6
  16.   -500    500    500     #VTX 7       # vertex 7
  17.  
  18. # polygons: all cosine-lit, assorted colors
  19. # color #verts vert1 vert2 ...
  20.  
  21. # these faces are derived from a shifted square
  22. 0x11ff   4  0  1  2  3  # front face: counterclockwise
  23. 0x12ff   4  7  6  5  4  # back face:  clockwise
  24.  
  25. # these faces are facing us in the sketch, thus are CCW
  26. 0x13ff   4  2  6  7  3  # top
  27. 0x14ff   4  1  5  6  2  # right side
  28.  
  29. # these faces are away from us in the sketch, and thus CW
  30. 0x15ff   4  0  4  5  1  # bottom
  31. 0x16ff   4  0  3  7  4  # left side
  32.