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

  1. ModelBegin
  2.     ProtoBegin Facet
  3.         Vertex 0 0 0 UV 0 1
  4.         Vertex 1 0 0 UV 1 1
  5.         Vertex 1 1 0 UV 1 0
  6.         Vertex 0 1 0 UV 0 0
  7.         Quad 1 2 3 4
  8.     ProtoEnd
  9.  
  10.     ProtoBegin Floor
  11.         Translate 0 -0.453 -1.4
  12.         Surface 0.2 0.6 0.0
  13.         Color 1 1 1
  14.         Texturemode foreshorten
  15.         TransformBegin
  16.             Scale 2 2 2
  17.             Rotate 1 0 0 -90
  18.             Texture bfloor
  19.             ProtoInstanceGeometry Facet
  20.         TransformEnd
  21.         TransformBegin
  22.             Translate 2 0 0
  23.             Scale 2 2 2
  24.             Rotate 1 0 0 -90
  25.             Texture bfloor
  26.             ProtoInstanceGeometry Facet
  27.         TransformEnd
  28.         TransformBegin
  29.             Translate 0 0 -2
  30.             Scale 2 2 2
  31.             Rotate 1 0 0 -90
  32.             Texture bfloor
  33.             ProtoInstanceGeometry Facet
  34.         TransformEnd
  35.         TransformBegin
  36.             Translate 2 0 -2
  37.             Scale 2 2 2
  38.             Rotate 1 0 0 -90
  39.             Texture bfloor
  40.             ProtoInstanceGeometry Facet
  41.         TransformEnd
  42.     ProtoEnd
  43.  
  44.     ProtoBegin Ceiling
  45.         Translate 0 -0.453 -1.4
  46.         Surface 0 0 0.0
  47.         Color 0 0 0
  48.         Texturemode NULL
  49.         Texture NULL
  50.         TransformBegin
  51.             #Translate 4 0 -4
  52.             Translate 0 2 -4
  53.             Scale 4 4 4
  54.             Rotate 1 0 0 +90
  55.             ProtoInstanceGeometry Facet
  56.         TransformEnd
  57.     ProtoEnd
  58.  
  59.     ProtoBegin Hall
  60.         Translate 0 -0.453 -1.4
  61.         Surface 0.2 0.6 0.0
  62.         Color 1 1 1
  63.         Texturemode foreshorten
  64. # Left walls
  65.         TransformBegin
  66.             Scale 2 2 2
  67.             Rotate 0 1 0 90
  68.             Texture bwall20
  69.             ProtoInstanceGeometry Facet
  70.         TransformEnd
  71.         TransformBegin
  72.             Translate 0 0 -2
  73.             Scale 2 2 2
  74.             Rotate 0 1 0 90
  75.             Texture bwall21
  76.             ProtoInstanceGeometry Facet
  77.         TransformEnd
  78. #Back walls
  79.         TransformBegin
  80.             Translate 0 0 -4
  81.             Scale 2 2 2
  82.             Texture bwall20
  83.             ProtoInstanceGeometry Facet
  84.         TransformEnd
  85.         TransformBegin
  86.             Translate 2 0 -4
  87.             Scale 2 2 2
  88.             Texture bwall21
  89.             ProtoInstanceGeometry Facet
  90.         TransformEnd
  91. # Right walls
  92.         TransformBegin
  93.             Translate 4 0 0
  94.             Scale 2 2 2
  95.             Translate 0 0 -1
  96.             Rotate 0 1 0 -90
  97.             Texture bwall20
  98.             ProtoInstanceGeometry Facet
  99.         TransformEnd
  100.         TransformBegin
  101.             Translate 4 0 -2
  102.             Scale 2 2 2
  103.             Translate 0 0 -1
  104.             Rotate 0 1 0 -90
  105.             Texture bwall21
  106.             ProtoInstanceGeometry Facet
  107.         TransformEnd
  108. # Front walls (with doorway)
  109.         TransformBegin
  110.             Scale 2 2 2
  111.             Translate 1 0 0
  112.             Rotate 0 1 0 180
  113.             Texture bwall20
  114. # doorway is 0.5 * 0.734 wide  (we're scaling by 2.0 so half this)
  115. # doorway is 1.0 * 0.648 high  (we're scaling by 2.0 so half this)
  116.             Vertex 0      0      0  UV 0      1
  117.             Vertex 0.8165 0      0  UV 0.8165 1
  118.             Vertex 0.8165 0.3215 0  UV 0.8165 0.6785
  119.             Vertex 1      0.3215 0  UV 1     0.6785
  120.             Vertex 1      1      0  UV 1     0
  121.             Vertex 0      1      0  UV 0     0
  122.  
  123.             Quad 1 2 3 6
  124.             Quad 3 4 5 6
  125.         TransformEnd
  126.         TransformBegin
  127.             Translate 2 0 0
  128.             Scale 2 2 2
  129.             Translate 1 0 0
  130.             Rotate 0 1 0 180
  131.             Texture bwall21
  132.             ProtoInstanceGeometry Facet
  133.         TransformEnd
  134.  
  135.     ProtoEnd
  136.  
  137.     ClumpBegin
  138.         Hints CONTAINER
  139. # move to align door to street door in texture
  140.         Rotate 0 1 0 -90
  141.         Translate 3.0859 0.1 -2
  142.  
  143.         ProtoInstance Floor
  144.         ProtoInstance Ceiling
  145.         ProtoInstance Hall
  146.  
  147.     ClumpEnd
  148. ModelEnd
  149.