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

  1. ModelBegin
  2.  
  3.     ProtoBegin Facet
  4.         Vertex 0 0 0 UV 0 1
  5.         Vertex 1 0 0 UV 1 1
  6.         Vertex 1 1 0 UV 1 0
  7.         Vertex 0 1 0 UV 0 0
  8.         Quad 1 2 3 4
  9.     ProtoEnd
  10.  
  11.     ProtoBegin FillFloor
  12.         TransformBegin
  13.         Rotate 0 1 0 -90
  14.         Surface 0.0 0.0 0.0
  15.         Color 0 0 0
  16.         Texturemode NULL
  17.         Texture NULL
  18.         Scale 1 1 1
  19.  
  20.         Vertex -0.5 0 -3
  21.         Vertex 0 0 -3
  22.         Vertex 0 0 3
  23.         Vertex -0.5 0 3
  24.         Quad 4 3 2 1
  25.         TransformEnd
  26.     ProtoEnd
  27.  
  28.  
  29.     ProtoBegin FixWall
  30.         TransformBegin
  31. #        Rotate 0 1 0 -90
  32.         Surface 0.3 0.7 0.0
  33.         Color 1 1 1
  34.         Texturemode NULL
  35.         Texture wall770
  36.         Scale 1 1 1
  37. #        Translate -0.5 0 -3
  38.  
  39.         Vertex 0 0 0 UV 0 1
  40.         Vertex 0.5 0 0 UV 0.5 1
  41.         Vertex 0.5 1 0 UV 0.5 0
  42.         Vertex 0 1 0 UV 0 0
  43.         Quad 1 2 3 4
  44.  
  45.         TransformEnd
  46.  
  47.         TransformBegin
  48. #        Rotate 0 1 0 -90
  49.         Surface 0.3 0.7 0.0
  50.         Color 1 1 1
  51.         Texturemode NULL
  52.         Texture wall761
  53. #        Translate -0.5 1 -3
  54.         Translate 0 1 0
  55.         Scale 2 2 2
  56.  
  57.         Vertex 0 0 0 UV 0.5 1
  58.         Vertex 0.25 0 0 UV 0.75 1
  59.         Vertex 0.25 1 0 UV 0.75 0
  60.         Vertex 0 1 0 UV 0.5 0
  61.         Quad 5 6 7 8
  62.  
  63.         TransformEnd
  64.     ProtoEnd
  65.  
  66.     ProtoBegin Door
  67. # left door
  68.         Vertex 0   0   0.10 UV 0.086 1
  69.         Vertex 0.5 0.0 0.10 UV 0.453 1
  70.         Vertex 0   1.0 0.10 UV 0.086 0.352
  71.  
  72.         Vertex 0.5 0.0 0.05
  73.         Vertex 0   1.0 0.05
  74.         Vertex 0   0   0.05
  75.  
  76.         Vertex 0.5 1.0 0.05
  77.         Vertex 0   0   0.00
  78.         Vertex 0.5 1.0 0.00
  79.  
  80. #right door
  81.         Vertex 0.5 0   0.10 UV 0.453 1     # 10
  82.         Vertex 0.5 1.0 0.10 UV 0.453 0.352
  83.         Vertex 0   1.0 0.10 UV 0.086 0.352
  84.  
  85.         Vertex 0.5 0.0 0.05
  86.         Vertex 0.5 1.0 0.05
  87.         Vertex 0   1.0 0.05
  88.  
  89.         Vertex 0   0   0.05
  90.         Vertex 0.5 1.0 0.00
  91.         Vertex 0   0   0.00
  92.  
  93. # first the blast door
  94.         Surface 0.5 0.5 0.7
  95.         Color 0.5 1 0.5
  96.         Triangle 6 8 9       # left inner edge
  97.         Triangle 6 9 7
  98.         Triangle 18 16 14    # right inner edge
  99.         Triangle 18 14 17
  100.         Triangle 6 7 5       # left blast door
  101.         Triangle 16 13 14    # right blast door
  102.  
  103.         Triangle 2 4 5       # left outer edge
  104.         Triangle 2 5 3
  105.         Triangle 13 10 12    # right outer edge
  106.         Triangle 13 12 15
  107.  
  108. # then the outer door
  109.         Surface 0.2 0.7 0.0
  110.         Color 1 0 0
  111.         Texturemode foreshorten
  112.         Texture wall130
  113.         Triangle 1 2 3
  114.         Triangle 10 11 12
  115.  
  116. # reverse door
  117. #        Color 0 1 0
  118. #        Quad 5 14 13 6
  119.     ProtoEnd
  120.  
  121.     ProtoBegin EndWall
  122.         Surface 0.3 0.7 0.0
  123.         Color 1 1 1
  124.         Texturemode foreshorten
  125.         Texture NULL
  126.         TransformBegin
  127.             ProtoInstanceGeometry Facet
  128.             Translate 1 0 0
  129.  
  130.             ProtoInstanceGeometry Facet
  131.             Translate 1 0 0
  132.  
  133.             ProtoInstanceGeometry Facet
  134.             Translate 1 0 0
  135.  
  136.             ProtoInstanceGeometry Facet
  137.         TransformEnd
  138.         Translate 0 1 0
  139.         TransformBegin
  140.             Texture wall201
  141.             ProtoInstanceGeometry Facet
  142.             Translate 1 0 0
  143.  
  144.             Texture wall211
  145.             ProtoInstanceGeometry Facet
  146.             Translate 1 0 0
  147.  
  148.             Texture wall221
  149.             ProtoInstanceGeometry Facet
  150.             Translate 1 0 0
  151.  
  152.             Texture wall231
  153.             ProtoInstanceGeometry Facet
  154.         TransformEnd
  155.         Translate 0 1 0
  156. # lower resolution upper storeys
  157.         TransformBegin
  158.             Scale 2 2 2
  159.             Texture wall202 Mask wall202m
  160.             ProtoInstanceGeometry Facet
  161.             Translate 1 0 0
  162.  
  163.             Texture wall222 Mask wall222m
  164.             ProtoInstanceGeometry Facet
  165.         TransformEnd
  166.     ProtoEnd
  167.  
  168.     ProtoBegin Fence
  169.         Surface 0.3 0.7 0.0
  170.         Color 1 1 1
  171.         Texturemode foreshorten
  172.         Texture fence
  173.         Scale 1 1.1 1
  174.         ProtoInstanceGeometry Facet
  175.         Translate 1 0 0
  176.         ProtoInstanceGeometry Facet
  177.     ProtoEnd
  178.  
  179.     ProtoBegin Fence2
  180.         Surface 0.3 0.7 0.0
  181.         Color 1 1 1
  182.         Texturemode foreshorten
  183.         Texture fence2 Mask fence2m
  184.         Scale 1 1.1 1
  185.         ProtoInstanceGeometry Facet
  186.         Translate 1 0 0
  187.         ProtoInstanceGeometry Facet
  188.     ProtoEnd
  189.  
  190.     ProtoBegin LightCluster
  191. # This will be used for the Billboard lights
  192. # ... note Tagged polys, for 'flickering' the light
  193.     Vertex -0.1 0.025 -0.025
  194.     Vertex  0.1 0.025 -0.025
  195.     Vertex  0.1 0.025  0.025
  196.     Vertex -0.1 0.025  0.025
  197.  
  198.     Vertex -0.1 -0.025 -0.025
  199.     Vertex  0.1 -0.025 -0.025
  200.     Vertex  0.1 -0.025  0.025
  201.     Vertex -0.1 -0.025  0.025
  202.  
  203.     Vertex  0.9 0.025 -0.025
  204.     Vertex  1.1 0.025 -0.025
  205.     Vertex  1.1 0.025  0.025
  206.     Vertex  0.9 0.025  0.025
  207.  
  208.     Vertex  0.9 -0.025 -0.025
  209.     Vertex  1.1 -0.025 -0.025
  210.     Vertex  1.1 -0.025  0.025
  211.     Vertex  0.9 -0.025  0.025
  212.  
  213.     Quad 1 5 8 4
  214.     Quad 2 3 7 6
  215.     Quad 3 4 8 7
  216.     Quad 5 6 7 8     Tag 1
  217.     Quad 9 13 16 12
  218.     Quad 10 11 15 14
  219.     Quad 11 12 16 15
  220.     Quad 13 14 15 16 Tag 2
  221.     ProtoEnd
  222.  
  223.     ProtoBegin BillboardWithLamps
  224.     Surface 0.3 0.7 0.0
  225.     Color 1 1 1
  226.     Texturemode foreshorten
  227.  
  228.     TransformBegin        # left poster.  We'll animate
  229.         Texture bbleft    # the 'bbleft' texture to 'flicker'
  230.         ProtoInstanceGeometry Facet
  231.     TransformEnd
  232.     TransformBegin        # right poster. We'll also animate
  233.         Translate 1 0 0    # the 'bbrite' texture to 'flicker'
  234.         Texture bbrite
  235.         ProtoInstanceGeometry Facet
  236.     TransformEnd
  237.     TransformBegin        # left post
  238.           Translate 0.2 -1 0
  239.         Scale 0.1 1 1
  240.         MaterialBegin
  241.             Texture NULL
  242.         ProtoInstanceGeometry Facet
  243.         MaterialEnd
  244.     TransformEnd
  245.     TransformBegin        # right post
  246.           Translate 1.7 -1 0
  247.         Scale 0.1 1 1
  248.         MaterialBegin
  249.             Texture NULL
  250.             ProtoInstanceGeometry Facet
  251.         MaterialEnd
  252.     TransformEnd
  253.     TransformBegin        # Light cluster, with tagged polys
  254.         Translate 0.5 0.9 0.05
  255.         MaterialBegin
  256.         Texture NULL
  257.         Surface 0.3 0.8 0.0
  258.         Color 1.0 1.0 0.0
  259.             ProtoInstanceGeometry LightCluster
  260.         MaterialEnd
  261.     TransformEnd
  262.     ProtoEnd
  263.  
  264.     ProtoBegin LeftWall1
  265.         Surface 0.05 0.6 0.0
  266.         Color 1 1 1
  267.         Texturemode foreshorten
  268.         Translate 0 0.1 0
  269.         TransformBegin
  270.             Texture wall100
  271.             ProtoInstanceGeometry Facet
  272.             Translate 1 0 0
  273.  
  274.             Texture wall110
  275.             ProtoInstanceGeometry Facet
  276.             Translate 1 0 0
  277.  
  278.             Texture wall120
  279.             ProtoInstanceGeometry Facet
  280.             Translate 1 0 0
  281.  
  282.    # we need a door opening here
  283.             Texture wall130
  284.  
  285.             Vertex 0 0 0 UV 0 1
  286.             Vertex 1 0 0 UV 1 1
  287.             Vertex 1 1 0 UV 1 0
  288.             Vertex 0 1 0 UV 0 0
  289.  
  290.             Vertex 0.086 0     0 UV 0.086 1
  291.             Vertex 0.086 0.648 0 UV 0.086 0.352
  292.             Vertex 0.453 0.648 0 UV 0.453 0.352
  293.             Vertex 0.453 0     0 UV 0.453 1
  294.  
  295.             Quad 1 5 6 4
  296.             Quad 6 7 3 4
  297.             Quad 7 8 2 3
  298.  
  299.         TransformEnd
  300.         Translate 0 1 0
  301. # lower resolution upper storeys
  302.         TransformBegin
  303.             Scale 2 2 2
  304.             Texture wall101
  305.             ProtoInstanceGeometry Facet
  306.             Translate 1 0 0
  307.  
  308.             Texture wall121
  309.             ProtoInstanceGeometry Facet
  310.         TransformEnd
  311.     ProtoEnd
  312.  
  313.     ProtoBegin LeftWall2
  314.         Surface 0.05 0.6 0.0
  315.         Color 1 1 1
  316.         Texturemode foreshorten
  317.  
  318.         Translate 0 0.1 0
  319.         TransformBegin
  320.             Texture wall140
  321.             ProtoInstanceGeometry Facet
  322.             Translate 1 0 0
  323.  
  324.             Texture wall150
  325.             ProtoInstanceGeometry Facet
  326.             Translate 1 0 0
  327.  
  328.             Texture wall160
  329.             ProtoInstanceGeometry Facet
  330.             Translate 1 0 0
  331.  
  332.             Texture wall170
  333.             ProtoInstanceGeometry Facet
  334.         TransformEnd
  335.         Translate 0 1 0
  336. # lower resolution upper storeys
  337.         TransformBegin
  338.             Scale 2 2 2
  339.             Texture wall141
  340.             ProtoInstanceGeometry Facet
  341.             Translate 1 0 0
  342.  
  343.             Texture wall161
  344.             ProtoInstanceGeometry Facet
  345.         TransformEnd
  346.     ProtoEnd
  347.  
  348.     ProtoBegin LeftWall3
  349.         Surface 0.05 0.6 0.0
  350.         Color 1 1 1
  351.         Texturemode foreshorten
  352.  
  353.         Translate 0 0.1 0
  354.         TransformBegin
  355.             Texture wall180
  356.             ProtoInstanceGeometry Facet
  357.             Translate 1 0 0
  358.  
  359.             Texture wall190
  360.             ProtoInstanceGeometry Facet
  361.             Translate 1 0 0
  362.  
  363.             Texture wall1a0
  364.             ProtoInstanceGeometry Facet
  365.             Translate 1 0 0
  366.  
  367.             Texture wall1b0
  368.             ProtoInstanceGeometry Facet
  369.         TransformEnd
  370.         Translate 0 1 0
  371. # lower resolution upper storeys
  372.         TransformBegin
  373.             Scale 2 2 2
  374.             Texture wall181
  375.             ProtoInstanceGeometry Facet
  376.             Translate 1 0 0
  377.  
  378.             Texture wall1a1
  379.             ProtoInstanceGeometry Facet
  380.         TransformEnd
  381.     ProtoEnd
  382.  
  383.     ProtoBegin RiteWall1
  384.         Surface 0.05 0.6 0.0
  385.         Color 1 1 1
  386.         Texturemode foreshorten
  387.  
  388.         Translate 0 0.1 0
  389.         TransformBegin
  390.             Texture wall700
  391.             ProtoInstanceGeometry Facet
  392.             Translate 1 0 0
  393.  
  394.             Texture wall710
  395.             ProtoInstanceGeometry Facet
  396.             Translate 1 0 0
  397.  
  398.             Texture wall720
  399.             ProtoInstanceGeometry Facet
  400.             Translate 1 0 0
  401.  
  402.             Texture wall730
  403.             ProtoInstanceGeometry Facet
  404.         TransformEnd
  405.         Translate 0 1 0
  406. # lower resolution upper storeys
  407.         TransformBegin
  408.             Scale 2 2 2
  409.             Texture wall701
  410.             ProtoInstanceGeometry Facet
  411.             Translate 1 0 0
  412.  
  413.             Texture wall721
  414.             ProtoInstanceGeometry Facet
  415.         TransformEnd
  416.     ProtoEnd
  417.  
  418.     ProtoBegin RiteWall2
  419.         Surface 0.05 0.6 0.0
  420.         Color 1 1 1
  421.         Texturemode foreshorten
  422.  
  423.         Translate 0 0.1 0
  424.         TransformBegin
  425.             Texture wall740
  426.             ProtoInstanceGeometry Facet
  427.             Translate 1 0 0
  428.  
  429.             Texture wall750
  430.             ProtoInstanceGeometry Facet
  431.             Translate 1 0 0
  432.  
  433.             Texture wall760
  434.             ProtoInstanceGeometry Facet
  435.             Translate 1 0 0
  436.  
  437.             Texture wall770
  438.             ProtoInstanceGeometry Facet
  439.         TransformEnd
  440.         Translate 0 1 0
  441. # lower resolution upper storeys
  442.         TransformBegin
  443.             Scale 2 2 2
  444.             Texture wall741
  445.             ProtoInstanceGeometry Facet
  446.             Translate 1 0 0
  447.  
  448.             Texture wall761
  449.             ProtoInstanceGeometry Facet
  450.         TransformEnd
  451.     ProtoEnd
  452.  
  453.     ProtoBegin RiteWall3
  454.         Surface 0.05 0.6 0.0
  455.         Color 1 1 1
  456.         Texturemode foreshorten
  457.  
  458.         Translate 0 0.1 0
  459.         TransformBegin
  460.             Texture wall780
  461.             ProtoInstanceGeometry Facet
  462.             Translate 1 0 0
  463.  
  464.             Texture wall790
  465.             ProtoInstanceGeometry Facet
  466.             Translate 1 0 0
  467.  
  468.             Texture wall7a0
  469.             ProtoInstanceGeometry Facet
  470.             Translate 1 0 0
  471.  
  472.             Texture wall7b0
  473.             ProtoInstanceGeometry Facet
  474.         TransformEnd
  475.         Translate 0 1 0
  476. # lower resolution upper storeys
  477.         TransformBegin
  478.             Scale 2 2 2
  479.             Texture wall781
  480.             ProtoInstanceGeometry Facet
  481.             Translate 1 0 0
  482.  
  483.             Texture wall7a1
  484.             ProtoInstanceGeometry Facet
  485.         TransformEnd
  486.     ProtoEnd
  487.  
  488.     ProtoBegin RoadSlice
  489.         Surface 0.05 0.6 0.0
  490.         Color 1 1 1
  491.         Texturemode foreshorten
  492.         Texture road
  493.         Scale 2 2 2
  494.  
  495.         Vertex -1.0 0.05 0 UV 0 0
  496.         Vertex -0.6 0.05 0 UV 0.2 0
  497.         Vertex -0.6 0.01 0 UV 0.2 0
  498.         Vertex  0.6 0.01 0 UV 0.8 0
  499.         Vertex  0.6 0.05 0 UV 0.8 0
  500.         Vertex  1.0 0.05 0 UV 1 0
  501.  
  502.         Vertex -1.0 0.05 2 UV 0 1
  503.         Vertex -0.6 0.05 2 UV 0.2 1
  504.         Vertex -0.6 0.01 2 UV 0.2 1
  505.         Vertex  0.6 0.01 2 UV 0.8 1
  506.         Vertex  0.6 0.05 2 UV 0.8 1
  507.         Vertex  1.0 0.05 2 UV 1 1
  508.  
  509.         Quad 1 7 8 2
  510.         Quad 3 9 10 4
  511.         Quad 5 11 12 6
  512.  
  513. # inside curb is untextured
  514.         Texture NULL
  515.         Surface 0.2 0.6 0.0
  516.         Color 1 1 1
  517.         Quad 4 10 11 5
  518.         Quad 2 8 9 3
  519.     ProtoEnd
  520.  
  521.     ClumpBegin
  522.         Hints NULL
  523.         TransformBegin
  524.  
  525. # sliding door
  526.             TransformBegin
  527.                 Rotate 0 1 0 -90
  528.                 Translate 3.0859 0.1 -2.05
  529.                 Scale 0.734 0.648 0.5
  530.                 ProtoInstance Door
  531.             TransformEnd
  532.  
  533.             TransformBegin
  534.                 Hints NULL
  535.                 ProtoInstance FillFloor
  536.             TransformEnd
  537.  
  538. #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  539.  
  540.             TransformBegin
  541.                 Rotate 0 1 0 -90
  542.                 Translate -0.5 0 -3
  543.                 ProtoInstance FixWall
  544.             TransformEnd
  545.  
  546.             TransformBegin
  547.                 Rotate 0 1 0 90
  548.                 Translate 0 0 -3
  549.                 ProtoInstance FixWall
  550.             TransformEnd
  551.  
  552.  
  553. #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  554.  
  555.             TransformBegin
  556.                 Scale 1.5 1 1
  557.                 Translate -2 0 -0.5
  558.                 ProtoInstance EndWall
  559.             TransformEnd
  560.  
  561.             TransformBegin
  562.                 Scale 2 1 1
  563.                 Translate -1 0 0
  564.             ProtoInstance Fence
  565.             TransformEnd
  566.  
  567.         TransformBegin
  568.         Scale 1 1 1
  569.         Rotate 0 1 0 180
  570.         Translate -1 1.5 -12.2
  571.         ProtoInstance BillboardWithLamps
  572.         TransformEnd
  573.  
  574.         TransformBegin
  575.         Scale 2 1 1
  576.         Rotate 0 1 0 180
  577.         Translate -1 0 -12
  578.         ProtoInstance Fence2
  579.         TransformEnd
  580.  
  581. # wall has a whole for door to show thru
  582.             TransformBegin
  583.                 Rotate 0 1 0 -90
  584.                 Translate 0 0 -2
  585.                 ProtoInstance LeftWall1
  586.             TransformEnd
  587.  
  588.  
  589.             TransformBegin
  590.                 Rotate 0 1 0 90
  591.                 Translate -4 0 -2
  592.                 ProtoInstance RiteWall3
  593.             TransformEnd
  594.  
  595.             ProtoInstance RoadSlice
  596.  
  597.         Translate 0 0 4
  598.  
  599.             TransformBegin
  600.                 Rotate 0 1 0 -90
  601.                 Translate 0 0 -2
  602.                 ProtoInstance LeftWall2
  603.             TransformEnd
  604.  
  605.             TransformBegin
  606.                 Rotate 0 1 0 90
  607.                 Translate -4 0 -2
  608.                 ProtoInstance RiteWall2
  609.             TransformEnd
  610.  
  611.             ProtoInstance RoadSlice
  612.  
  613.         Translate 0 0 4
  614.  
  615.             TransformBegin
  616.                 Rotate 0 1 0 -90
  617.                 Translate 0 0 -2
  618.                 ProtoInstance LeftWall3
  619.             TransformEnd
  620.  
  621.             TransformBegin
  622.                 Rotate 0 1 0 90
  623.                 Translate -4 0 -2
  624.                 ProtoInstance RiteWall1
  625.             TransformEnd
  626.  
  627.             ProtoInstance RoadSlice
  628.  
  629.     TransformEnd
  630.  
  631.  
  632.     ClumpEnd
  633. ModelEnd
  634.  
  635.