POV-Ray : Newsgroups : povray.general : Turbulence in a pigment_map : Re: Turbulence in a pigment_map Server Time
18 Apr 2024 22:16:28 EDT (-0400)
  Re: Turbulence in a pigment_map  
From: Uncle Josh
Date: 7 Sep 2020 19:20:00
Message: <web.5f56bfa92e3bd598313019390@news.povray.org>
Alain Martel <kua### [at] videotronca> wrote:
> Le 2020-09-07 à 18:32, Uncle Josh a écrit :
> > I'm trying to animate a burning effect on object. I tried both pigment map and
> > texture maps, but the turbulence applied to the outer texture is being applied
> > to the inner textures, which I don't want.
> >
> > I thought this was possible, but my active working memory is a couple decades
> > old.
> >
>
> Did you try this variation ?
> #declare Burning_Texture =
>     texture {
>         gradient x
>         texture_map {
>           [0.0 T_cells turbulence -0.2] [0.7 T_cells turbulence -0.2]
>           [0.75 T_fire turbulence -0.2] [0.8 T_clear turbulence -0.2]
>           }
>         turbulence 0.2 // should only apply to the mapping
>     } // end of texture
>
> You may need to use warp{turbulence -0.2} and warp{turbulence 0.2} for
> this to work properly.

I did, but it generates an parse error. If I put the turbulence -0.2 in the
declaration for the T_cells texture or pattern, it does nothing, or it does two
bits of turbulence that don't even each other out.

Uncle Josh
Pontificating on the web since 1995


Post a reply to this message

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