Beschreibungen und Beispiele zum Raytracer POV-Ray von Friedrich A. Lohmüller
Gestaltung von Oberflächen mit POV-Ray -
English English English
Italiano Italiano
Français français

Home
- POV-Ray Tutorial

  Oberflächengestaltung
  - Farben und Texturen
    Inhalt

    texture Syntax
    Vorgefertigtes
    Farben Do-it-Yourself
    Muster
    Muster Listen
    Warps
    - warp mapping
    uv_mapping
    Mapping
    - Mapping-Methoden
    - 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
    Überlagerungen

    Eigene Texturen
 
                                           
"image_map{ ... }" und "gamma"
 Ein Feature für image_map Bilder, neu in POV-Ray Version 3.7

Es gibt einen großen Unterschied darin wie POV-Ray Version 3.6.2 und Version 3.7
den Gamma-Wert von Bildern beim Gebrauch in image_map behandeln:

"image_map" mit 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 //-----------------------
Ein Makro für die Anpassung des Gammas von
Bildern in image_maps mit POV-Ray Version 3.6.2. ist hier.
image for image_map
Das Bild das hier für image_map verwendet wurde.
Bild-Datei: Image_gamma_0.jpg

image_map with POV-Ray 3.6
image_map mit POV-Ray 3.6 ... ein Gamma-Problem!
POV-Ray 3.6.2 Szenendatei: Image_gamma36_1.pov
"image_map" mit 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 mit POV-Ray 3.7, default Gamma-Einstellung
POV-Ray 3.7 Szenendatei: Image_gamma37_1.pov
"image_map" in POV-Ray 3.7 (RC6)
mit Gamma-Korrektur des Bild-Inputs:
Man kann die default Gamma-Einstellung überschreiben!

// 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 mit POV-Ray 3.7 und 'gamma 2.0'

"image_map" mit POV-Ray 3.7 (RC6)
mit Gamma-Korrektur + 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 mit POV-Ray 3.7
und 'gamma 2.5' + 'emission 0.3'
top

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