POV-Ray : Newsgroups : povray.binaries.images : Had some fun playing with media....(~6K) : Re: Had some fun playing with media....(~6K) Server Time
19 Aug 2024 02:24:28 EDT (-0400)
  Re: Had some fun playing with media....(~6K)  
From: AC
Date: 1 Feb 2001 13:08:07
Message: <3a79a607@news.povray.org>
"Bob H."
<per### [at] aolcom?subject=PoV-News:%20&body=Relating%20to%20POV-Ray:>
wrote in message news:3a790b10$1@news.povray.org...

> Always.  Except this is not an entirely simplistic render to me.  Looks
like
> media used for the white semi-spiral shapes but it plays tricks on the
eyes.

The white  semi-spiral effect is caused by a density map
look at the scource below (povray 3.1 G).
Ambis
-----------------------------
camera {
   location <2,2,2>
   look_at  <0,0,0>
}

light_source {<2,2,2>,rgb 2}

/*xxxxx Textures & color maps EP 1-3 xxxxxxxxxxx */
/*---------------------------  */
#declare Ep1_map =
color_map {
    [0.00 rgbt <0,0,0,1>]
    [0.75 rgbt <0,0,0,1>]
    [0.85 rgbt <0,0,1,.5>]
    [1.00 rgbt <0,0,1,0>]
}
#declare Ep1 =
texture {pigment {
    spiral1 1
    scale 1
    turbulence .0
    color_map { Ep1_map }
}}
/* ------------------------ */
#declare Epfinish =
        texture {
                pigment {rgbt <0,0,0,1>}
                finish { ambient 0 diffuse 0 }
                 }

#declare Etexture =
texture {Ep1}
texture {Epfinish}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
/* media part  */
#declare Emedia =

        media {
        file://absorption <.3,.3,0>
        file://emission  1
        scattering {1,rgb 1}
        intervals 10
        samples 4,4
        density {
                spiral1 1  ramp_wave
                turbulence 0
                density_map {
                [ 0.00 rgb 0 ]
                [ 0.25 rgb .5 ]
                [ 0.50 rgb 0 ]
                [ 1.75 rgb .5 ]
                [ 1.00 rgb 0 ]
                }
        } }

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  */

#declare EMaterial =
material {
   texture { Etexture }
   interior { media {Emedia}}
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  */


sphere { <0,0,0>,1
   material { EMaterial }
   hollow
}


Post a reply to this message

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