POV-Ray : Newsgroups : povray.general : Basic Clouds, Smoke, Fire and Explosions Tutorial : Re: Basic Clouds, Smoke, Fire and Explosions Tutorial Server Time
31 Jul 2024 16:21:26 EDT (-0400)
  Re: Basic Clouds, Smoke, Fire and Explosions Tutorial  
From: nemesis
Date: 7 Dec 2006 04:45:00
Message: <web.4577e25712246f723976a8750@news.povray.org>
Very good!  Specially the smoke and explosion! :)

But, John, i don't think that fire is much realistic.  You can get a much
better result by making the absorption media colors in the density map the
inverse of what they are in the emission block.  That way, the absorption
media will absorb the inverted color and let go the same color as in the
emission block.

You may try the modification i did:

#macro denFireBall( is_emitting )
density{
  spherical
  turbulence .3 lambda 3
  #macro fac( colr )
        #if (is_emitting)
                (colr)
        #else
                (1-colr)
        #end
  #end
  density_map {
    [.01 rgb 0]
    [.01 rgb fac(<1,0,0>)]
    [1/4 rgb fac(<1,.5,0>)]
    [2/4 rgb fac(<1,1,0>)]
    [3/4 rgb fac(<1,1,1>)]
  }
}
#end

sphere { 0,2 hollow no_shadow
  texture { pigment { rgbt 1 } }
  interior {
    media { emission 2
      //density { denFireBall }
      denFireBall( yes )
    }
    media { absorption 2
      //density { denFireBall }
      denFireBall( no )
    }
  }
}


Post a reply to this message

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