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

  1. # RenderWare(TM) Script File
  2. # An articulated human model.
  3.  
  4. ModelBegin
  5.     ProtoBegin LeftArm
  6.     Surface 0.4 0.4 0.6
  7.     Color 1.0 0.0 1.0
  8.     LightSampling Facet
  9.     GeometrySampling Solid
  10.     Texture NULL
  11.  
  12.     TransformBegin # Upper arm
  13.         Translate 0.0 -0.25 0.0
  14.         Block 0.05 0.5 0.1
  15.     TransformEnd
  16.     Translate 0.0 -0.5 0.0
  17.     RotateJoint 1.0 0.0 0.0 -45.0
  18.     ClumpBegin     # Fore arm
  19.         LightSampling Vertex
  20.         TransformBegin
  21.             Rotate 1.0 0.0 0.0 180.0
  22.             Cone 0.4 0.03 12
  23.         TransformEnd
  24.         Translate 0.0 -0.4 0.0
  25.         RotateJoint 0.0 0.0 1.0 30.0
  26.         ClumpBegin # Hand
  27.             Color 1.0 0.0 0.0
  28.             Rotate 1.0 0.0 0.0 180.0
  29.             Cone 0.2 0.04 12
  30.         ClumpEnd
  31.     ClumpEnd
  32.     ProtoEnd
  33.  
  34.     ProtoBegin RightArm
  35.     Surface 0.4 0.4 0.6
  36.     Color 1.0 0.0 0.0
  37.     LightSampling Facet
  38.     GeometrySampling Solid
  39.     Texture NULL
  40.  
  41.     TransformBegin # Upper arm
  42.         Translate 0.0 -0.25 0.0
  43.         Block 0.08 0.5 0.1
  44.     TransformEnd
  45.     Translate 0.0 -0.5 0.0
  46.     ClumpBegin     # Fore arm
  47.         LightSampling Vertex
  48.         TransformBegin
  49.         Translate 0.0 -0.4 0.0
  50.             Cylinder 0.4 0.03 0.03 12
  51.         TransformEnd
  52.         Translate 0.0 -0.4 0.0
  53.         ClumpBegin # Hand
  54.          Color 1.0 1.0 0.0
  55.             Rotate 1.0 0.0 0.0 180.0
  56.             Cone 0.2 0.04 12
  57.         ClumpEnd
  58.     ClumpEnd
  59.     ProtoEnd
  60.  
  61.     ProtoBegin LeftLeg
  62.     # Temporary material
  63.     Surface 0.4 0.4 0.6
  64.     Color 1.0 0.0 0.0
  65.     LightSampling Facet
  66.     GeometrySampling Solid
  67.     Texture NULL
  68.     
  69.     TransformBegin    # Upper leg
  70.         Translate 0.0 -0.3 0.0
  71.         Block 0.1 0.6 0.1
  72.     TransformEnd
  73.     Translate 0.0 -0.6 0.0
  74.     ClumpBegin      # Lower leg
  75.         Color 0.0 1.0 0.0
  76.         TransformBegin
  77.             Translate 0.0 -0.25 0.0
  78.         Block 0.1 0.5 0.01
  79.         TransformEnd
  80.         Translate 0.0 -0.5 0.0
  81.         ClumpBegin    # Foot
  82.         Color 1.0 1.0 0.0
  83.         Translate 0.0 0.0 0.1
  84.         Scale 0.4 0.4 1.0
  85.         Sphere 0.1 3
  86.         ClumpEnd
  87.     ClumpEnd
  88.     ProtoEnd
  89.  
  90.     ProtoBegin RightLeg
  91.     # Temporary material
  92.     Surface 0.4 0.4 0.6
  93.     Color 1.0 0.0 1.0
  94.     LightSampling Vertex
  95.     GeometrySampling Solid
  96.     Texture NULL
  97.     
  98.     TransformBegin    # Upper leg
  99.         Translate 0.0 -0.6 0.0
  100.         Cone 0.6 0.07 12
  101.     TransformEnd
  102.     Translate 0.0 -0.6 0.0
  103.     ClumpBegin      # Lower leg
  104.         TransformBegin
  105.             Translate 0.0 -0.25 0.0
  106.             Scale 0.2 1.0 0.2
  107.         Sphere 0.25 3
  108.         TransformEnd
  109.         Translate 0.0 -0.5 0.0
  110.         ClumpBegin    # Foot
  111.         Translate 0.0 0.0 0.1
  112.         Scale 0.4 0.4 1.0
  113.         Sphere 0.1 3
  114.         ClumpEnd
  115.     ClumpEnd
  116.     ProtoEnd
  117.  
  118.     ProtoBegin Legs
  119.     # Temporary material
  120.     Surface 0.4 0.4 0.6
  121.     Color 0.0 1.0 0.0
  122.     LightSampling Facet
  123.     GeometrySampling Solid
  124.     Texture NULL
  125.  
  126.     Block 0.3 0.15 0.15 # Abdomen
  127.  
  128.     TransformBegin    # Place the right leg
  129.         Translate -0.15 0.0 0.0
  130.         ClumpBegin
  131.         ProtoInstance RightLeg
  132.         ClumpEnd
  133.     TransformEnd
  134.  
  135.     TransformBegin    # Place the left leg
  136.         Translate 0.15 0.0 0.0
  137.         ClumpBegin
  138.         ProtoInstance LeftLeg
  139.         ClumpEnd
  140.     TransformEnd
  141.     
  142.     ProtoEnd
  143.  
  144.     ProtoBegin Body
  145.     # Temporary material
  146.     Surface 0.4 0.4 0.6
  147.     Color 0.0 1.0 0.0
  148.     LightSampling Vertex
  149.     GeometrySampling Solid
  150.     Texture NULL
  151.  
  152.     ClumpBegin       # Upper body
  153.         Translate 0.0 0.55 0.0
  154.         MaterialBegin
  155.         LightSampling Facet
  156.             Block 0.5 0.02 0.2
  157.         MaterialEnd
  158.     
  159.         TransformBegin # Neck
  160.         MaterialBegin    
  161.             Color 1.0 1.0 0.0
  162.                 Translate 0.0 0.01 0.0
  163.             TransformBegin
  164.                     Cylinder 0.15 0.05 0.05 12
  165.             TransformEnd
  166.             Translate 0.0 0.15 0.0
  167.             ClumpBegin # Head
  168.                 Translate 0.0 0.15 0.05
  169.                 Scale 0.65 1.0 0.65
  170.                 Sphere 0.15 3
  171.             ClumpEnd
  172.         MaterialEnd
  173.         TransformEnd
  174.  
  175.         TransformBegin # Place the right arm
  176.         Translate -0.25 0.0 0.0
  177.         ClumpBegin
  178.             ProtoInstance RightArm
  179.         ClumpEnd
  180.         TransformEnd
  181.  
  182.         TransformBegin # Place the left arm
  183.         Translate 0.25 0.0 0.0
  184.         ClumpBegin
  185.             ProtoInstance LeftArm
  186.         ClumpEnd
  187.         TransformEnd
  188.  
  189.         TransformBegin # Upper torso
  190.             Scale 1.0 1.0 0.5
  191.         Rotate 1.0 0.0 0.0 180.0
  192.         Cone 0.5 0.2 12
  193.         TransformEnd
  194.  
  195.     ClumpEnd
  196.  
  197.     TransformBegin     # Lower torso is centre of body
  198.         MaterialBegin
  199.         Color 0.0 0.5 1.0
  200.             Scale 1.0 0.5 0.5
  201.             Sphere 0.1 3        
  202.         MaterialEnd
  203.     TransformEnd
  204.  
  205.         Translate 0.0 -0.2 0.0
  206.     ProtoInstance Legs
  207.     
  208.     ProtoEnd
  209.  
  210.     ClumpBegin
  211.     ProtoInstance Body
  212.     ClumpEnd
  213. ModelEnd
  214.