POV-Ray : Newsgroups : povray.binaries.images : I'm making some objects for my scene and here is one of em : Re: I'm making some objects for my scene and here is one of em Server Time
16 Aug 2024 00:20:35 EDT (-0400)
  Re: I'm making some objects for my scene and here is one of em  
From: Marc Jacquier
Date: 7 Apr 2002 16:42:18
Message: <3cb0af2a$1@news.povray.org>
Hi may be you can use
a material with a transmit 1 pigment, an interior and a media emitting or
scattering for the flame.
don't forget to declare your object a hollow otherwise media don't work
I used that for a candle flame with a light in the flame


#declare flame=    material  // flamme_1
   {
      texture
      {
         pigment
         {
            color rgbt <1.0, 1.0, 1.0, 1.0>
         }
         finish
         {
            ambient 0.0
            diffuse 0.0
            phong 0.            specular 0.
         }
      }
      interior
      {
         media
         {
            scattering
            {
               1 ,  rgb <0.604167, 0.208333, 1.0> // isotropic scattering
            }
            density
            {
               spherical
               scale  1.5
            }
         }
         media
         {
            scattering
            {
               1 ,  rgb <0.5, 0.3125, 0.0> // isotropic scattering
            }
         }
      }
   }


Post a reply to this message

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