home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwdos / roomsky.rwx < prev    next >
Text File  |  1995-02-15  |  4KB  |  149 lines

  1. ModelBegin
  2.     ClumpBegin # room (+/- 1.0, +/- 0.5, +/- 1.0)
  3.  
  4.     Surface 0.1 0.6 0.0
  5.     Color 0 1 0
  6.     TextureModes foreshorten
  7.         Hints hs container
  8.  
  9.         Vertex  4.0 -0.5 4.0 UV 1 0    # 1
  10.         Vertex  4.0 -0.5 0.0 UV 1 1
  11.         Vertex  0.0 -0.5 0.0 UV 0 1
  12.         Vertex  0.0 -0.5 4.0 UV 0 0
  13. texturedithering off
  14.     Texture rug
  15.         Quad 1 2 3 4        # floor
  16.  texturedithering on
  17.         Vertex  4.0 -0.5 4.0 UV 1 0    # 5
  18.         Vertex  4.0  2.0 4.0 UV 1 1
  19.         Vertex  4.0  2.0 0.0 UV 0 1
  20.         Vertex  4.0  0.5 0.0 UV 0 0.4
  21.         Vertex  4.0  0.5 1.0 UV 0.25 0.4
  22.         Vertex  4.0 -0.5 1.0 UV 0.25 0
  23.  
  24.     Texture coppeel3
  25.         Polygon 6  5 6 7 8 9 10        # right (doored) wall
  26.  
  27.         Vertex  4.0 -0.5 0.0 UV 1 0    # 11
  28.         Vertex  4.0  2.0 0.0 UV 1 1
  29.         Vertex  0.0  2.0 0.0 UV 0 1
  30.         Vertex  0.0 -0.5 0.0 UV 0 0
  31.  
  32.         Quad 11 12 13 14               # front wall
  33.  
  34.         Vertex  0.0 -0.5 0.0 UV 1 0    # 15
  35.         Vertex  0.0  2.0 0.0 UV 1 1
  36.         Vertex  0.0  2.0 4.0 UV 0 1
  37.         Vertex  0.0 -0.5 4.0 UV 0 0
  38.  
  39.         Quad 15 16 17 18    # right wall
  40.  
  41.         Vertex  1.0 -0.5 4.0 UV 0.25 0    # 19
  42.         Vertex  1.0  0.5 4.0 UV 0.25 0.4
  43.         Vertex  0.0  0.5 4.0 UV 0 0.4
  44.         Vertex  0.0  2.0 4.0 UV 0 1
  45.         Vertex  4.0  2.0 4.0 UV 1 1
  46.         Vertex  4.0 -0.5 4.0 UV 1 0
  47.  
  48.         Polygon 6  19 20 21 22 23 24   # back (doored) wall
  49.  
  50.         Vertex  4.0  2.0 4.0 UV 1 0    # 25
  51.         Vertex  4.0  2.0 0.0 UV 1 1
  52.         Vertex  0.0  2.0 0.0 UV 0 1
  53.         Vertex  0.0  2.0 4.0 UV 0 0
  54.  
  55.         Vertex  3.0  2.0 3.0 UV 0.75 0.25    # 29
  56.         Vertex  3.0  2.0 1.0 UV 0.75 0.75
  57.         Vertex  1.0  2.0 1.0 UV 0.25 0.75
  58.         Vertex  1.0  2.0 3.0 UV 0.25 0.25
  59.  
  60.     Texture stone003
  61.         Quad 25 29 30 26
  62.         Quad 26 30 31 27
  63.         Quad 27 31 32 28
  64.         Quad 28 32 29 25
  65.         
  66.         Vertex  3.0  2.5 3.0            # 33
  67.         Vertex  3.0  2.5 1.0
  68.         Vertex  1.0  2.5 1.0
  69.         Vertex  1.0  2.5 3.0
  70.         Texture NULL
  71.         Color 1 1 0
  72.         Quad 29 33 34 30
  73.         Quad 30 34 35 31
  74.         Quad 31 35 36 32
  75.         Quad 32 36 33 29
  76.  
  77.     ClumpEnd
  78. ModelEnd
  79.  
  80. ModelBegin
  81.     ClumpBegin # roomsky (+/- 1.0, +/- 0.5, +/- 1.0)
  82.  
  83.     Scale 2 1 2
  84.     Translate 1 0 1
  85.  
  86.         Vertex -1.0 -0.5 -1.0 UV 0 1
  87.         Vertex -1.0 -0.5  1.0 UV 0 0
  88.         Vertex  1.0 -0.5  1.0 UV 1 0
  89.         Vertex  1.0 -0.5 -1.0 UV 1 1  # floor
  90.  
  91.         Vertex -1.0  0.5 -1.0 UV 0 1  # 5
  92.         Vertex -1.0  0.5  1.0 UV 0 0
  93.         Vertex  1.0  0.5  1.0 UV 1 0
  94.         Vertex  1.0  0.5 -1.0 UV 1 1  # roof outer
  95.  
  96.         Vertex -0.4  0.5 -0.4 UV 0.25 0.75  # 9
  97.         Vertex -0.4  0.5  0.4 UV 0.25 0.25
  98.         Vertex  0.4  0.5  0.4 UV 0.75 0.25
  99.         Vertex  0.4  0.5 -0.4 UV 0.75 0.75  # roof inner
  100.  
  101.         Vertex -0.35  0.7 -0.35   # 13
  102.         Vertex -0.35  0.7  0.35
  103.         Vertex  0.35  0.7  0.35
  104.         Vertex  0.35  0.7 -0.35   # roof lip
  105.  
  106.         Vertex -1.0 -0.5 -1.0 UV 0 0  # 17
  107.         Vertex -1.0 -0.5  1.0 UV 1 0
  108.         Vertex -1.0  0.5 -1.0 UV 0 1
  109.         Vertex -1.0  0.5  1.0 UV 1 1  # left wall
  110.         Vertex  1.0 -0.5  1.0 UV 0 0  # 21
  111.         Vertex  1.0 -0.5 -1.0 UV 1 0
  112.         Vertex  1.0  0.5  1.0 UV 0 1
  113.         Vertex  1.0  0.5 -1.0 UV 1 1  # right wall
  114.         Vertex -1.0 -0.5 -1.0 UV 0 0  # 23
  115.     Vertex  0.5 -0.5 -1.0 UV 1 0
  116.     Vertex  0.5  0.5 -1.0 UV 0 1
  117.         Vertex -1.0  0.5 -1.0 UV 1 1  # back wall (doored)
  118.         Vertex  1.0 -0.5  1.0 UV 0 0  # 27
  119.     Vertex -0.5 -0.5  1.0 UV 1 0
  120.     Vertex -0.5  0.5  1.0 UV 0 1
  121.         Vertex  1.0  0.5  1.0 UV 1 1  # front wall (doored)
  122.  
  123.         Hints CONTAINER hs
  124.     TextureModes foreshorten
  125.     Texture stone002
  126.         Quad 1 2 3 4     # floor
  127.  
  128.         Texture stone003
  129.         Quad 8 7 11 12
  130.     Quad 7 6 10 11
  131.     Quad 6 5 9 10
  132.     Quad 5 8 12 9     # four roof parts
  133.  
  134.     Texture NULL
  135.     Color 1 0 0
  136.     Surface 0.3 0.5 0.0
  137.     Quad 12 11 15 16
  138.     Quad 11 10 14 15
  139.     Quad 10 9 13 14
  140.     Quad 9 12 16 13
  141.  
  142.     Texture stone006
  143.         Quad 18 17 19 20  # left wall
  144.         Quad 22 21 23 24  # right wall
  145.         Quad 25 26 27 28  # back wall (doored)
  146.         Quad 29 30 31 32  # front wall (doored)
  147.     ClumpEnd
  148. ModelEnd
  149.