home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / rfrobot2.rw_ / rfrobot2.bin
Text File  |  1995-11-14  |  3KB  |  122 lines

  1. # Simple hierarchical model of a robot arm for RenderWare(tm).
  2.  
  3. ModelBegin
  4.     GeometrySampling Solid
  5.  
  6.     ProtoBegin Base
  7.     LightSampling Facet
  8.     Surface 0.7 0.6 0.8
  9.     Color 0.0 0.0 1.0
  10.     Cylinder 0.2 1.0 0.5 12
  11.     Translate 0.0 0.2 0.0
  12.     Cylinder 1.0 0.5 0.3 12
  13.     Translate 0.0 1.0 0.0
  14.     Color 0.9 0.0 0.0
  15.     LightSampling Vertex
  16.     Hemisphere 0.3 3
  17.     ProtoEnd
  18.  
  19.     ProtoBegin UpperFinger
  20.     Surface 0.5 0.7 0.3
  21.     Color 1.0 0.8 0.0
  22.     LightSampling Facet
  23.     ClumpBegin
  24.         Tag 7           # Tag 7 is the upper finger
  25.         Color 0.5 0.7 0.3
  26.         LightSampling Facet
  27.         Translate 0.0 0.2 0.0
  28.         Block 0.3 0.3 0.1
  29.     ClumpEnd
  30.     ProtoEnd
  31.  
  32.     ProtoBegin Finger
  33.     Surface 0.5 0.7 0.3
  34.     Color 1.0 0.8 0.0
  35.     LightSampling Facet
  36.     Translate 0.0 0.35 0.0
  37.     Block 0.3 0.4 0.1
  38.     TransformBegin
  39.         Translate 0.0 0.2 0.0
  40.         TransformBegin
  41.         Color 0.9 0.0 0.0
  42.         LightSampling Vertex
  43.         Rotate 0.0 0.0 1.0 90.0
  44.         Translate 0.05 -0.15 0.0
  45.         Cylinder 0.3 0.05 0.05 6
  46.         Disc 0.0 -0.05 6
  47.         Disc 0.3 0.05 6
  48.         TransformEnd
  49.                   Translate 0.0 0.05 0.0
  50.          ProtoInstance UpperFinger
  51.     
  52. TransformEnd
  53.     ProtoEnd
  54.  
  55.     ProtoBegin Hand
  56.     Surface 0.6 0.4 0.8
  57.     Color 0.9 0.0 0.0
  58.     LightSampling Vertex
  59.     Sphere 0.15 3
  60.     TransformBegin
  61.         ClumpBegin    
  62.         Tag 5               # Tag 5 is the first finger.
  63.         ProtoInstance Finger
  64.         ClumpEnd
  65.         ClumpBegin
  66.         Tag 6               # Tag 6 is the second finger.
  67.         ProtoInstance Finger
  68.         ClumpEnd
  69.     TransformEnd
  70.     ProtoEnd
  71.  
  72. ProtoBegin ForeArm
  73.     Surface 0.6 0.4 0.8
  74.     Color 0.9 0.0 0.0
  75.     LightSampling Vertex
  76.     Sphere 0.2 3
  77.     ClumpBegin
  78.         Tag 1113              # Tag for the forearm is 3
  79.         Color 0.9 0.9 0.0
  80.         Translate 0.0 0.2 0.0
  81.         Disc 0.0 -0.2 6
  82.         Cylinder 2.05 0.2 0.15 6
  83.         Disc 2.05 0.15 6
  84.         Translate 0.0 2.20 0.0
  85.         ClumpBegin
  86.             Tag 1114           # Tag for the hand is 4
  87.             ProtoInstance Hand
  88.         ClumpEnd
  89.     ClumpEnd
  90.     ProtoEnd
  91. ProtoBegin Arm
  92.     Surface 0.6 0.4 0.8
  93.     Color 0.0 0.9 0.0
  94.     LightSampling Vertex
  95.     ClumpBegin
  96.         Disc 0.0 -0.3 6
  97.         Cylinder 2.0 0.3 0.2 6
  98.         Disc 2.0 0.2 6
  99.         Translate 0.0 2.2 0.0
  100.         ProtoInstance ForeArm
  101.     ClumpEnd
  102.     ProtoEnd
  103.  
  104.     ClumpBegin
  105.     ProtoInstance Base
  106.     TransformBegin
  107.     Translate 0.0 1.2 0.0
  108.     ClumpBegin
  109.         Tag 1112           # Tag for the upper arm is 2
  110.         TransformBegin
  111.             Translate 0.0 0.3 0.0
  112.             ProtoInstance Arm
  113.         TransformEnd
  114.         Tag 1111           # Tag for the second arm is 1
  115.         Translate 0.0 0.3 0.0
  116.         ProtoInstance Arm
  117.     ClumpEnd
  118.     TransformEnd
  119.     ClumpEnd
  120. ModelEnd
  121.  
  122.