home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bounc10.zip / BOUNC.POV < prev    next >
Text File  |  1993-02-13  |  1KB  |  75 lines

  1. //  POV-Ray source file for Bouncing Ball Animation.
  2. //  Created by Phillip H. Sherrod
  3.  
  4. #include "colors.inc"
  5. #include "shapes.inc"
  6. #include "textures.inc"
  7. #include "bounc.inc"
  8.  
  9. #declare Ball1_Texture = texture {
  10.    color Red
  11.    phong .8  phong_size 60
  12.    ambient 0.15
  13.    diffuse 0.8
  14. }
  15.  
  16. camera {
  17.     location <.5 1 -22>
  18.     direction <0 0 1.5>
  19.     up <0 1 0>
  20.     right <1.33 0 0>
  21.     look_at <0 4 0>
  22. }
  23.  
  24. object {
  25.     light_source { <6 15 -4> color White}
  26. }
  27.  
  28. object {
  29.     light_source { <0 0 -18> color White}
  30. }
  31.  
  32. object {
  33.     light_source { <-6 15 -4> color White}
  34. }
  35.  
  36. //  A ramp for the ball to roll down
  37. object {
  38.     box {<-4 -.2 -1> <0 0 1>}
  39.     texture { color green .7 blue .3 ambient .6}
  40.     rotate <0 0 -30>
  41.     translate <-6 7 0>
  42. }
  43.  
  44. //  Here is the ball
  45. object {
  46.     sphere { <xpos ypos 0> .5}
  47.     texture { Ball1_Texture
  48.         color red .9 green 0 blue .1 ambient .8
  49.     }
  50. }
  51.  
  52. //  Cylinder to catch the ball
  53. object {
  54.     intersection { Disk_Y
  55.         scale <.8 1 1>
  56.         translate <8 -.4 0>
  57.     }
  58.     texture {Metal color blue .8 green .2 ambient .4}
  59. }
  60.  
  61.  
  62. // floor
  63. object {
  64.    plane { <0 1 0> -.5 }
  65.    texture { color red .7 green .7 blue .7}
  66. }
  67.  
  68. // Back wall
  69. object {
  70.    plane { <0 0 1> 100 }
  71.    texture { color red 0 green 0.1 blue 0.6
  72.         ambient .65 diffuse 0 reflection 0 specular 0}
  73. }
  74.  
  75.