home *** CD-ROM | disk | FTP | other *** search
- #version 1.0
-
- camera {
- location <0 0 -110 >
- direction <0.0 0.0 2.0>
- right <1.3333 0.0 0.0>
- look_at <0 0 0>
- }
-
- object {
- light_source {
- <122 120 -120>
- color red 1 green 1 blue 1
- }
- }
-
- #declare Boite = box { <-1 -1 -1> <1 1 1> }
-
- object {
- plane { <0 0 1> -0.2 }
- texture {
- color red 1 green 1 blue 1
- ambient 0.2
- }
- }
-
- composite {
- object {
- union {
- box { Boite // montant droite
- scale <0.3 25.3 2>
- translate <20 0 0>
- }
- box { Boite // montant gauche
- scale <0.3 25.3 2>
- translate <-20 0 0>
- }
- box { Boite // montant haut
- scale <0.3 20 2>
- rotate <0 0 90>
- translate <0 25 0>
- }
- box { Boite // montant bas
- scale <0.3 20 2>
- rotate <0 0 90>
- translate <0 -25 0>
- }
- }
- texture {
- color red 0 green 0 blue 0
- phong 0.2
- phong_size 60
- }
- bounded_by {
- box {
- Boite
- scale <20.5 25.5 2.1>
- }
- }
- rotate <0 0 90>
- }
-
- object { // passe-partout
- difference {
- box { Boite scale <19.9 24.9 0.1> }
- box { Boite scale <10 15 0.11> }
- }
- texture {
- color red 0.973 green 0.973 blue 0.888
- phong 0.1
- ambient 0.5
- bumps 0.1
- scale <0.3 0.3 0.01>
- }
- bounded_by {
- box {
- Boite
- scale <20 25 0.06>
- }
- }
- rotate <0 0 90>
- translate <0 0 -1.7>
- }
-
- object { // Verre
- box { Boite scale <14.7 19.7 0.05> }
- texture {
- color red 1 green 1 blue 1 alpha 1.0
- phong 0.9
- reflection 0.2
- }
- bounded_by {
- box {
- Boite
- scale <20 25 0.06>
- }
- }
- rotate <0 0 90>
- translate <0 0 -1.9>
- }
-
- /*
- Remplacez ici le nom de l'image par une image gif de votre choix
- en format proche du 1.333 (640x480,320x200,800x600 etc...)
- Les dimensions exactes du cadre sont de L=50, H=40 et P=4, positionnées
- en 0 pour L et H, en -2 pour P (fond à 0).
- */
-
- object { // Image
- box { Boite }
- texture {
- image_map { <1 -1 0> gif "fond.gif" interpolate 2.0 once }
- translate <-0.5 -0.5 0>
- ambient 0.7
- phong 0.0
- }
- bounded_by {
- box {
- Boite
- scale <30.1 20.1 0.06>
- }
- }
- scale <30 20 0.01>
- translate <0 0 -1.5>
- }
- bounded_by {
- box {
- Boite
- scale <25.5 20.5 2.1>
- }
- }
- translate <0 0 -2>
- }
-
-
-