home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / pvs / scene / tableau.pov < prev    next >
Encoding:
Text File  |  1993-11-02  |  2.4 KB  |  137 lines

  1. #version 1.0
  2.  
  3. camera {
  4.   location  <0    0   -110 >
  5.   direction <0.0     0.0  2.0>
  6.   right     <1.3333  0.0  0.0>
  7.   look_at   <0 0 0>
  8. }
  9.  
  10. object {
  11.   light_source {
  12.     <122 120 -120>
  13.     color red 1 green 1 blue 1
  14.   }
  15. }
  16.  
  17. #declare Boite = box { <-1 -1 -1> <1 1 1> }
  18.  
  19. object {
  20.   plane { <0 0 1> -0.2 }
  21.   texture {
  22.     color red 1 green 1 blue 1
  23.     ambient 0.2
  24.   }
  25. }
  26.  
  27. composite {
  28. object {
  29.   union {
  30.     box { Boite         // montant droite
  31.       scale <0.3 25.3 2>
  32.       translate <20 0 0>
  33.     }
  34.     box { Boite         // montant gauche
  35.       scale <0.3 25.3 2>
  36.       translate <-20 0 0>
  37.     }
  38.     box { Boite         // montant haut
  39.       scale <0.3 20 2>
  40.       rotate <0 0 90>
  41.       translate <0 25 0>
  42.     }
  43.     box { Boite         // montant bas
  44.       scale <0.3 20 2>
  45.       rotate <0 0 90>
  46.       translate <0 -25 0>
  47.     }
  48.   }
  49.   texture {
  50.     color red 0 green 0 blue 0
  51.     phong 0.2
  52.     phong_size 60
  53.   }
  54.   bounded_by {
  55.     box {
  56.       Boite
  57.       scale <20.5 25.5 2.1>
  58.     }
  59.   }
  60.   rotate <0 0 90>
  61. }
  62.  
  63. object {            // passe-partout
  64.   difference {
  65.     box { Boite scale <19.9 24.9 0.1> }
  66.     box { Boite scale <10 15 0.11> }
  67.   }
  68.   texture {
  69.     color red 0.973 green 0.973 blue 0.888
  70.     phong 0.1
  71.     ambient 0.5
  72.     bumps 0.1
  73.     scale <0.3 0.3 0.01>
  74.   }
  75.   bounded_by {
  76.     box {
  77.       Boite
  78.       scale <20 25 0.06>
  79.     }
  80.   }
  81.   rotate <0 0 90>
  82.   translate <0 0 -1.7>
  83. }
  84.  
  85. object {            // Verre
  86.   box { Boite scale <14.7 19.7 0.05> }
  87.   texture {
  88.     color red 1 green 1 blue 1 alpha 1.0
  89.     phong 0.9
  90.     reflection 0.2
  91.   }
  92.   bounded_by {
  93.     box {
  94.       Boite
  95.       scale <20 25 0.06>
  96.     }
  97.   }
  98.   rotate <0 0 90>
  99.   translate <0 0 -1.9>
  100. }
  101.  
  102. /*
  103.    Remplacez ici le nom de l'image par une image gif de votre choix
  104.    en format proche du 1.333 (640x480,320x200,800x600 etc...)
  105.    Les dimensions exactes du cadre sont de L=50, H=40 et P=4, positionnées
  106.    en 0 pour L et H, en -2 pour P (fond à 0).
  107. */
  108.  
  109. object {            // Image
  110.   box { Boite }
  111.   texture {
  112.     image_map { <1 -1 0> gif "fond.gif" interpolate 2.0 once }
  113.     translate <-0.5 -0.5 0>
  114.     ambient 0.7
  115.     phong 0.0
  116.   }
  117.   bounded_by {
  118.     box {
  119.       Boite
  120.       scale <30.1 20.1 0.06>
  121.     }
  122.   }
  123.   scale <30 20 0.01>
  124.   translate <0 0 -1.5>
  125. }
  126. bounded_by {
  127.     box {
  128.       Boite
  129.       scale <25.5 20.5 2.1>
  130.     }
  131.   }
  132. translate <0 0 -2>
  133. }
  134.  
  135.  
  136.  
  137.