POV-Ray : Newsgroups : povray.newusers : Making the sphere glow and be partly transloucent Server Time
26 Nov 2024 03:58:53 EST (-0500)
  Making the sphere glow and be partly transloucent (Message 1 to 2 of 2)  
From: Kent Larsson
Subject: Making the sphere glow and be partly transloucent
Date: 27 Oct 2004 15:57:07
Message: <417ffd93$1@news.povray.org>
Hi!

I have this Sphere:

sphere {
         <0, 0, 0>, 2.0
         texture {
                 pigment {
                         color rgb <1.0, 1.0, 1.0>
                 }
         }
}


I would like it to appear as if it is glowing, and is a little 
transloucent and reflects light a little bit more. I am new to PovRay, 
looked in the manual without success for the above. Ideas/help would be 
more than welcome! :-)


Post a reply to this message

From: Slime
Subject: Re: Making the sphere glow and be partly transloucent
Date: 27 Oct 2004 17:03:22
Message: <41800d1a$1@news.povray.org>
> I would like it to appear as if it is glowing

A simple glowing effect can be created by modifying the texture's finish so
that the lighting of the object relies less on light sources:

finish { // this goes in the texture block
diffuse 0.2 // lower values => external light sources have less of an effect
ambient 0.8 // higher values => object emits more light
}

> and is a little transloucent

You can create simple transparency by replacing rgb <1,1,1> with

rgb <1,1,1, 0.5> // 50% transparent

> and reflects light a little bit more.

One option is to add reflection to the finish block:

reflection 0.25 // reflect external objects with 25% brightness

or you could add a specular highlight by adding this to the finish block:

specular 0.4 // show a highlight where the light is coming from

but I believe that the specular highlight won't show up very well if the
"diffuse" value is low, since it relies on light sources and low diffuse
values reduce the effect of light sources.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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