POV-Ray : Newsgroups : povray.programming : media emission value : Re: media emission value Server Time
1 Jun 2024 10:25:08 EDT (-0400)
  Re: media emission value  
From: Christoph Hormann
Date: 15 Jul 2005 11:55:02
Message: <db8m7s$m50$1@chho.imagico.de>
m1j wrote:
> 
> It seems to me that this duplicated manner would be quite slow. I was
> looking for a way to force the radiosity calculation to gather a high and
> thus brighter value from the media. 

The slowdown depends on how expensive the intersection test for the 
container is - but unless you use an extremely slow isosurface or 
similar it is unlikely that this is considerable compared to the media 
evaluation - there are no additional media calculations necessary with 
this technique.

> A media multiplier value. I was looking
> for the location in the code that this value could be placed. I speculated
> that it could be one location or many. I just did not know where to look.

The place is sample_media() in media.cpp.  As it is you don't have a way 
to determine if the evaluation is in a radiosity ray or not (the 
NO_RADIOSITY_PATCH in MegaPOV provides one though).

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 01 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

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