POV-Ray : Newsgroups : povray.newusers : Why doesn't this work? : Re: Why doesn't this work? Server Time
1 May 2024 16:05:02 EDT (-0400)
  Re: Why doesn't this work?  
From: Thomas de Groot
Date: 8 Sep 2014 06:53:11
Message: <540d8a97@news.povray.org>
For media *always* use intervals 1 (default; like method 3) and *only* 
one parameter for samples (second parameter ignored). Confidence and 
variance are default values so you can comment them out.

Try this for the Lohmueller flame:

sphere {<0, 2.7, 0>, 1 hollow
  pigment {color rgbf <1, 1, 1, 1>}
  finish { ambient 0 diffuse 0 }
  interior {
   media {
    emission color rgb<1.0,0.75,0.1>*1.75
    intervals 1
    samples 100
    //confidence 0.9999
    //variance 1/100
    density {spherical
     ramp_wave
     turbulence 0.15
     color_map {
      [0.0 color rgb <0.0,0.0,0.0>]
      [0.6 color rgb <0.8,0.3,0.0>]
      [0.9 color rgb <1.0,0.8,0.3>]
      [1.0 color rgb <1.0,1.0,0.1>]
      }  //  end color_map
     scale <1,3.5,1>
     }  //  end of density
    }  //  end of media
   }  // end interior
  }  //  end sphere


or this for the doc's flame:

sphere {<0, 2.7, 0>, 1
  pigment {rgbt 1} hollow
  interior {
   media {
    emission 1
    intervals 1
    samples 100
    density {spherical
     density_map {
      [0 rgb 0]
      [0.0 rgb <1,0,0>]
      [0.8 rgb <1,1,0>]
      [1 rgbf 1]
      }  // end density map
     scale <1,3.5,1>
     }  // end density block
    }  // end media block
   //media {absorption 0.2}
   }  // end interior
  }  // end sphere


Both work for me. Note that I scaled the spheres down! I also 
uncommented the [0 rgb 0] lines of course.

Thomas


Post a reply to this message

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