home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / TOMB.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  18.7 KB  |  742 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Drew Wells
  4.  
  5. // Title-"Tomb" 
  6.  
  7. // -+ Compuserve Hall Of Fame award winner +- 
  8.  
  9. // A haunted tomb on a hill, gravestones, rusty fence, pumpkin patch. 
  10. // - Drew Wells CIS 73767,1244 
  11. // 11/29/90 
  12.  
  13. #include "shapes.dat"
  14. #include "colors.dat"
  15. #include "textures.dat"
  16.  
  17.  
  18. { Camera }
  19. view_point
  20.    direction <0.0 0.0  1.5>
  21.    up  <0.0  1.0  0.0>
  22.    right <-1.333 0.0 0.0>
  23.    translate < -15.0  5.0  120.0>
  24.    look_at <10.0 12.0 55.0>
  25. end_view_point
  26.  
  27. #declare Yellow_Clouds = texture
  28.       0.05
  29.        bozo
  30.        turbulence 0.6
  31.        colour_map
  32.           [0.0 0.5   colour red 0.9 green 0.5  blue 0.3
  33.                      colour red 0.4 green 0.4  blue 0.0]  
  34.           [0.5 0.6   colour red 1.0 green 1.0  blue 1.0 alpha 1.0
  35.                      colour red 1.0 green 1.0  blue 1.0 alpha 1.0 ]
  36.           [0.6 1.001 colour red 1.0 green 1.0  blue 1.0 alpha 1.0
  37.                      colour red 1.0 green 1.0  blue 1.0 alpha 1.0]
  38.        end_colour_map
  39. end_texture
  40.  
  41. #declare Sunset_Sky = texture
  42.       0.05
  43.        gradient <0.0 1.0 0.0>
  44.        
  45.        colour_map
  46.           [0.0 0.4  {blue}
  47.                     colour red 0.8 green 0.0 blue 0.0
  48.                     colour red 0.4 green 0.0 blue 0.4]
  49.           
  50.           [0.4 0.6  colour red 0.4 green 0.0 blue 0.4
  51.                     {white}
  52.                     colour red 0.0 green 0.0 blue 0.2]
  53.           [0.6 1.001 colour red 0.0 green 0.0 blue 0.2
  54.                     {grey}
  55.                     colour red 0.0 green 0.0 blue 0.0]
  56.        end_colour_map
  57.        scale <700.0 700.0 700.0>
  58. end_texture
  59. // Somewhere along the line I lost my original moss texture.
  60. // This version looks interesting, but...
  61. #declare Moss = texture
  62.     marble
  63.     turbulence 0.62
  64.     colour_map
  65.    [0.0 0.5  colour red 0.7 green 0.7 blue 0.45
  66.     colour red 0.7 green 0.65 blue 0.35]
  67.    [0.5 0.55 colour red 0.55 green 0.7 blue 0.45
  68.     colour red 0.45 green 0.60 blue 0.35]
  69.    [0.55 0.6 colour red 0.0 green 0.50 blue 0.20
  70.     colour red 0.5 green 0.6 blue 0.35]
  71.    [0.6 0.7  colour red 0.5 green 0.6 blue 0.35
  72.     colour red 0.05 green 0.35 blue 0.05]
  73.    [0.7 0.8  colour red 0.05 green 0.35 blue 0.05
  74.     colour red 0.20 green 0.30 blue 0.0]
  75.    [0.8 0.9  colour red 0.20 green 0.30 blue 0.0
  76.     colour red 0.20 green 0.50 blue 0.0]
  77.    [0.9 1.001  colour red 0.20 green 0.50 blue 0.00
  78.     colour red 0.20 green 0.30 blue 0.0]
  79.     end_colour_map
  80.     scale <1.7 1.7 1.7>
  81. end_texture
  82.  
  83.  
  84. {***********************************************}
  85. { Define objects for use in scene               }
  86. {***********************************************}
  87.  
  88. #declare Cross =
  89.   object
  90.     union
  91.     { Tried to make celtic cross, but vga resolution is too coarse }
  92.     { intersection
  93.      quadric Cylinder_Z
  94.         scale <0.4 0.4 0.4>
  95.         translate <0.0 0.45 0.0>
  96.      end_quadric
  97.      plane <0.0 0.0 -1.0>  0.02 end_plane
  98.      plane <0.0  0.0 1.0> 0.02 end_plane
  99.      end_intersection }
  100.  
  101.      {vertical part}
  102.      intersection
  103.       {top & bottom}
  104.       plane <0.0 1.0 0.0> 1.0 end_plane
  105.       plane <0.0 -1.0 0.0> 2.0 end_plane
  106.       {front & back}
  107.       plane <0.0 0.0 1.0> 0.12 end_plane
  108.       plane <0.0 0.0 -1.0> 0.12 end_plane
  109.       {left & right}
  110.       plane <1.0 0.0 0.0> 0.15 end_plane
  111.       plane <-1.0 0.0 0.0> 0.15 end_plane
  112.      end_intersection
  113.  
  114.      {horizontal part}
  115.      intersection
  116.       {top & bottom}
  117.       plane <0.0 1.0 0.0> 0.6 end_plane
  118.       plane <0.0 -1.0 0.0> -0.3 end_plane
  119.       {front & back}
  120.       plane <0.0 0.0 1.0> 0.12 end_plane
  121.       plane <0.0 0.0 -1.0> 0.12 end_plane
  122.       {left & right walls}
  123.       plane <1.0 0.0 0.0> 0.7 end_plane
  124.       plane <-1.0 0.0 0.0> 0.7 end_plane
  125.      end_intersection
  126.     end_union
  127.     bounded_by
  128.      intersection
  129.       plane <0.0 1.0 0.0> 1.1 end_plane
  130.       plane <0.0 -1.0 0.0> 2.1 end_plane
  131.       plane <0.0 0.0 1.0> 0.2 end_plane
  132.       plane <0.0 0.0 -1.0> 0.2 end_plane
  133.       plane <1.0 0.0 0.0> 0.8 end_plane
  134.       plane <-1.0 0.0 0.0> 0.8 end_plane
  135.      end_intersection
  136.     end_bound
  137.     texture
  138.       granite
  139.       scale <0.1 0.1 0.1>
  140.       ambient 0.1
  141.       diffuse 0.9   
  142.     end_texture
  143.     colour CBlue
  144. end_object
  145.  
  146. #declare Headstone =
  147.   object
  148.     union
  149.      intersection      
  150.        quadric Cylinder_Z end_quadric
  151.        plane <0.0 0.0 -1.0>  0.1 end_plane
  152.        plane <0.0  0.0 1.0> 0.1 end_plane
  153.      end_intersection      
  154.      intersection
  155.        {top & bottom} 
  156.        plane <0.0 1.0 0.0> 0.0 end_plane
  157.        plane <0.0 -1.0 0.0> 2.0 end_plane
  158.        {front & back}
  159.        plane <0.0 0.0 1.0> 0.1 end_plane
  160.        plane <0.0 0.0 -1.0> 0.1 end_plane
  161.        {left & right }
  162.        plane <1.0 0.0 0.0> 1.0 end_plane
  163.        plane <-1.0 0.0 0.0> 1.0 end_plane
  164.      end_intersection
  165.     end_union
  166.     texture 
  167.       granite 
  168.       scale<0.1 0.2 0.1>
  169.       ambient 0.1
  170.       diffuse 0.9   
  171.     end_texture
  172.    colour CBlue
  173. end_object
  174.  
  175. #declare Beam = quadric Cylinder_Y
  176.     scale <1.0 1.0 1.0>
  177. end_quadric
  178.  
  179. #declare Beam2 = quadric Cylinder_Y
  180.      inverse
  181.      scale <0.5 1.0 0.5>
  182.     translate <1.4 0.0 0.0>
  183. end_quadric
  184.  
  185. #declare Beam3 =
  186.   object
  187.    intersection
  188.      quadric Beam  scale <1.2 1.0 1.2> end_quadric
  189.      quadric Beam2 end_quadric
  190.      quadric Beam2 rotate <0.0  -45.0 0.0> end_quadric
  191.      quadric Beam2 rotate <0.0  -90.0 0.0> end_quadric
  192.      quadric Beam2 rotate <0.0 -135.0 0.0> end_quadric
  193.      quadric Beam2 rotate <0.0  180.0 0.0> end_quadric
  194.      quadric Beam2 rotate <0.0   45.0 0.0> end_quadric
  195.      quadric Beam2 rotate <0.0   90.0 0.0> end_quadric
  196.      quadric Beam2 rotate <0.0  135.0 0.0> end_quadric
  197.      plane <0.0 1.0 0.0> 8.0 end_plane
  198.      plane <0.0 -1.0 0.0> 0.0 end_plane
  199.    end_intersection
  200.    { CBlue marble was modified to look like green moss/mold }
  201.    texture
  202.      Moss
  203.      ambient 0.1
  204.      diffuse 0.99
  205.    end_texture
  206.    colour red 0.8 green 0.0 blue 0.0
  207. end_object
  208.  
  209. #declare Pole = quadric Cylinder_Y
  210.    scale <0.1 1.0 0.1>
  211. end_quadric
  212.  
  213.      
  214. #declare Xpole = quadric Cylinder_X
  215.    scale <0.1 0.1 0.1>
  216. end_quadric
  217.  
  218. { Rusty iron gate & fence - object should have been composite to avoid the }
  219. {                           "carved from one piece" look. }
  220. #declare Gate = object
  221.   union
  222.    intersection
  223.      quadric Xpole  end_quadric
  224.      plane <1.0 0.0 0.0> 8.0 end_plane
  225.      plane <-1.0 0.0 0.0> 2.0 end_plane
  226.      translate <0.0 6.5 0.0>
  227.    end_intersection
  228.    intersection
  229.      quadric Xpole  end_quadric
  230.      plane <1.0 0.0 0.0> 8.0 end_plane
  231.      plane <-1.0 0.0 0.0> 2.0 end_plane
  232.      translate <0.0 1.9 0.0>
  233.    end_intersection
  234.    intersection
  235.      quadric Pole  end_quadric
  236.      plane <0.0 1.0 0.0> 7.5 end_plane
  237.      plane <0.0 -1.0 0.0> 0.0 end_plane
  238.      translate <1.0 0.0 0.2>
  239.    end_intersection
  240.    sphere <1.0 7.5 0.0> 0.3 end_sphere
  241.    intersection
  242.      quadric Pole end_quadric
  243.      plane <0.0 1.0 0.0> 7.75 end_plane
  244.      plane <0.0 -1.0 0.0> 0.2 end_plane
  245.      translate <2.5 0.0 0.0>
  246.    end_intersection
  247.    sphere <2.5 7.75 0.0> 0.3 end_sphere
  248.    intersection
  249.      quadric Pole end_quadric
  250.      plane <0.0 1.0 0.0> 8.0 end_plane
  251.      plane <0.0 -1.0 0.0> 0.2 end_plane
  252.      translate <4.0 0.0 0.0>
  253.    end_intersection
  254.    sphere <4.0 8.0 0.0> 0.3 end_sphere
  255.    intersection
  256.      quadric Pole  end_quadric
  257.      plane <0.0 1.0 0.0> 7.75 end_plane
  258.      plane <0.0 -1.0 0.0> 0.2 end_plane
  259.      translate<5.5 0.0 0.0>
  260.    end_intersection
  261.    sphere <5.5 7.75 0.0> 0.3 end_sphere
  262.    intersection
  263.      quadric Pole end_quadric
  264.      plane <0.0 1.0 0.0> 7.5 end_plane
  265.      plane <0.0 -1.0 0.0> 0.2 end_plane
  266.      translate <7.0 0.0 0.0>
  267.    end_intersection
  268.    sphere <7.0 7.5 0.0> 0.3 end_sphere
  269.   end_union
  270.   bounded_by
  271.    intersection
  272.       plane <0.0 1.0 0.0> 9.0 end_plane
  273.       plane <0.0 -1.0 0.0> 0.0 end_plane
  274.       plane <0.0 0.0 1.0> 1.0 end_plane
  275.       plane <0.0 0.0 -1.0> 1.0 end_plane
  276.       plane <1.0 0.0 0.0> 8.0 end_plane
  277.       plane <-1.0 0.0 0.0> 0.0 end_plane
  278.    end_intersection
  279.   end_bound
  280.   texture 
  281.     0.05
  282.     Rust 
  283.     ambient 0.4
  284.     diffuse 0.99   
  285.   end_texture 
  286.   colour CBlue
  287. end_object
  288.  
  289. { a rectangular pad to serve as a footing for the column }
  290. #declare BasePad =
  291.    object
  292.    intersection
  293.       plane <0.0 1.0 0.0> 0.25 end_plane
  294.       plane <0.0 -1.0 0.0> 0.25 end_plane
  295.       plane <0.0 0.0 1.0> 1.2 end_plane
  296.       plane <0.0 0.0 -1.0> 1.2 end_plane
  297.       plane <1.0 0.0 0.0> 1.2 end_plane
  298.       plane <-1.0 0.0 0.0> 1.2 end_plane
  299.    end_intersection
  300.  
  301.    texture
  302.      Moss
  303.      scale <0.8 0.3 1.0>
  304.      ambient 0.1
  305.      diffuse 0.9
  306.    end_texture
  307.    colour red 0.6 green 0.6 blue 0.4
  308. end_object
  309.  
  310. #declare Column = composite
  311.    object Beam3   translate <0.0 0.0 0.0> end_object
  312.    object BasePad translate <0.0 1.0 0.0> end_object
  313.    object BasePad translate <0.0 8.0 0.0> end_object
  314. end_composite
  315.  
  316. #declare Tomb = object
  317.   union
  318.    { Main structure }
  319.    intersection
  320.       {ceiling and floor}
  321.       plane <0.0 1.0 0.0> 10.0 end_plane
  322.       plane <0.0 -1.0 0.0> 6.0 end_plane
  323.       {front and back walls}
  324.       plane <0.0 0.0 1.0> 7.5 end_plane
  325.       plane <0.0 0.0 -1.0> 7.5 end_plane
  326.       {left & right walls}
  327.       plane <1.0 0.0 0.0> 10.0 end_plane
  328.       plane <-1.0 0.0 0.0> 10.0 end_plane
  329.       {doorway}
  330.       intersection
  331.         {ceiling and floor} 
  332.         plane <0.0 1.0 0.0> 7.0 end_plane
  333.         plane <0.0 -1.0 0.0> 6.0 end_plane
  334.         {front and back walls}
  335.         plane <0.0 0.0 1.0> 17.5 end_plane
  336.         plane <0.0 0.0 -1.0> 7.0 end_plane
  337.         {left & right walls}
  338.         plane <1.0 0.0 0.0> 3.0 end_plane
  339.         plane <-1.0 0.0 0.0> 3.0 end_plane
  340.         inverse 
  341.       end_intersection
  342.    end_intersection
  343.    { Foundation }
  344.    intersection
  345.       {top & bottom}
  346.       plane <0.0 1.0 0.0> -1.0 end_plane
  347.       plane <0.0 -1.0 0.0> 5.0 end_plane
  348.       {front & back}
  349.       plane <0.0 0.0 1.0> 8.5 end_plane
  350.       plane <0.0 0.0 -1.0> 8.5 end_plane
  351.       {left & right}
  352.       plane <1.0 0.0 0.0> 11.0 end_plane
  353.       plane <-1.0 0.0 0.0> 11.0 end_plane
  354.    end_intersection
  355.   end_union
  356.   bounded_by
  357.    sphere <0.0 0.0 0.0> 18.0 end_sphere
  358.   end_bound
  359.   texture
  360.        granite
  361.        bumps 0.8
  362.        scale < 0.5 0.1 1.0>
  363.        ambient 0.1
  364.        diffuse 0.9
  365.   end_texture
  366.   colour CBlue
  367. end_object
  368.  
  369. #declare InnerBeams = object
  370.    union
  371.     intersection
  372.      quadric Beam end_quadric
  373.      plane <0.0 1.0 0.0> 8.0 end_plane
  374.      plane <0.0 -1.0 0.0> 2.0 end_plane
  375.      translate < 5.0 0.0 7.5>
  376.     end_intersection
  377.     intersection
  378.      quadric Beam end_quadric
  379.      plane <0.0 1.0 0.0> 8.0 end_plane
  380.      plane <0.0 -1.0 0.0> 2.0 end_plane
  381.      translate < -5.0 0.0 7.5>
  382.     end_intersection
  383.    end_union
  384.    texture
  385.       granite
  386.       bumps 0.5
  387.       scale < 0.5 0.6 1.0>
  388.       ambient 0.10
  389.       diffuse 0.9
  390.    end_texture
  391.    colour CBlue
  392. end_object
  393.  
  394. #declare Pointy = object
  395.    union
  396.     {pointy part}
  397.     intersection
  398.       plane <0.0 -1.0 0.0> 1.0 end_plane
  399.       plane <0.0 0.0 1.0> 0.5 end_plane
  400.       plane <0.0 0.0 -1.0> 0.5 end_plane
  401.       plane <1.0 0.0 0.0> 0.0 rotate <0.0 0.0 70.0> end_plane
  402.       plane <-1.0 0.0 0.0> 0.0 rotate <0.0 0.0 -70.0> end_plane
  403.       scale <3.0 4.0 1.0>
  404.       translate < 0.0 12.0 7.5>
  405.     end_intersection
  406.    end_union
  407.    texture
  408.       granite
  409.       bumps 0.5
  410.       scale < 0.7 0.5 0.33>
  411.       ambient 0.10
  412.       diffuse 0.9
  413.    end_texture
  414.    colour CBlue
  415. end_object
  416.  
  417. #declare CornerBeams = object
  418.   union
  419.     intersection
  420.       quadric Beam scale <1.5 1.0 1.5>end_quadric
  421.       plane <0.0 1.0 0.0> 10.0 end_plane
  422.       plane <0.0 -1.0 0.0> 2.0 end_plane
  423.       translate < 10.0 0.0 7.5>
  424.     end_intersection
  425.     intersection      
  426.       quadric Beam scale <1.5 1.0 1.5> end_quadric
  427.       plane <0.0 1.0 0.0> 10.0 end_plane
  428.       plane <0.0 -1.0 0.0> 2.0 end_plane
  429.       translate < -10.0 0.0 7.5>
  430.     end_intersection
  431.     sphere < -10.0 10.0 7.5> 1.5 end_sphere
  432.     sphere <  10.0 10.0 7.5> 1.5 end_sphere
  433.   end_union
  434.   texture
  435.       granite
  436.       bumps 0.5
  437.       scale < 0.3 0.1 1.0>
  438.       ambient 0.10
  439.       diffuse 0.9
  440.   end_texture
  441.   colour CBlue
  442. end_object
  443.  
  444. { Ghost in tomb doorway }
  445. #declare Figure = object
  446.   intersection
  447.      quadric Beam scale <2.3 1.0 2.3> end_quadric
  448.      plane <0.0 1.0 0.0> 8.0 end_plane
  449.      plane <0.0 -1.0 0.0> 2.0 end_plane
  450.      translate < 0.0 0.0 4.3>
  451.   end_intersection
  452.   texture
  453.      granite
  454.      { Use any ghost image you like for the tomb doorway or comment }
  455.      { out the Figure in TombAll }
  456.      {imagemap <-1.0 1.0 0.0> gif "ghost.gif" once 
  457.       interpolate 2.0
  458.      end_map}
  459.      scale < 6.5 8.0 6.5 >
  460.      translate < -1.0 7.5 4.3 >
  461.      ambient 0.10
  462.      diffuse 0.3
  463.    end_texture
  464.    colour Black
  465. end_object
  466.  
  467. { TombAll is the completed tomb }
  468. #declare TombAll = composite
  469.    object Tomb end_object
  470.    object InnerBeams end_object
  471.    object Pointy end_object
  472.    object CornerBeams end_object
  473.    object Figure end_object
  474. end_composite
  475.  
  476. { Pumpkin parts }
  477. #declare Stem = object
  478.   intersection
  479.     quadric Pole  end_quadric
  480.     plane <0.0 1.0 0.0> 0.04 rotate <0.0 -10.0 -10.0> end_plane
  481.     plane <0.0 -1.0 0.0> 1.0 end_plane
  482.     translate<0.0 0.3 0.0>
  483.   end_intersection
  484.   texture
  485.     bumps 0.5
  486.     color red 0.04 green 0.33 blue 0.05
  487.     scale < 0.2 0.2 0.2>
  488.     ambient 0.1
  489.     diffuse 0.9   
  490.   end_texture
  491.   color red 0.04 green 0.33 blue 0.05
  492. end_object
  493.  
  494. #declare Slice = quadric
  495.   QSphere
  496.   translate <0.0 0.0 0.5>
  497.   scale <0.28 0.30 0.40>
  498. end_quadric
  499.  
  500. #declare Pumpkin = object
  501.   union
  502.     quadric Slice end_quadric
  503.     quadric Slice rotate <0.0 -20.0  0.0> end_quadric
  504.     quadric Slice rotate <0.0 -40.0  0.0> end_quadric
  505.     quadric Slice rotate <0.0 -60.0  0.0> end_quadric
  506.     quadric Slice rotate <0.0 -80.0  0.0> end_quadric
  507.     quadric Slice rotate <0.0 -100.0 0.0> end_quadric
  508.     quadric Slice rotate <0.0 -120.0 0.0> end_quadric
  509.     quadric Slice rotate <0.0 -140.0 0.0> end_quadric
  510.     quadric Slice rotate <0.0 -160.0 0.0> end_quadric
  511.     quadric Slice rotate <0.0 -180.0 0.0> end_quadric
  512.     quadric Slice rotate <0.0 -200.0 0.0> end_quadric
  513.     quadric Slice rotate <0.0 -220.0 0.0> end_quadric
  514.     quadric Slice rotate <0.0 -240.0 0.0> end_quadric
  515.     quadric Slice rotate <0.0 -260.0 0.0> end_quadric
  516.     quadric Slice rotate <0.0 -280.0 0.0> end_quadric
  517.     quadric Slice rotate <0.0 -300.0 0.0> end_quadric
  518.     quadric Slice rotate <0.0 -320.0 0.0> end_quadric
  519.     quadric Slice rotate <0.0 -340.0 0.0> end_quadric
  520.   end_union
  521.   bounded_by
  522.       quadric QSphere scale <1.5 1.5 1.5> end_quadric
  523.   end_bound
  524.   texture
  525.     bumps 0.3
  526.     color red 0.5 green 0.22 blue 0.1
  527.     scale < 0.1 0.1 0.1>
  528.     ambient 0.1
  529.     diffuse 0.9
  530.     phong 0.75
  531.     phongsize 30.0
  532.   end_texture
  533.   color red 0.5 green 0.22 blue 0.1
  534. end_object
  535.  
  536.  
  537. {*****************************************}
  538. { Scene description     }
  539. {*****************************************}
  540.  
  541. object
  542.    Cross
  543.    scale <1.7 2.0 1.0>
  544.    rotate <-15.0 0.0 0.0>
  545.    translate <-16.0 7.7 61.5>    
  546. end_object
  547.  
  548. object
  549.    Headstone
  550.    scale <1.0 1.0 1.0>
  551.    rotate <15.0 0.0 0.0>
  552.    translate <-14.0 4.0 76.0>
  553. end_object
  554.  
  555. object
  556.    Headstone
  557.    scale <1.0 1.0 1.0>
  558.    translate <12.0 4.0 74.0>
  559. end_object
  560.  
  561. object
  562.    Headstone
  563.    scale <1.0 1.0 1.0>
  564.    rotate <-10.0 0.0 0.0>
  565.    translate <18.0 8.0 70.0>
  566. end_object
  567.  
  568. object
  569.    Cross
  570.    scale <1.5 2.0 1.0>
  571.    rotate <-15.0 0.0 0.0>
  572.    translate <17.0 10.0 60.0>
  573. end_object
  574.  
  575. object
  576.    Cross
  577.    scale <1.5 2.0 1.0>
  578.    rotate <-15.0 0.0 20.0>
  579.    translate <26.0 10.0 70.0>
  580. end_object
  581.  
  582. object
  583.    Cross
  584.    scale <1.5 2.0 1.0>
  585.    rotate <-15.0 0.0 -10.0>
  586.    translate <31.0 10.0 78.0>
  587. end_object
  588.  
  589.  
  590. { Little Pumpkin Patch }
  591. object
  592.    Pumpkin
  593.    scale <1.5 2.0 1.5>
  594.    translate < 5.0 1.55 95.0>
  595. end_object
  596. object
  597.    Stem
  598.    scale <1.5 2.5 1.5>
  599.    translate < 5.0 1.55 95.0>
  600. end_object
  601. object
  602.    Pumpkin
  603.    scale <1.5 2.5 1.5>
  604.    translate < 11.0 1.6 90.0>
  605. end_object
  606. object
  607.    Stem
  608.    scale <1.5 2.5 1.5>
  609.    translate < 11.0 1.6 90.0>
  610. end_object
  611.  
  612.  
  613. { Ghastly Tomb!}
  614. composite
  615.    TombAll
  616.    rotate <15.0 15.0 0.0>
  617.    translate <0.0 10.0 58.0>
  618. end_composite
  619.  
  620. {left entry gate}
  621. object
  622.    Gate
  623.    translate <-9.0 0.0 88.0>
  624. end_object
  625.  
  626. {right entry gate}
  627. object
  628.    Gate
  629.    rotate <-10.0 -160.0 0.0>
  630.    translate <7.0 0.0 87.5>
  631. end_object
  632.  
  633. {Use gate object to make left & right fence}
  634. object
  635.    Gate
  636.    translate <-19.0 0.0 88.0>
  637. end_object
  638. object
  639.    Gate
  640.    translate <-31.0 0.0 88.0>
  641. end_object
  642. object
  643.    Gate
  644.    translate <9.0 0.0 88.0>
  645. end_object
  646. object
  647.    Gate
  648.    translate <19.0 0.0 88.0>
  649. end_object
  650.  
  651. { Columns to hold the fence and gates up }
  652. composite Column translate <-20.0 0.0 88.0> end_composite
  653. composite Column translate <-10.0 0.0 88.0> end_composite
  654. composite Column translate < 8.0 0.0 88.0> end_composite
  655. composite Column translate < 18.0 0.0 88.0> end_composite
  656.  
  657. {hill under tomb}
  658. object
  659.     quadric Paraboloid_Y
  660.       scale<40.0 10.0 77.0>
  661.     end_quadric
  662.     rotate <0.0 0.0 180.0>
  663.     translate <0.0 21.0 -28.0>
  664.     texture
  665.       bumps 0.8
  666.       color red 0.5 green 0.6 blue 0.2
  667.       scale < 5.0 5.0 5.0>
  668.       ambient 0.1
  669.       diffuse 0.7    
  670.     end_texture                                      
  671.     color red 0.5 green 0.6 blue 0.2
  672. end_object
  673.  
  674. {hill to right of tomb}
  675. object
  676.     quadric Paraboloid_Y
  677.       scale<30.0 10.0 40.0>
  678.     end_quadric
  679.     rotate <0.0 0.0 180.0>
  680.     translate <40.0 14.0 50.0>
  681.     texture
  682.       bumps 0.8
  683.       color red 0.6 green 0.6 blue 0.1
  684.       scale < 7.0 5.0 5.0>
  685.       ambient 0.1
  686.       diffuse 0.7
  687.     end_texture
  688.     color red 0.6 green 0.6 blue 0.1
  689. end_object
  690.  
  691. { Ground }
  692. object
  693.     plane <0.0 1.0 0.0> 1.0 end_plane
  694.     texture
  695.       bumps 0.7
  696.       color red 0.6 green 0.6 blue 0.1
  697.       scale < 1.0 1.0 1.0>
  698.       ambient 0.1
  699.       diffuse 0.7
  700.     end_texture
  701.     color red 0.6 green 0.6 blue 0.1
  702. end_object
  703.  
  704. {The Sun}
  705. object
  706.   sphere <0.0 0.0 0.0> 150.0 end_sphere
  707.   translate <150.0 30.0 1200.0>
  708.   texture
  709.     color White
  710.     ambient 1.0
  711.     diffuse 0.0
  712.   end_texture
  713.   light_source
  714.   color White
  715. end_object
  716.  
  717. { Sky - gradient sunset}
  718. object
  719.   sphere <0.0 0.0 0.0> 2000.0 inverse end_sphere
  720.    texture
  721.      Sunset_Sky
  722.      translate <0.0 200.0 0.0>
  723.      scale <1.2 1.2 1.2>
  724.      ambient 0.6
  725.      diffuse 0.0
  726.    end_texture
  727.    color CGreen
  728. end_object
  729.  
  730. { Clouds - uses a sky texture with the sky portion defined as transparent }
  731. {          so the gradient behind it is visible  }
  732. object
  733.    sphere <0.0 0.0 0.0> 1997.0 inverse end_sphere
  734.    texture
  735.     Yellow_Clouds
  736.     scale <1000.0 30.0 100.0>
  737.     ambient 0.6
  738.     diffuse 0.0
  739.    end_texture
  740.    color CGreen
  741. end_object
  742.