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

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