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

  1. ModelBegin
  2.  
  3.     ProtoBegin Base
  4.     Surface 0.7 0.6 0.8
  5.     Color 0.0 0.0 1.0
  6.     Cylinder 0.2 1.0 0.5 12    #translate for the second base cylinder
  7.     Translate 0.0 0.2 0.0
  8.     Cylinder 1.0 0.5 0.3 12
  9.     Translate 0.0 1.0 0.0    #translate for the hemisphere base
  10.     Color 0.9 0.0 0.0
  11.     Hemisphere 0.3 3
  12.     ProtoEnd
  13.  
  14. ProtoBegin ForeArm
  15.     Surface 0.6 0.4 0.8
  16.     Color 0.9 0.0 0.0
  17.     Sphere 0.2 3        #draw the lower arm/forearm joint sphere
  18.     ClumpBegin
  19.         Tag 3              # Tag for the forearm is 3
  20.         Color 0.9 0.9 0.0
  21.         Translate 0.0 0.2 0.0    #translate for the one end of the cylinder
  22.         Disc 0.0 -0.2 6        #cap the one end of the forearm
  23.         Cylinder 2.05 0.2 0.15 6    #draw the forearm
  24.         Disc 2.05 0.15 6        #cap the other end of the forearm
  25.     ClumpEnd
  26.     ProtoEnd
  27.  
  28.    ProtoBegin Arm
  29.     Surface 0.6 0.4 0.8
  30.     Color 0.0 0.9 0.0
  31.     ClumpBegin
  32.         Disc 0.0 -0.3 6        #cap the one end of the arm
  33.         Cylinder 2.0 0.3 0.2 6    #draw the arm 
  34.         Disc 2.0 0.2 6        #cap the other end of the arm
  35.         Translate 0.0 2.2 0.0  #translate to place the forearm
  36.         ProtoInstance ForeArm
  37.     ClumpEnd
  38.     ProtoEnd
  39.  
  40.     ClumpBegin
  41.     LightSampling Vertex
  42.     ProtoInstance Base
  43.     ClumpBegin
  44.         Tag 2           # Tag for the upper arm is 2
  45.         Translate 0.0 0.3 0.0    #translate to place the upper arm
  46.         ProtoInstance Arm
  47.     ClumpEnd
  48. ClumpEnd
  49. ModelEnd
  50.  
  51.