POV-Ray : Newsgroups : povray.general : The world is glowing : Re: The world is glowing Server Time
3 Aug 2024 00:22:12 EDT (-0400)
  Re: The world is glowing  
From: Alain
Date: 18 Jun 2004 09:19:45
Message: <40d2ebf1@news.povray.org>
leseur sylvain nous apporta ses lumieres ainsi en ce 18/06/2004 02:09... :

>//Here is a Glow object, with 3 differents densities, spherical, boxed,
>cylindrical.
>//Is it possible to get an object like  Torus_glow,Text_glow,
>everything_glow  etc
>//Thanks a lot
>//Friendly
>//Sylvain
>
>
>// GLOW001
>#declare toto=  0.5/0.1  ;
>union {//Start
>#macro Glowc(GlowColor, Scale, FadeDistance, FadePower) // From Warp
>
>              // sphere  { 0, 1
>  
>
//Use a torus as a container:
          torus{.5, .25

>                        hollow
>                        no_shadow
>                        pigment   { rgbft <1,1,1,0,1> }
>                        interior  { media
>                                    { emission 1/Scale
>                                      density {
>
>///////////////////////////////////////////////////////
>        //Here is 3 ways. How to get torus form ? etc...
>
>//spherical
>//boxed
>//cylindrical
>  
>
wood rotate 90*x

>/////////////////////////////////////////
>
>                                         density_map
>                                        { [0 rgb 0]
>                                          [0.3 rgb 0] //couronne
>                                          [0.5 rgb GlowColor*.5/toto]
>                                          [1 rgb GlowColor*1]
>                                        }
>             warp {turbulence <0,0,0> octaves 4 omega 0.3 lambda 3}
>              }  scale 1
>                                      samples 1,1
>                                      intervals 1
>                                      confidence 0.1
>                                      method 3
>                                    }
>                                  }
>                        scale Scale
>                        }
>#end
>
>object {Glowc(<1,1,1>*1*1, 1 ,6,2   )}
>scale <1,1,1>
>rotate <0,0,0>
>translate <0,0,0>
>}//end GLOW
>
>
>
>
>
>
>
>
>
>//
>// ********  OBJECTS  *******
>//
>
>box {  <-1, -1, -1>, <1, 1, 1> pigment {color rgb <1,1,1>}
>  hollow
>  scale <7.234578, 15.856436, 13.15844>
>  translate  <-4.549722, -9.695265, 12.010537>
>}
>
>camera {  //  Camera Camera01
>  location  <     -2.524,     -10.435,       2.208>
>  sky       <    0.00000,     0.00000,     1.00000> // Use right
>handed-system
>  up        <        0.0,         0.0,         1.0> // Where Z is up
>  right     <    1.33811,         0.0,         0.0> // Right Vector is
>adjusted to compensate for spherical (Moray) vs. planar (POV-Ray) aspect
>ratio
>  angle         17.86818    // Vertical      13.401
>  look_at   <      0.039,      -0.151,       0.036>
>}
>
>
>light_source {   // Light001
>  <0.0, 0.0, 0.0>
>  color rgb <1.000, 1.000, 1.000>
>  photons {
>  }
>  translate  <0.984692, -14.212549, 19.073553>
>}
>
>
>
>  
>
There are other ways to have some pattern in a media.
If you want a toroidal media, use a torus as a container. I've tested 
that with a wood pigment as a density pattern and the result is interesting.
In fact, you can use just about any pigment pattern as a base for your 
density.

Alain


Post a reply to this message

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