Descriptions et exemples pour le POV-Ray raytracer par Friedrich A. Lohmüller.
English English English
Deutsch Deutsch

Couleurs rgb Textures Motif - » brick «

Conception de Surface en »texture«

Au lieu de utiliser une couleur seul comme » color Red «, on peut utiliser un motif de couleurs avec l'instruction » pigment «.
À part de les motifs préfabriqués comme Jade, Bright_Blue_Sky, Blood_Sky, Candy_Cane, Red_Marble, Brown_Agate, Cork etc. on peut utiliser aussi un grand nombre de motifs réguliers et un nombre infini de motifs irréguliers par utiliser une type de motif comme » gradient<0,1,0> « et un » color_map « .

Motifs réguliers: checker, hexagon, brick


checker - décoration en damier (longueur et largeur: 1 unité)
p.ex.: pigment {checker color White color Black}


hexagon - hexagone
p.ex.: pigment {hexagon color Black color Gray color White}


Sample hexagon with colors 640x480 Sample hexagon with textures 640x480

Exmple de » checker « et » hexagon «:

//--------------------- checker with colors -------------------
plane{<0,1,0>,0
      texture{
              pigment{checker
                         color White color rgb<0.8,0.65,0.8>
                      scale 0.5}
              finish {ambient 0.15 diffuse 0.35 reflection 0.5}
             }// end of texture
        }
//---------------------hexagon with colors --------------------
sphere {<0,0,0>,0.8 translate<0.5,1,1>
        texture {pigment{hexagon  // avec 3 couleurs!
                         color rgb<1,0.85,0.1>
                         color rgb<1,0.95,0.5>
                         color rgb<0.7,0.3,0.5>
                         rotate<90,-50,0> scale 0.2
                         } // fin de pigment
                 normal {wrinkles 0.75 scale 0.025 }
                 finish{ambient 0.15 diffuse 0.85 specular 0.2}
                } // fin de texture
       translate<-0.7,2.25,-1.2>
      } // fin de sphere
//--------------------- hexagon with textures -----------------
sphere {<0,0,0>,0.8
    texture {
        hexagon // avec 3 Textures!
        texture {
          Polished_Chrome
          pigment{color rgb<1,0.85,0.1>}//replaces Chome color!
          normal {crackle 0.5 scale 0.05 }
          finish {ambient 0.15 diffuse 0.85 specular 0.2}
                }// end of 1st texture
        texture {
          Polished_Chrome
          pigment{color rgb<1,0.85,0.1>}//replaces Chome color!
          finish {ambient 0.15 diffuse 0.85 specular 0.2}
                }// end of 2nd texture
        texture {Polished_Chrome
          pigment{color rgb<1,0.75,0>}//  replaces Chome color!
          normal {bumps 0.5 scale 0.15 }
          finish {ambient 0.15 diffuse 0.85 }
                }// end of 3rd texture
          scale 0.2 rotate<110,-50,0>
          }// ---------------------------end of texture
       translate<-0.7,2.25,-1.2>
       }//--------------------------- end of sphere 

//------------ Rainbow Sphere ----------
sphere {<0,0,0>,2 scale<1,0.5,1>
        texture {pigment{radial frequency 15}
finish {ambient 0.15 diffuse 0.85 specular 0.7} }// end of texture translate<0,1.5,2>}

Couleurs rgb Textures Motif - » brick «

© Friedrich A. Lohmüller, 2004
email email: (legacy email redacted)
homepage:www.f-lohmueller.de