POV-Ray : Newsgroups : povray.general : Turbulence in a pigment_map : Re: Turbulence in a pigment_map Server Time
26 Apr 2024 05:28:11 EDT (-0400)
  Re: Turbulence in a pigment_map  
From: Uncle Josh
Date: 8 Sep 2020 00:50:01
Message: <web.5f570cf32e3bd598313019390@news.povray.org>
"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.


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-2023 Persistence of Vision Raytracer Pty. Ltd.