POV-Ray : Newsgroups : povray.newusers : Rays of light Server Time
26 Nov 2024 12:36:17 EST (-0500)
  Rays of light (Message 1 to 6 of 6)  
From: Thesmophoriazusae
Subject: Rays of light
Date: 26 May 2004 12:25:00
Message: <web.40b4c3d7848c518523b75e950@news.povray.org>
How might one simulate the effect of rays of light shooting though an
opening, as if there were dust in the air?


Post a reply to this message

From: Phil Cook
Subject: Re: Rays of light
Date: 26 May 2004 12:37:33
Message: <opr8l8fjw2efp2ch@news.povray.org>
On Wed, 26 May 2004 12:20:39 EDT, Thesmophoriazusae <pan### [at] aolcom>  
wrote:

> How might one simulate the effect of rays of light shooting though an
> opening, as if there were dust in the air?

for more info check out Media in the help file.
something like:
box{0,10 pigment{rgbt 1} hollow interior {
media {
scattering { 1, rgb 0.1}
}}}

with a cylinder light-source shining through it might be a easy start.  
Change the rgb 0.1 up or down if it's too bright or not visible. Have fun.

HTH

--
Phil Cook

-- 
All thoughts and comments are my own unless otherwise stated and I am  
happy to be proven wrong.


Post a reply to this message

From: Thesmophoriazusae
Subject: Re: Rays of light
Date: 26 May 2004 12:40:01
Message: <web.40b4c7a3f9e87e7a23b75e950@news.povray.org>
So since I have a little bit of time, I'll elaborate...I have an object with
a lot of holes in it.  I want an effect kind of like a jack o lantern, but
with the rays of light coming out being faintly visible.  I'm guessing this
has something to do with media, but I'm not really sure.

Chris


Post a reply to this message

From: ingo
Subject: Re: Rays of light
Date: 26 May 2004 13:31:09
Message: <Xns94F5C6912F61Cseed7@news.povray.org>
in news:web.40b4c7a3f9e87e7a23b75e950@news.povray.org Thesmophoriazusae 
wrote:

> I want an effect kind of like a jack o lantern, but
> with the rays of light coming out being faintly visible. 

The basic steps: Put your lantern inside a 'big' sphere with a complete 
transparent texture, also make shure the sphere is 'hollow'. To this 
sphere add a scattering media with a spherical density scaled to the size 
of your sphere. 

Ingo


Post a reply to this message

From: Warp
Subject: Re: Rays of light
Date: 26 May 2004 14:04:45
Message: <40b4dc3d@news.povray.org>
Thesmophoriazusae <pan### [at] aolcom> wrote:
> How might one simulate the effect of rays of light shooting though an
> opening, as if there were dust in the air?

  The 3.6 documentation will have some simple examples about this.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Thesmophoriazusae
Subject: Re: Rays of light
Date: 26 May 2004 15:25:01
Message: <web.40b4ef07f9e87e7a23b75e950@news.povray.org>
Thank you for the tips, I will try both techniques.

Chris


Post a reply to this message

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