POV-Ray : Newsgroups : povray.advanced-users : Fast media sampling Server Time
1 Nov 2024 15:25:53 EDT (-0400)
  Fast media sampling (Message 1 to 7 of 7)  
From: Slime
Subject: Fast media sampling
Date: 12 Jul 2002 14:21:00
Message: <3d2f1e0c@news.povray.org>
I was just looking around www.digitalblasphemy.com and looking at all the
pictures he has with rays of light shooting through trees.

Now, I'm aware that other programs like lightwave are able to create this
effect much faster than POV-Ray does. But how do they do it? I'd be
interested in reading a bit about the algorithm used. Obviously it's not
just sampling a ray at intervals, because that would be as slow as POV-Ray
is about it. Does anyone know how it's done with other programs?

They must be storing information about the media or something. But still...

And is there a reason why POV-Ray doesn't implement one of these other
techniques?

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


Post a reply to this message

From: Simon Adameit
Subject: Re: Fast media sampling
Date: 12 Jul 2002 14:57:13
Message: <3d2f2689@news.povray.org>
Slime wrote:
> I was just looking around www.digitalblasphemy.com and looking at all the
> pictures he has with rays of light shooting through trees.
>
> Now, I'm aware that other programs like lightwave are able to create this
> effect much faster than POV-Ray does. But how do they do it? I'd be
> interested in reading a bit about the algorithm used. Obviously it's not
> just sampling a ray at intervals, because that would be as slow as POV-Ray
> is about it. Does anyone know how it's done with other programs?
>

I suppose their media can only have constant density and it only works with
meshes, am I right?
Otherwise I wouldn't see a way of doing it that much faster than POV-Ray's
media.
I saw this at a friend of mine who has Cinema 4D and asked him if he could
assign a pattern to the density of the media and he said no. He could only
turbulate it.

Simon


Post a reply to this message

From: Christopher James Huff
Subject: Re: Fast media sampling
Date: 12 Jul 2002 15:29:40
Message: <chrishuff-1B19F3.14265712072002@netplex.aussie.org>
In article <3d2f1e0c@news.povray.org>, "Slime" <slm### [at] slimelandcom> 
wrote:

> Now, I'm aware that other programs like lightwave are able to create this
> effect much faster than POV-Ray does. But how do they do it? I'd be
> interested in reading a bit about the algorithm used. Obviously it's not
> just sampling a ray at intervals, because that would be as slow as POV-Ray
> is about it. Does anyone know how it's done with other programs?

As you said, they don't sample a ray. Most likely, they use a scanline 
method, projecting layers of media onto the screen to build up an 
additive media effect.
Also, those programs are able to use assembly level optimizations and 
SIMD instructions, which POV can't take advantage of.


> And is there a reason why POV-Ray doesn't implement one of these other
> techniques?

POV-Ray is a raytracer, not a scanline renderer. (Persistance Of Vision 
*Raytracer*)

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Peter Popov
Subject: Re: Fast media sampling
Date: 13 Jul 2002 02:03:34
Message: <r2gviuorinpbdkmm2vr4v5r6r8vfsd67a0@4ax.com>
On Fri, 12 Jul 2002 14:20:58 -0400, "Slime" <slm### [at] slimelandcom> wrote:

>Now, I'm aware that other programs like lightwave are able to create this
>effect much faster than POV-Ray does. But how do they do it?

It's simple - they construct a separate shadow map for media for every
scanline by projecting the meshes onto the plane defined by the
scanline and the camera origin using the light source as a projection
origin (multiple overlayed shadow maps merged into one in the case of
multiple light sources).


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Slime
Subject: Re: Fast media sampling
Date: 13 Jul 2002 15:45:26
Message: <3d308356$1@news.povray.org>
> It's simple - they construct a separate shadow map for media for every
> scanline by projecting the meshes onto the plane defined by the
> scanline and the camera origin using the light source as a projection
> origin (multiple overlayed shadow maps merged into one in the case of
> multiple light sources).


Ah! That makes sense! If I'm understanding correctly.

Too bad POV-Ray can't do this.

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


Post a reply to this message

From: Slime
Subject: Re: Fast media sampling
Date: 13 Jul 2002 20:50:52
Message: <3d30caec$1@news.povray.org>
> I suppose their media can only have constant density and it only works
with
> meshes, am I right?
> Otherwise I wouldn't see a way of doing it that much faster than POV-Ray's
> media.
> I saw this at a friend of mine who has Cinema 4D and asked him if he could
> assign a pattern to the density of the media and he said no. He could only
> turbulate it.


Mmm. Well, that's not really the worst restriction in the world. It still
allows for large areas of fog, which is what you really need the speed for,
usually.

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


Post a reply to this message

From: Slime
Subject: Re: Fast media sampling
Date: 13 Jul 2002 20:52:39
Message: <3d30cb57@news.povray.org>
> > And is there a reason why POV-Ray doesn't implement one of these other
> > techniques?
>
> POV-Ray is a raytracer, not a scanline renderer. (Persistance Of Vision
> *Raytracer*)


Yes... I figured it would probably have to do with the scanline method these
programs use, though I was still unsure how they did it using that method.

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


Post a reply to this message

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