POV-Ray : Newsgroups : povray.binaries.scene-files : Candle-Flames Server Time
2 Sep 2024 18:20:26 EDT (-0400)
  Candle-Flames (Message 1 to 3 of 3)  
From: Jens Nober
Subject: Candle-Flames
Date: 16 Oct 2000 13:10:28
Message: <39EB3683.5C4E5004@stud.informatik.uni-trier.de>
Hi,

here is the source for my flames. ( Images in povray.binaries.images,
"Newbies first flame" ).

They are not perfect --- yet. I'm working on it.

Jens
--------------



#include "colors.inc"

camera {
    location <0,1.5,-9>
    look_at <0,1.5,0>
}                  

light_source {
    <6,2,-10> color White
}         

#declare flame1 = cylinder { <0,-1,0>, <0,4.5,0>, 1
    pigment { rgbt 1 }
    
    hollow
    
    interior {
        media {
            emission 1
            //scattering{1,.01}
            intervals 60
            samples 1, 1
            confidence 0.999
            variance 1/100   
             
            density {
                  spherical
                  turbulence 0.1     
                  scale <1, 4, 1>  
                  translate <0,.5,0>
                  color_map{
                      [ 0 rgb 0]
                      [ .1 rgb <0.980392, 0.768627, 0.039216>] 
                      [.3 color 1*Yellow]    
                  }
            }  
            
            density {
                spherical  
                turbulence .05  
                scale <.85,2.5,.85> 
                translate <0,-.75,0>
                color_map {
                    [ 0 rgb 1]
                    [ .3 color Yellow]//.75 * Yellow] 
                    [ .6 rgb 0]
                }
            }
            
            density {
                gradient y 
                scale <1,4,1>
                translate <0,1.5,0>
                color_map {
                    [ 0 rgb 1]
                    [ 1 rgb 0]
                }
            } 
            scale .5
        }        
    } 
}     

#declare flame2 = cylinder { <0,-1,0>, <0,4.5,0>, 1
    pigment { rgbt 1 }
    
    hollow
    
    interior {
        media {
            emission 1
            //scattering{1,.01}
            intervals 60
            samples 1, 1
            confidence 0.999
            variance 1/100   
             
            density {
                  spherical  
                  turbulence 0.15       
                  scale <1, 4, 1>  
                  translate <0,.5,0>
                  color_map{
                      [ 0 rgb 0]
                      [ .1 rgb <0.980392, 0.768627, 0.039216>]    
                      [.3 color 1.25*Yellow]    
                  }
            }  
            
            density {
                spherical  
                turbulence .1
                scale <.85,2.5,.85> 
                translate <0,-.75,0>
                color_map {
                    [ 0 rgb 1]
                    [ .3 color Yellow]//.75 * Yellow] 
                    [ .6 rgb 0]
                }
            }
            
            density {
                gradient y 
                scale <1,4,1>
                translate <0,1.5,0>
                color_map {
                    [ 0 rgb 1]
                    [ 1 rgb 0]
                }
            } 
            scale .5
        }        
    } 
}   

#declare flame3 = cylinder { <0,-1,0>, <0,4.5,0>, 1
    pigment { rgbt 1 }
    
    hollow
    
    interior {
        media {
            emission 1
            //scattering{1,.01}
            intervals 60
            samples 1, 1
            confidence 0.999
            variance 1/100   
             
            density {
                  spherical 
                  turbulence 0.25     
                  scale <1, 4, 1>  
                  translate <0,.5,0>
                  color_map{
                      [ 0 rgb 0]
                      [ .1 rgb <0.980392, 0.768627, 0.039216>]    
                      [.3 color 1*Yellow]    
                  }
            }  
            
            density {
                spherical  
                turbulence .15
                scale <.85,2.5,.85> 
                translate <0,-.75,0>
                color_map {
                    [ 0 rgb 1]
                    [ .3 color Yellow]//.75 * Yellow] 
                    [ .6 rgb 0]
                }
            }
            
            density {
                gradient y 
                scale <1,4,1>
                translate <0,1.5,0>
                color_map {
                    [ 0 rgb 1]
                    [ 1 rgb 0]
                }
            } 
            scale .5
        }        
    } 
}  

union {  
    light_source { 
        <0,2,0> color Yellow 
        looks_like {
            object { flame1 }
        }
        shadowless
        translate <0,-.85,0>  
    }  
      
    cylinder {  <0,-3,0>, <0,0,0>, 1
        pigment { color White }
    } 
    
    cylinder {  <0,-.1,0>, <0,.8,0> .1
        pigment { color Black }
    } 
    translate <-4,0,0>
}  

union {  
    light_source { 
        <0,2,0> color Yellow 
        looks_like {
            object { flame2 }
        }
         shadowless
        translate <0,-.85,0>  
    }  
      
    cylinder {  <0,-3,0>, <0,0,0>, 1
        pigment { color White }
    } 
    
    cylinder {  <0,-.1,0>, <0,.8,0> .1
        pigment { color Black }
    } 
}     

union {  
    light_source { 
        <0,2,0> color Yellow 
        looks_like {
            object { flame3 }
        }
        shadowless
        translate <0,-.85,0>  
    }  
      
    cylinder {  <0,-3,0>, <0,0,0>, 1
        pigment { color White }
    } 
    
    cylinder {  <0,-.1,0>, <0,.8,0> .1
        pigment { color Black }
    }  
    translate <4,0,0>
}


Post a reply to this message

From: Robert Chaffe
Subject: Re: Candle-Flames
Date: 16 Oct 2000 21:24:47
Message: <39EBAA83.7F6274E5@airmail.net>
Jens Nober wrote:
> 
> Hi,
> 
> here is the source for my flames. ( Images in povray.binaries.images,
> "Newbies first flame" ).
> 
> They are not perfect --- yet. I'm working on it.
> 
> Jens
> --------------

> [ snip ]

Thanks.   rc


Post a reply to this message

From: Matt Giwer
Subject: Re: Candle-Flames
Date: 11 Nov 2000 19:45:51
Message: <3A0DE83F.82ADB8D9@ij.net>
Jens Nober wrote:

> Hi,

> here is the source for my flames. ( Images in povray.binaries.images,
> "Newbies first flame" ).

> They are not perfect --- yet. I'm working on it.

	Attached you will find the candle flame I used in last year's halloween
competition, the cockroach in the mirror. They were the only lights in
the scene and no mirror. 

	The shape is "teardrop" which is fairly close. The two colored light
will imitate the coloring of the flame so it works close in. That they
are jittered area lights means they will give the proper color shadows
with ill-defined edges. 

	I cheated in creating this by actually buying a candle and studying the
flame and shadow plus throwing in some physics, i.e., hot inside so an
IOR less than one. 

-- 
You know you are a bigot if you wonder what 
Jessie Jackson does for a living. 
	-- The Iron Webmaster, 162


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

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