POV-Ray : Newsgroups : povray.text.tutorials : Flames??? Server Time
5 May 2024 00:52:16 EDT (-0400)
  Flames??? (Message 1 to 2 of 2)  
From: SHELLEYB1
Subject: Flames???
Date: 6 Feb 1999 21:10:48
Message: <36BCF5A4.63CF@prodigy.net>
Does anyone know how to make a realistic flame for a match????


Post a reply to this message

From: Richard
Subject: Re: Flames???
Date: 13 Feb 1999 12:01:08
Message: <34AB306A.FF4D04B6@geocities.com>
Here's code for a pretty cool looking flame that I dug up somewhere in
this newsgroup.


#declare fire =
sphere { 0, 1
  pigment {rgbf<1,1,1,1>}
  interior {
    media {
      //scattering { 1, rgb <1,1,1> }
      emission 1
      intervals 30
      samples 10, 10
      confidence 0.9999
      variance 1/1000
      density {
       spherical
       scallop_wave
        turbulence 0.9
        color_map {
          [0.0 color rgb <0, 0, 0>] //You need this
          [0.25 color rgb <1, 0., 0>]
          [0.5 color rgb <1, 1, 0>]
          [0.75 color rgb <1, 0, 0>]
          [1.0 color rgb <0, 0, 0>]// you need this
        }
        scale 0.5 //you need this
      }
    }
  }
  scale 3
  scale <1,3,1>
  hollow
}

difference {
object {fire scale <.3,.3,.3> translate y*.25}
box {<-10,0,-10>,<10,-10,10>}
}


Post a reply to this message

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