POV-Ray : Newsgroups : povray.general : help/queston about df3 media : Re: help/queston about df3 media Server Time
2 Aug 2024 14:19:26 EDT (-0400)
  Re: help/queston about df3 media  
From: Andrew Clinton
Date: 4 Oct 2004 22:27:32
Message: <pan.2004.10.05.03.24.45.65198@uwaterloo.ca>
On Mon, 04 Oct 2004 11:51:45 +0200, Christoph Hormann wrote:

> I am not completely sure but it is probably related to the use of
> multiple boxes.  Why don't you use one media container with a repetitive
> media pattern?  You can use the repeat warp or functions for that.
> 
> Christoph

From what I can tell, the reason is because it is outrageously slow. 
POV-Ray does not try to optimize containers with multiple media or density
into a bounding hierarchy, so it will be linearly slower as you increase
the number of contained media.  I've looked at this recently (because I
wanted to try to create a media waterfall), and the code could be improved
but it would require a lot of changes to the (terribly inflexible) media
code.  One more thing for the 4.0 redesign, I guess.

For the record, as far as I know you can't achieve this with multiple
objects because the media sampling needs to interact across the
repetitions for it to work, and this interaction is only supported when
you use multiple media inside a single container.

Andrew


Post a reply to this message

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