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

  1. ModelBegin
  2.     ClumpBegin
  3.         Scale 0.1 0.1 0.1
  4.         Translate 0.0 0.0 0.1
  5.         
  6.         # Outer edge of the body.
  7.         Vertex -0.5 0.25  0.75 UV 0.0 1.0 # 1
  8.         Vertex  0.5 0.25  0.75 UV 1.0 1.0 # 2
  9.         Vertex -0.5 0.25 -0.75 UV 1.0 1.0 # 3
  10.         Vertex  0.5 0.25 -0.75 UV 0.0 1.0 # 4
  11.  
  12.         # Top of the roll bar.
  13.         Vertex -0.5 0.5 -0.55 UV 1.0 0.0 # 5
  14.         Vertex  0.5 0.5 -0.55 UV 0.0 0.0 # 6
  15.         Vertex -0.5 0.5 -0.65 UV 1.0 0.0 # 7
  16.         Vertex  0.5 0.5 -0.65 UV 0.0 0.0 # 8
  17.  
  18.         # Top of the bonnet.
  19.         Vertex -0.45 0.4 0.2 UV 0.0 0.0 # 9
  20.         Vertex  0.45 0.4 0.2 UV 1.0 0.0 # 10
  21.  
  22.         # Inside of the car.
  23.         Vertex -0.5 0.25 0.1     # 11
  24.         Vertex  0.5 0.25 0.1     # 12
  25.         Vertex -0.5 0.25 -0.45   # 13
  26.         Vertex  0.5 0.25 -0.45   # 14
  27.  
  28.         # Bumper round the car.
  29.         Vertex -0.5 0.21 0.75    # 15
  30.         Vertex  0.5 0.21 0.75    # 16
  31.         Vertex -0.5 0.21 0.1     # 17
  32.         Vertex  0.5 0.21 0.1     # 18
  33.         Vertex -0.5 0.21 -0.45   # 19
  34.         Vertex  0.5 0.21 -0.45   # 20
  35.         Vertex -0.5 0.21 -0.75   # 21
  36.         Vertex  0.5 0.21 -0.75   # 22
  37.  
  38.         # Base of car.
  39.         Vertex -0.35 0.05 0.50   # 23
  40.         Vertex  0.35 0.05 0.50   # 24
  41.         Vertex -0.35 0.05 0.10   # 25
  42.         Vertex  0.35 0.05 0.10   # 26
  43.         Vertex -0.35 0.05 -0.45  # 27
  44.         Vertex  0.35 0.05 -0.45  # 28
  45.         Vertex -0.35 0.05 -0.65  # 29
  46.         Vertex  0.35 0.05 -0.65  # 30
  47.         
  48.         # Anchor point on the the back of the roll
  49.         # bar to assist in texturing
  50.  
  51.         # Car's materials.
  52.         Surface 0.7 0.3 0.0
  53.         Color 1.0 0.0 0.0
  54.  
  55.         # Rear of the roll bar.
  56.         MaterialBegin
  57.             TextureModes Foreshorten
  58.             Texture back
  59.             Quad 4 3 7 8
  60.         MaterialEnd
  61.  
  62.         # Top of the roll bar.
  63.            Quad 5 6 8 7
  64.  
  65.         # Bonnet of the car.
  66.         MaterialBegin
  67.             TextureModes Foreshorten
  68.             Texture bonnet
  69.             Quad 1 2 10 9
  70.         MaterialEnd
  71.  
  72.         # Dash.
  73.         Quad 12 11 9 10
  74.  
  75.         # Seating area.
  76.         MaterialBegin
  77.             Surface 0.0 0.0 0.0
  78.             Color 0.0 0.0 0.0
  79.             Quad 11 12 14 13
  80.         MaterialEnd
  81.  
  82.         # Inside of roll bar.
  83.         Quad 13 14 6 5
  84.  
  85.         # Upper left wing.
  86.         Triangle 2 12 10
  87.  
  88.         # Upper right wing.
  89.         Triangle 11 1 9
  90.  
  91.         # Left side of roll bar.
  92.         Quad 14 4 8 6
  93.  
  94.         # Right side of roll bar.
  95.         Quad 3 13 5 7
  96.  
  97.         # The bumper.
  98.         MaterialBegin
  99.             Surface 0.4 0.6 0.0
  100.             Color   0.0 0.0 0.0
  101.  
  102.             Quad 15 16 2 1
  103.             Quad 16 18 12 2
  104.             Quad 18 20 14 12
  105.             Quad 20 22 4 14
  106.             Quad 22 21 3 4
  107.             Quad 21 19 13 3
  108.             Quad 19 17 11 13
  109.             Quad 17 15 1 11
  110.         MaterialEnd
  111.  
  112.         # The bottom sides of the car.
  113.         Quad 23 24 16 15
  114.         Quad 24 26 18 16
  115.         Quad 26 28 20 18
  116.         Quad 28 30 22 20        
  117.         Quad 30 29 21 22
  118.         Quad 29 27 19 21
  119.         Quad 27 25 17 19
  120.         Quad 25 23 15 17
  121.         
  122.         # The bottom of the car.
  123.         MaterialBegin
  124.             Surface 0.0 0.0 0.0
  125.             Color   0.0 0.0 0.0
  126.             Quad 30 29 23 24
  127.         MaterialEnd
  128.     ClumpEnd
  129. ModelEnd
  130.  
  131.