home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / vr386 / rooms / sample.wld < prev    next >
Text File  |  1996-03-19  |  7KB  |  261 lines

  1. #
  2. # SAMPLE.WLD
  3. #
  4. # A sample set of rooms
  5. #
  6. # Created by Bernie Roehl, June 1992 for use with the REND386 package.
  7. # For more information, contact broehl@sunee.uwaterloo.ca
  8. #
  9.  
  10. loadpath sample
  11.  
  12. worldscale 1.0            # 1.0 mm per unit
  13.  
  14. hither            10    # anything closer than this gets clipped
  15. yon         20000000    # anything farther than this doesn't get rendered
  16.  
  17. #start 7800,1600,1300 -77,0,0 2  # starting location, orientation and zoom
  18. camera 1 7800,1600,1300 0,-77,0 2  # starting location, orientation and zoom
  19. camera 2 -6241 12600 14285 43.945312 118.312500 0.000000 2.000000
  20.  
  21. #ambient 76
  22.  
  23. # Surface definitions:
  24.  
  25. surfacedef plaster   0x1fd8
  26. surfacedef brick     0x11ff
  27. surfacedef wood      0x12df
  28. surfacedef painted   0x13f8
  29. surfacedef glass1    0x3e00
  30. surfacedef glass2    0x3a00
  31. surfacedef tin       12
  32. surfacedef carpet    0x4a
  33. surfacedef greypaint 239
  34. surfacedef grain     0x14e8
  35. surfacedef artwork   4
  36. surfacedef beige     0xfd
  37. surfacedef blue      8    #123
  38. surfacedef red       9    #123
  39. surfacedef orange    10    #123
  40. surfacedef cobble    239
  41. surfacedef marble    0x1Df8
  42. surfacedef steel1    0x28eF
  43. surfacedef steel2    0x25eF
  44. surfacedef teak      0x12ff
  45. surfacedef mirror    0x2a00
  46.  
  47. # Surface mappings:
  48.  
  49. surfacemap single1
  50. surface 1 plaster
  51.  
  52. surfacemap single2
  53. surface 1 brick
  54.  
  55. surfacemap single3
  56. surface 1 wood
  57.  
  58. surfacemap double1
  59. surface 1 painted
  60. surface 2 brick
  61.  
  62. surfacemap double2
  63. surface 1 brick
  64. surface 2 painted
  65.  
  66. surfacemap double3
  67. surface 2 plaster
  68. surface 1 painted
  69.  
  70. surfacemap double4
  71. surface 2 plaster
  72. surface 1 brick
  73.  
  74. surfacemap wind1
  75. surface 1 plaster
  76. surface 2 glass1
  77. surface 3 brick
  78. surface 4 mirror
  79. surface 5 tin
  80.  
  81. surfacemap wind2
  82. surface 1 painted
  83. surface 2 glass1
  84. surface 3 tin
  85. surface 4 glass2
  86. surface 5 wood
  87.  
  88.  
  89. surfacemap floorgrey
  90. surface 1 carpet
  91.  
  92. surfacemap ceilgrey
  93. surface 1 greypaint
  94.  
  95. surfacemap roadcolors
  96. surface 1 cobble
  97.  
  98. surfacemap rugcolors
  99. surface 1 beige
  100. surface 2 blue
  101. surface 3 red
  102. surface 4 orange
  103.  
  104. surfacemap piccolors
  105. surface 1 grain
  106. surface 2 artwork
  107. surface 3 mirror
  108. surface 4 marble
  109. surface 5 steel2
  110.  
  111. surfacemap pic2colors
  112. surface 1 teak
  113. surface 2 mirror
  114.  
  115. surfacemap basecolors
  116. surface 1 marble
  117. surface 2 marble
  118. surface 3 marble
  119. surface 4 marble
  120. surface 5 marble
  121. surface 6 marble
  122.  
  123. surfacemap sculptcolors
  124. surface 1 steel1
  125. surface 2 steel2
  126.  
  127. # Splits and associated surfaces:
  128.  
  129. split 0,0,0 0,1,0        # 0  (floor plane)
  130. polyobj 4 carpet 800,0,0      800,0,2800   4000,0,2800  4000,0,0
  131. polyobj 6 carpet 4000,0,2800  4000,0,4800  5600,0,4800  8800,0,4800  8800,0,0    4000,0,0
  132. polyobj 6 carpet 0,0,4800     0,0,10400    2400,0,10400 5600,0,10400 5600,0,4800 4000,0,4800
  133. polyobj 4 carpet 5600,0,10400 8800,0,10400 8800,0,4800  5600,0,4800
  134. polyobj 5 carpet 2400,0,12800 8800,0,12800 8800,0,10400 5600,0,10400 2400,0,10400
  135.  
  136. split 0,2400,0 0,1,0     #    (ceiling plane)
  137. polyobj 4 greypaint 4000,2400,0     4000,2400,2800    800,2400,2800   800,2400,0
  138. polyobj 6 greypaint 4000,2400,0     8800,2400,0     8800,2400,4800  5600,2400,4800  4000,2400,4800  4000,2400,2800
  139. polyobj 6 greypaint 4000,2400,4800  5600,2400,4800  5600,2400,10400 2400,2400,10400 0,2400,10400    0,2400,4800
  140. polyobj 4 greypaint 5600,2400,4800  8800,2400,4800  8800,2400,10400 5600,2400,10400
  141. polyobj 5 greypaint 2400,2400,10400 5600,2400,10400 8800,2400,10400 8800,2400,12800 2400,2400,12800
  142.  
  143.  
  144. split 8800,1,0 1,0,0     # 1
  145. object bigwin 1,1,1 0,0,0     8800,0,0        0  wind2
  146. object wall1  80,48,4 0,90,0 8800,0,12800    0  single3   fixed  # H
  147.  
  148. split 0,1,0 0,0,1        # 2
  149. object wall1  80,48,4  0,180,0 8800,0,0       0  single2   fixed  # I
  150.  
  151. split 0,1,10400 0,0,1    # 3
  152. object wall2  56,48,4  0,0,0   0,0,10400      0  double1   fixed  # B
  153.  
  154. split 2401,10,11000 1,0,0 # 4
  155. object bigwin 1,1,0.5 0,180,0 2400,0,12800    0  wind2     fixed  # F
  156.  
  157. split 2500,1,12800 0,0,1 # 5
  158. object wall1  64,48,4  0,0,0   2400,0,12800   0  single1   fixed  # G
  159.  
  160. split 0,1,4000 1,0,0     # 6
  161. object wall1  56,48,4  0,-90,0  0,0,4800       0  single1   fixed  # A
  162.  
  163. split 100,1,4800 0,0,1   # 7
  164. object wall2  56,48,4  0,0,0   0,0,4800       0  double2   fixed  # C
  165.  
  166. split 4000,1,2000 1,0,0  # 8
  167. object wall2  20,48,4  0,-90,0  4000,0,2800    0  double1   fixed  # L
  168.  
  169. split 800,1,2800 0,0,1   # 9
  170. object window1 32,48,4 0,0,0   800,0,2800     0  wind2     fixed  # K
  171.  
  172. split 5600,1,5000 1,0,0  # 10
  173. object wall2  8,48,4   0,-90,0  5600,0,4800    0  double4   fixed  # E
  174. object wall2  16,12,4  0,-90,0  5600,1800,5600 0  double4   fixed  # M
  175. object window2 32,48,4 0,90,0 5600,0,10400   0  wind1     fixed  # D
  176.  
  177. split 800,1,0 1,0,0      # 11
  178. object wall1  28,48,4  0,-90,0  800,0,0        0  single1   fixed  # J
  179.  
  180. split 3000,1430,11000 0,1,0  # shelf 3 split
  181. split 6000,1430,6000 0,1,0   # shelf 4 split
  182.  
  183. split 3000,1430,6000 0,1,0   # shelf 2 split
  184.  
  185. endsplits
  186.  
  187.  
  188. # Areas:
  189.  
  190. area 200,1500,5000      Office
  191. area 6800,10,8000       Hall-lo
  192. area 6800,1500,8000     Hall-hi
  193. area 1000,10,1000       Gallery
  194. area 6800,1500,2000  Playroom-hi
  195. area 7000,10,11000   Sunroom-lo
  196. area 7000,1500,11000 Sunroom-hi
  197. area 1000,10,3000    Backyard
  198. area 0,10,11000      Forest
  199. area 9000,10,8000    Outside1
  200. area 4000,10,-1000   Outside2
  201. area 7000,10,15000   Outside3
  202. area -100,10,100     Outside4
  203. area 0,-100,0        Underground
  204. area 0,2500,0        Sky
  205.  
  206. # A road outside:
  207.  
  208. object floor   40,1,20  0,0,0   8800,0,6000     0  roadcolors fixed
  209. object floor   40,1,20  0,-45,0  12800,0,6000    0  roadcolors fixed
  210. object floor   40,1,20  0,-90,0  15628,0,8828    0  roadcolors fixed
  211. object floor   400,1,20 0,0,0   13628,0,12828   0  roadcolors fixed
  212.  
  213. # Now for some furnishings:
  214.  
  215. object rug     10,1,10  0,-90,0  7500,1,7500     0  rugcolors
  216. object art     20,20,1  0,180,0 6500,1200,5     0  piccolors
  217. object picture 20,20,1  0,180,0 4000,1200,4805  0  pic2colors
  218. object vwlogo  6,6,6    0,180,0   4500,1800,10406   0  pic2colors
  219.  
  220. object shelf 4,2,2 0,-90,0 0,1400,5800     256  . fixed
  221. object shelf 3,2,2 0,0,0 3500,1400,12800  256  . fixed
  222. object shelf 4,2,2 0,90,0 8800,1400,8000 256  . fixed
  223.  
  224. # The following were all created using IRIT:
  225.  
  226. # A small forest:
  227. object tree2     12,12,12        0,0,0     800,1,12000   0
  228. object tree2     8,8,8           0,0,0    -800,1,14000   0
  229. object tree2     14,16,14        0,0,0   -1200,1,19000   0
  230.  
  231. # A big fir tree:
  232. object fir2 1,1,1  0,0,0  12000,0,3800 256 . fixed
  233.  
  234. # A toy:
  235. object c6=ccone6  .05,.05,.05  0,0,0    7500,50,1400   0
  236.  
  237. # Some furniture:
  238. object sofa       1,1,1           0,45,0  6500,1,12000   0  sofacolors
  239. object sculpbase=block 6,10,6     0,0,0    4400,1,3800    0  basecolors
  240. object mh=methead  4,4,4        0,180,0   300,1100,300    0 . sculpbase
  241. object desk3 1.5,1.3,1 0,0,0 3400,0,9680  256 . fixed
  242. object lamp=lamp .1,.1,.1 0,0,0 700,0,9500 256
  243.  
  244. # stuff on shelves, etc
  245.  
  246. object cone6    .02,.02,.02  0,0,0   4250,1440,12500   0
  247. object metlcube 2,5,3        0,-30,0  8500,1440,7000    0
  248. object wedge    3,2,3        0,-30,0   700,1440,6000    256
  249. object ball6    6,6,6        0,0,0   4200,1000,10000   0
  250.  
  251. # el roboto:
  252.  
  253. figure mm=metalman 1.3,1.5,1.3 0,-90,0 1400,800,1200
  254.  
  255. # Tasks:
  256.  
  257. task sculspin 25 c6;0,-15,0
  258. task sculspin 25 mh;0,8,0
  259.  
  260. # End of sample.wld
  261.