POV-Ray : Newsgroups : povray.text.scene-files : fire media Server Time
1 Nov 2024 07:26:49 EDT (-0400)
  fire media (Message 1 to 5 of 5)  
From: Jonathan Rafael Ghiglia
Subject: fire media
Date: 14 Dec 2000 17:24:20
Message: <3a3947f8.9615791@news.povray.org>
I made a candle lit with an emission media.
When the background is black the flames look right, but as soon as I
add the candle to my scene the fire looks too clear, even if I
increase the amount of emission. What should I do? 
Should I add absorption or scattering media to the fire ?


Post a reply to this message

From: Elias Pschernig
Subject: Re: fire media
Date: 14 Dec 2000 17:52:53
Message: <3a394f45$1@news.povray.org>
> I made a candle lit with an emission media.
> When the background is black the flames look right, but as soon as I
> add the candle to my scene the fire looks too clear, even if I
> increase the amount of emission. What should I do?
> Should I add absorption or scattering media to the fire ?

I asked almost exactly the same 2 month ago in povray.newusers, and
someone gave me a solution which works for me:

Duplicate your complete emission media, and in the duplicate, replace
emission by absorption. Then replace all color-components by 1 -
color-components. e.g. <1,0,0.4> becomes <1-1,1-0,1-0.4> = <0,1,0.6>. To
get it look right, i then had to multiply emission and absorption
color...

This is what i have so far. It's not completely like I want it yet, but
maybe it gives you an idea:

#declare m_flame=
   material{
      texture

         pigment { color rgbf 1 }
         finish { ambient 1 diffuse 0 }
      }
      interior


         media {
            intervals 40
            emission rgb 5
            density

               spherical
               color_map

                  [0.0 color rgb <0,0,0>]
                  [0.3 color rgb <1,.6,0>]
                  [0.5 color rgb <1,.8,0>]
                  [1.0 color rgb <1,1,1>]
               }
               warp {
                  black_hole <0,0,-1> 2
                  falloff 1
                  strength 1
                  inverse
               }
               warp {
                  black_hole <0,0,1> 2
                  falloff 1
                  strength 1
               }
            }
         }

         media {
            intervals 40
            absorption rgb 8
            density

               spherical
               color_map

                  [0.0 color rgb <0,0,0>]
                  [0.3 color rgb <0,.4,1>]
                  [0.5 color rgb <0,.2,1>]
                  [1.0 color rgb <0,0,0>]
               }
               warp {
                  black_hole <0,0,-1> 2
                  falloff 1
                  strength 1
                  inverse
               }
               warp {
                  black_hole <0,0,1> 2
                  falloff 1
                  strength 1
               }
            }
         }
      }
   }


camera

   location y*-5
   up z
   right x*4/3
   direction y
}

plane {
   y,10
   material {
      texture {
         pigment {checker}
         finish {ambient .5}
      }
   }
   hollow
}


sphere {
   <0, 0, 0> 1
   material {
      m_flame
   }
   scale <.3 1 1>
   hollow
}


Post a reply to this message

From: Matt Giwer
Subject: Re: fire media
Date: 24 Dec 2000 05:01:49
Message: <3A45C98C.F764D832@ij.net>
Jonathan Rafael Ghiglia wrote:
> 
> I made a candle lit with an emission media.
> When the background is black the flames look right, but as soon as I
> add the candle to my scene the fire looks too clear, even if I
> increase the amount of emission. What should I do?
> Should I add absorption or scattering media to the fire ?

	My opinion is that emission media is not the right way to do flames and
such. Let it light itself but never use it for its surroundings. Things
have their uses but not as silver bullets. 

-- 
Omni Consumer Products
Some times you feel like a Bot
Some times you don't.
	-- The Iron Webmaster, 272


Post a reply to this message

From: Scott Hill
Subject: Re: fire media
Date: 4 Jan 2001 20:43:42
Message: <3a5526ce$1@news.povray.org>
"Matt Giwer" <jul### [at] ijnet> wrote in message
news:3A45C98C.F764D832@ij.net...
> Jonathan Rafael Ghiglia wrote:
> >
> > I made a candle lit with an emission media.
> > When the background is black the flames look right, but as soon as I
> > add the candle to my scene the fire looks too clear, even if I
> > increase the amount of emission. What should I do?
> > Should I add absorption or scattering media to the fire ?
>
> My opinion is that emission media is not the right way to do flames and
> such. Let it light itself but never use it for its surroundings. Things
> have their uses but not as silver bullets.
>

    So, how would you do it Matt ?

--
Scott Hill.
Software Engineer.
E-Mail        : sco### [at] innocentcom
PGP Key       : http://pgpkeys.mit.edu:11371
Pandora's Box : http://www.pandora-software.com

*Everything in this message/post is purely IMHO and no-one-else's*


Post a reply to this message

From: Jamie Davison
Subject: Re: fire media
Date: 5 Jan 2001 14:57:57
Message: <MPG.14c032535260b873989866@news.povray.org>
> > > I made a candle lit with an emission media.
> > > When the background is black the flames look right, but as soon as I
> > > add the candle to my scene the fire looks too clear, even if I
> > > increase the amount of emission. What should I do?
> > > Should I add absorption or scattering media to the fire ?
> >
> > My opinion is that emission media is not the right way to do flames and
> > such. Let it light itself but never use it for its surroundings. Things
> > have their uses but not as silver bullets.
> >
> 
>     So, how would you do it Matt ?

Just thought I'd point out that you're unlikely to get a response, as 
Matt Giwer has been barred from the server...

See The message in povray.general posted on the 30th of December by Ken 
Tyler, entitled : 'Announcement: Matt Giwer has been banned from 
news.povray.org'  for more details.

Bye for now,
     Jamie.


Post a reply to this message

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