POV-Ray : Newsgroups : povray.unix : Media Effects Server Time
31 Oct 2024 23:31:06 EDT (-0400)
  Media Effects (Message 1 to 6 of 6)  
From: Michael DiDonato
Subject: Media Effects
Date: 6 Nov 2002 19:13:34
Message: <3DC9B0EA.7060408@scripps.edu>
I have been using POVray for a while but one thing that really mystifies 
me is the media function. Are there any good tutorial out there? At this 
point I can't even get a glowing sphere.

Mike

-- 
*********************************
Michael DiDonato, PhD
The Scripps Research Institute
Department of Molecular Biology
Maildrop MB4
10550 North Torrey Pines Road
La Jolla, CA, 92037

Tel: (858) 784-9261
FAX: (858) 784-2277

http://www.scripps.edu/~didonato
*********************************


Post a reply to this message

From: Timothy R  Cook
Subject: Re: Media Effects
Date: 6 Nov 2002 19:59:12
Message: <3dc9bae0@news.povray.org>
Michael DiDonato wrote:
> I have been using POVray for a while but one thing that really mystifies 
> me is the media function. Are there any good tutorial out there? At this 
> point I can't even get a glowing sphere.

Three words: trial and error.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Txemi Jendrix
Subject: RE: Media Effects
Date: 6 Nov 2002 21:06:12
Message: <3dc9ca94@news.povray.org>

3DC### [at] scrippsedu...
> I have been using POVray for a while but one thing that really mystifies
> me is the media function. Are there any good tutorial out there? At this
> point I can't even get a glowing sphere.

/* Try this. It's a macro made by Warp to create
glows. Study it and change some settings in the media
statement to see the effect  */

#macro Glow(GlowColor, Scale)
  sphere
  { 0, 1 hollow no_shadow
    pigment { rgbt 1 }
    interior
    { media
      { emission 1/Scale
        density
        { spherical density_map
          { [0 rgb 0][.5 rgb GlowColor*.5][1 rgb 1]
          }
        }
        samples 1,1 intervals 1 confidence .1 // quite fast settings
        method 3
      }
    }
    scale Scale
  }
#end

camera { location -z*10 look_at 0 angle 35 }
plane { y,-2 pigment { checker rgb 1, rgb .5 } }

light_source
{ <-1.5,1,0>, <1,.5,0>
  looks_like { Glow(<1,.5,0>, .5) }
}
light_source
{ <2,.5,0>, <0,.5,1>
  looks_like { Glow(<0,.5,1>, 1) }
}

object { Glow(<0,.5,1>, 1) translate 0 }

// Bye


Post a reply to this message

From: Tom Galvin
Subject: Re: Media Effects
Date: 6 Nov 2002 21:38:01
Message: <Xns92BEDC09AD2E8tomatimporg@204.213.191.226>
Michael DiDonato <did### [at] scrippsedu> wrote in news:3DC9B0EA.7060408
@scripps.edu:

> Are there any good tutorial out there? 
> 
> Mike
> 

There are a couple here:
http://users3.ev1.net/~povstudy/i_tut1.htm


Post a reply to this message

From: Daniel Matthews
Subject: Re: Media Effects
Date: 7 Nov 2002 01:33:11
Message: <8067947.E11drtPbq7@3-e.net>
Timothy R. Cook wrote:

> Michael DiDonato wrote:
>> I have been using POVray for a while but one thing that really mystifies
>> me is the media function. Are there any good tutorial out there? At this
>> point I can't even get a glowing sphere.
> 
> Three words: trial and error.
> 
Surely in the n-dimensional space defined by the relevant variables there 
are "hot spots" that can be used as starting points?
I wonder if this is true of all function parameter sets?
The trick is to find a good way of describing and classifying these hot 
spots or attractors. A way of breeding and mixing them would be a very 
powerful tool! Imagine the libraries that could be added to the next povray 
distribution if a few of the experts started to map out some of this 
parameter space.

-- 
Your connection failed because: The POP server is out of Coke


Post a reply to this message

From: Michael DiDonato
Subject: Re: Media Effects
Date: 7 Nov 2002 15:23:52
Message: <3DCACCA4.6060408@scripps.edu>
Thanks, this helps alot.

Mike


Txemi Jendrix wrote:

> 3DC### [at] scrippsedu...
> 
>>I have been using POVray for a while but one thing that really mystifie
s
>>me is the media function. Are there any good tutorial out there? At thi
s
>>point I can't even get a glowing sphere.
> 
> 
> /* Try this. It's a macro made by Warp to create
> glows. Study it and change some settings in the media
> statement to see the effect  */
> 
> #macro Glow(GlowColor, Scale)
>   sphere
>   { 0, 1 hollow no_shadow
>     pigment { rgbt 1 }
>     interior
>     { media
>       { emission 1/Scale
>         density
>         { spherical density_map
>           { [0 rgb 0][.5 rgb GlowColor*.5][1 rgb 1]
>           }
>         }
>         samples 1,1 intervals 1 confidence .1 // quite fast settings
>         method 3
>       }
>     }
>     scale Scale
>   }
> #end
> 
> camera { location -z*10 look_at 0 angle 35 }
> plane { y,-2 pigment { checker rgb 1, rgb .5 } }
> 
> light_source
> { <-1.5,1,0>, <1,.5,0>
>   looks_like { Glow(<1,.5,0>, .5) }
> }
> light_source
> { <2,.5,0>, <0,.5,1>
>   looks_like { Glow(<0,.5,1>, 1) }
> }
> 
> object { Glow(<0,.5,1>, 1) translate 0 }
> 
> // Bye
> 
> 


-- 
*********************************
Michael DiDonato, PhD
The Scripps Research Institute
Department of Molecular Biology
Maildrop MB4
10550 North Torrey Pines Road
La Jolla, CA, 92037

Tel: (858) 784-9261
FAX: (858) 784-2277

http://www.scripps.edu/~didonato
*********************************


Post a reply to this message

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