POV-Ray : Newsgroups : povray.text.scene-files : RGB-sRGB interconversion : Re: RGB-sRGB interconversion Server Time
25 Apr 2024 06:51:11 EDT (-0400)
  Re: RGB-sRGB interconversion  
From: Bald Eagle
Date: 17 Mar 2017 17:00:00
Message: <web.58cc4d80d71eceafc437ac910@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:

> What can you use this script for? Can you use it in color maps? IIRC
> sRGB doesn't behave as expected in color maps.
>
> Mike

That was the general (original) idea.

Seems to work fine (so far...) .

#declare Tone2 = <1.2, 1.2, 0.3>;
#declare Wood = texture {
 pigment {
  wood
      color_map {
        [0.0 rgb SRGB2RGB(<121,  52, 13>/255) * Tone2]
        //[0.2 srgb <142,  73, 18>/255 * Tone2]
        [0.4 rgb SRGB2RGB(<184, 115, 48>/255) * Tone2]
        //[0.6 srgb <157,  81, 23>/255 * Tone2]
        //[0.8 srgb <108,  45,  4>/255 * Tone2]
        [1.0 rgb SRGB2RGB(<156,  72, 26>/255) * Tone2]
      }
      warp {turbulence <0.6, 0.1, 0.1>*0.5}
      scale <0.1, 0.1, 10>*0.5
  translate y*0.1
      rotate y*90
    } // end pigment
 normal {
  wood
      warp {turbulence <0.6, 0.1, 0.1>*0.5}
      scale <0.1, 0.1, 10>*0.5
  translate y*0.1
      rotate y*90
    } // end normal
    scale 2
} // end texture

#declare Wood2 = texture {Wood rotate x*90 scale 0.7}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.