home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / rfrobot3.rw_ / rfrobot3.bin
Text File  |  1995-11-14  |  3KB  |  134 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.     TransformEnd
  52.     ProtoEnd
  53.  
  54.     ProtoBegin Hand
  55.     Surface 0.6 0.4 0.8
  56.     Color 0.0 0.9 0.9
  57.     LightSampling Vertex
  58.     Sphere 0.15 4
  59.         TransformBegin
  60.           ClumpBegin    
  61.              Tag 5               # Tag 5 is the first finger.
  62.              Rotate 1 1 1 30
  63.              ProtoInstance Finger
  64.           ClumpEnd
  65.         TransformEnd
  66.         TransformBegin
  67.           ClumpBegin    
  68.              Tag 6               # Tag 6 is the second  finger.
  69.              Rotate 1 1 1 -30
  70.              ProtoInstance Finger
  71.           ClumpEnd
  72.         TransformEnd
  73.     TransformEnd
  74.     ProtoEnd
  75.  
  76.     ProtoBegin ForeArm
  77.     Surface 0.6 0.4 0.8
  78.     Color 0.9 0.0 0.0
  79.     LightSampling Vertex
  80.     Sphere 0.2 4
  81.     ClumpBegin
  82.         Tag 1113              # Tag for the forearm is 3
  83.         Color 0.9 0.9 0.0
  84.         Translate 0.0 0.2 0.0
  85.         Disc 0.0 -0.2 6
  86.         Cylinder 2.05 0.2 0.15 6
  87.         Disc 2.05 0.15 6
  88.         Translate 0.0 2.20 0.0
  89.         ClumpBegin
  90.             Tag 1114           # Tag for the hand is 4
  91.             ProtoInstance Hand
  92.         ClumpEnd
  93.     ClumpEnd
  94.     ProtoEnd
  95.  
  96.     ProtoBegin Arm
  97.     Surface 0.6 0.4 0.8
  98.     Color 0.0 0.9 0.0
  99.     LightSampling Vertex
  100.     ClumpBegin
  101.         Disc 0.0 -0.3 6
  102.         Cylinder 2.0 0.3 0.2 6
  103.         Disc 2.0 0.2 6
  104.         Translate 0.0 2.2 0.0
  105.         ClumpBegin
  106.             ProtoInstance ForeArm
  107.         ClumpEnd
  108.     ClumpEnd
  109.     ProtoEnd
  110.  
  111.     ClumpBegin
  112.     Translate 0.0 -3.0 -10.0
  113.     ProtoInstance Base
  114.     TransformBegin
  115.     Translate 0.0 1.2 0.0
  116.     ClumpBegin
  117.         Tag 1112           # Tag for the upper arm is 2
  118.         TransformBegin
  119.             Translate 0.0 0.3 0.0
  120.             Rotate 1 1 1 30
  121.             ProtoInstance Arm
  122.         TransformEnd
  123.         Tag 1111           # Tag for the second arm is 1
  124.         TransformBegin
  125.             Translate 0.0 0.3 0.0
  126.             Rotate 1 1 1 -30
  127.             ProtoInstance Arm
  128.         TransformEnd
  129.     ClumpEnd
  130.     TransformEnd
  131.     ClumpEnd
  132. ModelEnd
  133.  
  134.