POV-Ray : Newsgroups : povray.binaries.images : SSLT candle experiment : Re: SSLT candle experiment Server Time
31 Jul 2024 00:23:42 EDT (-0400)
  Re: SSLT candle experiment  
From: Bruno Cabasson
Date: 22 Feb 2011 05:25:01
Message: <web.4d638e2e44aed71b4aa45fdf0@news.povray.org>
Good job!

Here is a more modest code snippet with emission-only media in a simple ovus
container (could be an animatable blob)

#include "colors.inc"

global_settings
{
    assumed_gamma 1
}

#declare FLAME_COLOR1 = (2*Firebrick+Goldenrod)/3;
#declare FLAME_COLOR2 = (2*Orange+Goldenrod)/3;

camera
{
    location -10*z
    angle 40
    right x*image_width/image_height
}

sphere
{
    0, 1
    hollow
    pigment {brick scale 0.5*x scale 1/250 warp {spherical}}
    scale 30
}

ovus
{
    1, 0.6
    pigment {rgbt 1}
    hollow
    interior
    {
        media
        {
            samples 5
            emission 6
            //scattering {1, White}
            //absorption 4
            density
            {
                spherical scale 2
                translate -1.5*y
                color_map
                {
                    [0 FLAME_COLOR1]
                    [0.25 FLAME_COLOR2/8]
                    [0.30 FLAME_COLOR2/8]
                    [0.40 MediumBlue/4]
                    [0.45 MediumBlue/10]
                    [0.6 rgb 0]
                }
            }
        }
    }
    scale 1.5*y
    scale 1/(1.3*1.5)

}


Post a reply to this message


Attachments:
Download 'flame.png' (50 KB)

Preview of image 'flame.png'
flame.png


 

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