POV-Ray : Newsgroups : povray.general : Turbulence in a pigment_map : Re: Turbulence in a pigment_map Server Time: 26 Oct 2020 13:09:25 GMT
  Re: Turbulence in a pigment_map  
From: Uncle Josh
Date: 8 Sep 2020 04:50:01
"Bald Eagle" <cre### [at] netscapenet> wrote:
> #version 3.8;
> ...
>
> plane {z, 0 texture {T_cells} texture {T_fire}}

Not quite was I was going for, but after numerous searches I found Friedrich A.
Lohmüller's Transparency mapping 3 page and voila! Just want I wanted.

After some tweaking:

#declare P_cells = pigment { cells scale 1/10 }
#declare dark_char = pigment { rgb 0 }
#declare ember = pigment { red 1 }
#declare P_clear = pigment { color rgbt 1 }

#declare Burning = texture {
pigment {
   pigment_pattern {
     planar
     rotate -90*z
     color_map { [0.1 White] [0.15 Black ] }
     scale 1
     turbulence .2
   }
   pigment_map {
     [ 0, P_cells ]
     [ 0.85, dark_char ]
     [ 0.90, ember ]
     [ 1, P_clear ]
   }
 }
} // Burning

The pigment_pattern is the solution I'm looking for.

Uncle Josh
Pontificating on the web since 1995


Post a reply to this message

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