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

  1. ModelBegin
  2.  
  3.   ProtoBegin MyBlock
  4.   # x=1 y=1 z=1
  5.     Include myblock.rwx
  6.   ProtoEnd
  7.  
  8.   ProtoBegin CabDoublePrim
  9.   # x=2, y=1.5, z=1
  10.       LightSampling Facet
  11.       GeometrySampling Solid
  12.  
  13.       Surface 0.2 0.6 0.0
  14.       Color 0.7 0.5 0
  15.       TransformBegin
  16.         Translate 0 -0.7 0
  17.         Block 2.0 0.1 1.0  # base
  18.       TransformEnd
  19.       TransformBegin
  20.         Translate 0 0.7 0
  21.         Scale 2.0 0.1 1.0
  22.         ProtoInstance MyBlock # top
  23.       TransformEnd
  24.       Surface 0.6 1 0
  25.       Color 1 1 1 
  26.       TransformBegin
  27.         Translate -0.99 0 0
  28.         Block 0.02 1.3 1.0 # left side
  29.       TransformEnd
  30.       TransformBegin
  31.         Translate 0.99 0 0
  32.         Block 0.02 1.3 1.0 # right side
  33.       TransformEnd
  34.       TransformBegin
  35.         Translate 0 0 -0.49
  36.         Block 1.96 1.3 0.02 # back
  37.       TransformEnd
  38.   ProtoEnd
  39.  
  40.   ProtoBegin CabDouble
  41.     # x=2.0 y=1.5 z=1.0
  42.     TransformBegin
  43.       ProtoInstance CabDoublePrim
  44.     TransformEnd
  45.     Surface 0.6 0.6 0.7
  46.       TransformBegin
  47.         Color 0.6 0.6 0.0
  48.         Translate -0.5 0 0.51
  49.         Block 1.0 1.3 0.02
  50.         Color 0 0 1
  51.         Translate 0.2 0.5 0.035
  52.         Block 0.1 0.05 0.05
  53.       TransformEnd
  54.       TransformBegin
  55.         Color 0.6 0.6 0.0
  56.         Translate 0.5 0.0 0.51
  57.         Block 1.0 1.3 0.02
  58.         Color 0 0 1
  59.         Translate -0.2 0.5 0.035
  60.         Block 0.1 0.05 0.05
  61.       TransformEnd
  62.   ProtoEnd
  63.  
  64.   ClumpBegin
  65.     ProtoInstance CabDouble
  66.   ClumpEnd
  67.   
  68. ModelEnd
  69.