POV-Ray : Newsgroups : povray.binaries.images : Aftermath revisited : Re: Aftermath revisited Server Time
30 Jul 2024 04:11:01 EDT (-0400)
  Re: Aftermath revisited  
From: Thomas de Groot
Date: 23 Aug 2013 08:00:36
Message: <52174ee4@news.povray.org>
On 23-8-2013 11:38, Stephen wrote:
> I would be very interested to see that, indeed.
> I've never managed to find a way to do it. Rune's lightning include uses
> megapov's glow feature.

I don't remember when I got this (2010 apparently) but in Rune's macro 
you can replace the glow code by (at line 39):

//start code
       //glow is obsolete in recent versions (3.6+). Replaced by the 
following code (Reactor, April 2010 in povray.newusers):
       //glow {location PointM type 0 color 
ElectricColor(ValueM)*Brightness #if(Thickness>0) radius Thickness #end}
       //start new code:
       sphere {
         <0,0,0>, 1
         pigment { color rgbt 1 }
         interior {
           #local M_samples = 15;
           #local M_variance = 1/500;
           media {
             //intervals 1	//default
             samples M_samples
             //confidence 1 - M_variance	//obsolete
             //variance m_variance	//obsolete
             emission color rgb 1
             //method 3	//default
             //aa_threshold 0.1	//default
             //aa_level 4	//default
             //jitter 0.5
             density {
               spherical
               poly_wave 1.5
               color_map{
                 [0.00 color rgb 0 ]
                 //[0.80 color rgb ElectricColor(ValueM)*Brightness*2 ]
                 //[0.90 color rgb <1,1,1>*Brightness*75  ]
                 //[1.00 color rgb <1,1,1>*Brightness*200 ]
                 //or this? (Alain)
                 [0.80 color rgb 
ElectricColor(ValueM)*Brightness/Thickness ]
                 [0.90 color rgb <1,1,1>*Brightness/Thickness  ]
                 [1.00 color rgb <1,1,1>*Brightness/Thickness ]
               }
             }
           }
         }
//end code

It works well. Also repalce the #version directive of course.

Thomas


Post a reply to this message

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