Descrizioni ed esempi per POV-Ray di Friedrich A. Lohmüller
Design di Superfici con "texture" in POV-Ray -
English English English
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  Design di Superfici
  - Colori e Texture
    Index

    Sintassi di texture
    Testure pronto per l'uso
    Colori Do-it-yourself
    Motivi - patterns
    Liste di motivi
    Warps
    uv_mapping
    Mapping
    - metodi di mapping
    - color_map{...}
    - pigment_map{...}
    - texture_map{...}
    - normal_map{...}
    - average
    - material_map{...}
    - image_map{...}
    - image_map+gif 1
    - image_map+gif 2
   > image_map+gamma
    - bump_map{ ... }
    - transparency maps 1
    - transparency maps 2
    - transparency maps 3
    Sovrapposizioni

    Vostre testure
 
                                           
"image_map{ ... }" e "gamma"
 Una nuova funzione per immagini in image_map, nuovo in POV-Ray version 3.7

C'è una grande differenza tra POV-Ray version 3.6.2 e version 3.7
nella gestione la gamma delle immagini utilizzate in image_map:

"image_map" con POV-Ray 3.6.2:
//--------------------------------------
#version 3.6;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9}}
//--------------------------------------
// ...
// box with layered textures
box { < -0.04, -0.04,0>,< 1.03, 1.04, 0.01>
      // 1st layer: White
      texture{
        pigment{ color rgb<1,1,1>*1.1 }
        finish{ phong 1}
      } // ------------------------------
      // 2nd layer: image_map
      texture{
        pigment{
          image_map{
          jpeg "Image_gamma_0.jpg"
          map_type 0
          interpolate 2
          once
         } // end of image_map
       } //  end of pigment
     } // end of texture

     scale <4/3,1,1>*1.75
     translate<-1.5,0.1,-2>
} // end of box //-----------------------
Un macro per l'adattamento di gamma d'immagine
in image_maps con POV-Ray version 3.6.2. è qui.
image for image_map
L' immagine usato qui per image_map
Image file: Image_gamma_0.jpg

image_map with POV-Ray 3.6
image_map con POV-Ray 3.6 ... un problema gamma!
POV-Ray 3.6.2 scene file: Image_gamma36_1.pov
"image_map" con POV-Ray 3.7 (RC6):
//--------------------------------------
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9}}
//--------------------------------------
// ...
// box with layered textures
box { < -0.04, -0.04,0>,< 1.03, 1.04, 0.01>
      // 1st layer: White
      texture{
        pigment{ color rgb<1,1,1>*1.1 }
        finish{ phong 1}
      } // ------------------------------
      // 2nd layer: image_map
      texture{
        pigment{
          image_map{
          jpeg "Image_gamma_0.jpg"
          map_type 0
          interpolate 2
          once
         } // end of image_map
       } //  end of pigment
     } // end of texture

     scale <4/3,1,1>*1.75
     translate<-1.5,0.1,-2>
} // end of box //-----------------------
   






image_map with POV-Ray 3.6
image_map con POV-Ray 3.7, default gamma handling
POV-Ray 3.7 scene file: Image_gamma37_1.pov
"image_map" in POV-Ray 3.7 (RC6)
con correzine gamma con immagine input:
Possiamo definire un gamma diffente del default gamma!

// box with layered textures
box { < -0.04, -0.04,0>,< 1.03, 1.04, 0.01>
      // 1st layer: White
      texture{
        pigment{ color rgb<1,1,1>*1.1 }
        finish{ phong 1}
      } // ------------------------------
      // 2nd layer: image_map
      texture{
        pigment{
          image_map{
          jpeg "Image_gamma_0.jpg"
          gamma 2.0
          map_type 0
          interpolate 2
          once
         } // end of image_map
       } //  end of pigment
     } // end of texture
     scale <4/3,1,1>*1.75
     translate<-1.5,0.1,-2>
} // end of box //-----------------------
   

image_map with POV-Ray 3.6
image_map con POV-Ray 3.7 e 'gamma 2.0'

"image_map" con POV-Ray 3.7 (RC6)
con correzione gamma + emission:

// box with layered textures
box { < -0.04, -0.04,0>,< 1.03, 1.04, 0.01>
      // 1st layer: White
      texture{
        pigment{ color rgb<1,1,1>*1.1 }
        finish{ phong 1}
      } // ------------------------------
      // 2nd layer: image_map
      texture{
        pigment{
          image_map{
          jpeg "Image_gamma_0.jpg"
          gamma 2.5
          map_type 0
          interpolate 2
          once
         } // end of image_map
       } //  end of pigment
       finish{ emission 0.3 }
     } // end of texture
     scale <4/3,1,1>*1.75
     translate<-1.5,0.1,-2>
} // end of box //-----------------------
   

image_map with POV-Ray 3.6
image_map con POV-Ray 3.7
e 'gamma 2.5' + 'emission 0.3'
top

© Friedrich A. Lohmüller, 2013
www.f-lohmueller.de