POV-Ray : Newsgroups : moray.binaries : Ken's Candle Texture Server Time
28 Jun 2024 23:57:06 EDT (-0400)
  Ken's Candle Texture (Message 1 to 6 of 6)  
From: Lutz Kretzschmar
Subject: Ken's Candle Texture
Date: 21 Sep 1999 13:57:16
Message: <37e8c3f4.32384556@194.174.214.110>
Hi Ken,

this is the resulting image for the candle code, a screenshot of
Moray's Material Editor with the texture and the material in Moray's
Material Library format. 

This is the verbatim copy of the material that Moray exported:

#declare FlameTexture = 
   material  // FlameTexture
   {   
      texture
      {      
         pigment
         {
            color rgbt <1.0, 1.0, 1.0, 1.0>
         }
      }   
      interior
      {
         media
         {
            intervals 20
            confidence 0.999
            variance 1.0/100.0
            emission rgb <1.0, 1.0, 1.0>
            scattering
            {
               1 ,  rgb <0.01, 0.01, 0.01> // isotropic scattering
            }
            density
            {
               spherical
               color_map
               {
                  [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 1.0     rgbft <5.0, 3.0, 0.0, 0.0, 0.0> ]
               }
               turbulence 0.4
               lambda 1.0
               cubic_wave
               scale  <0.8, 1.0, 0.8>
            }
            density
            {
               gradient y
               color_map
               {
                  [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
               }
               cubic_wave
               translate 1.0 * y
            }
            density
            {
               gradient y
               color_map
               {
                  [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
               }
               poly_wave 0.5
            }
         }
      }
   }

Granted, it doesn't parse as fast as your obfuscated POV code.....
relax, just kidding <g> (about the obfuscated).

I did have to look at the POV-Ray docs to figure out what your code
was doing in two places<G>.

And you did help me to discover one bug related to reloading a texture
from file with out-of-range values. Thanks!

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message


Attachments:
Download 'candle.gif' (3 KB) Download 'candletex.gif' (6 KB) Download 'CandleFlame.mtx.dat' (2 KB)

Preview of image 'candle.gif'
candle.gif

Preview of image 'candletex.gif'
candletex.gif

From: Steven Durham
Subject: Re: Ken's Candle Texture
Date: 22 Sep 1999 14:00:38
Message: <37e91946@news.povray.org>
Lutz Kretzschmar <lut### [at] stmuccom> wrote in message
news:37e8c3f4.32384556@194.174.214.110...

Hi Lutz,
could you please tell me how to copy this material into my textlib files?
Thank you
Steven



> Hi Ken,
>
> this is the resulting image for the candle code, a screenshot of
> Moray's Material Editor with the texture and the material in Moray's
> Material Library format.
>
> This is the verbatim copy of the material that Moray exported:
>
> #declare FlameTexture =
>    material  // FlameTexture
>

>       texture
>

>          pigment
>          {
>             color rgbt <1.0, 1.0, 1.0, 1.0>
>          }
>       }
>       interior
>       {
>          media
>          {
>             intervals 20
>             confidence 0.999
>             variance 1.0/100.0
>             emission rgb <1.0, 1.0, 1.0>
>             scattering
>             {
>                1 ,  rgb <0.01, 0.01, 0.01> // isotropic scattering
>             }
>             density
>             {
>                spherical
>                color_map
>                {
>                   [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
>                   [ 1.0     rgbft <5.0, 3.0, 0.0, 0.0, 0.0> ]
>                }
>                turbulence 0.4
>                lambda 1.0
>                cubic_wave
>                scale  <0.8, 1.0, 0.8>
>             }
>             density
>             {
>                gradient y
>                color_map
>                {
>                   [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
>                   [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
>                }
>                cubic_wave
>                translate 1.0 * y
>             }
>             density
>             {
>                gradient y
>                color_map
>                {
>                   [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
>                   [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
>                }
>                poly_wave 0.5
>             }
>          }
>       }
>    }
>
> Granted, it doesn't parse as fast as your obfuscated POV code.....
> relax, just kidding <g> (about the obfuscated).
>
> I did have to look at the POV-Ray docs to figure out what your code
> was doing in two places<G>.
>
> And you did help me to discover one bug related to reloading a texture
> from file with out-of-range values. Thanks!
>
> - Lutz
>   email : lut### [at] stmuccom
>   Web   : http://www.stmuc.com/moray
>
>


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Ken's Candle Texture
Date: 23 Sep 1999 04:27:32
Message: <37e9e488.2182578@194.174.214.110>
Hi Steven Durham, you recently wrote in moray.binaries:

> could you please tell me how to copy this material into my textlib files?
All you need to do is place the MTX attachment into the TexLibs
directory. Then it will be available in the Material Library in the
Material Editor.

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Arne Kleinophorst
Subject: Re: Ken's Candle Texture
Date: 25 Sep 1999 23:11:48
Message: <37ED8D93.702D3D90@metronet.de>
Lutz Kretzschmar schrieb:
> 
> Hi Steven Durham, you recently wrote in moray.binaries:
> 
> > could you please tell me how to copy this material into my textlib files?
> All you need to do is place the MTX attachment into the TexLibs
> directory. Then it will be available in the Material Library in the
> Material Editor.

Well, at least, that's what its supposed to be like. But could it be
that you've changed the mtx file format as well. Because with this mtx
moray's just showing me a folder icon and keeps telling me that there's
no texture inside.

Any suggestions?

Arne Kleinophorst


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Ken's Candle Texture
Date: 26 Sep 1999 06:49:04
Message: <37edf31f.4167652@194.174.214.110>
Hi Arne Kleinophorst, you recently wrote in moray.binaries:

> Well, at least, that's what its supposed to be like. But could it be
> that you've changed the mtx file format as well. 
Ooops. Yes, you're right I'm very sorry. You know you've been
programming with too little sleep when the users tell you what you've
been programming.

> Any suggestions?
At the moment, no. Recreate the texture yourself, maybe?

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Bill Hedge
Subject: Re: Ken's Candle Texture
Date: 13 Oct 1999 23:29:20
Message: <38054e10@news.povray.org>
>....
>Recreate the texture yourself, maybe?
>
> - Lutz

I went ahead and did it myself. Also, you may need to refresh the Material
Libraries list in order to make it appear correctly. I attached the version
of the file I made in case there was something wrong with the original that
was posted.

Bill


Post a reply to this message


Attachments:
Download 'CandleFlame.mtx.dat' (2 KB)

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