POV-Ray : Newsgroups : povray.binaries.images : Anybody Know How To Make Smoke? <34k jpg> : Re: Anybody Know How To Make Smoke? <34k jpg> Server Time
3 Oct 2024 21:22:38 EDT (-0400)
  Re: Anybody Know How To Make Smoke? <34k jpg>  
From: Chris Huff
Date: 7 Jan 2000 09:54:05
Message: <chrishuff_99-71593F.09541407012000@news.povray.org>
In article <3875f3e3@news.povray.org>, "Gail Shaw" 
<gsh### [at] monotixcoza> wrote:

> Do you have an example handy? I tried that yesterday and my entire 
> container
> was filled with media, instead if the spiral that the function describes.

Here is a simple function that I came up with, it should be a good start 
for the density function.
The media itself needs a lot of work, though.

box {<-4, 0,-4>, < 4, 10, 4>
   pigment {color White filter 1}
   hollow
   interior {
      media {
         scattering {1, color White*10 extinction 0.15}
         intervals 1 samples 20, 20
         variance 1/128 confidence 0.99
         method 3
         density {
            function {
               max(0,min(1,
                  (y*0.25+noise3d(x,y,z))-
                  (
                     sqr(x+noise3d(x,y,z))+
                     sqr(z+noise3d(x,y,z))
                  )
               ))
            }
            color_map {
               [0 color Black]
               [1 color White]
            }
         }
      }
   }
}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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