POV-Ray : Newsgroups : povray.general : From <1 second Rendertime to >1 hr just by adding AA 0.3 : Re: From <1 second Rendertime to >1 hr just by adding AA 0.3 Server Time
17 May 2024 03:29:57 EDT (-0400)
  Re: From <1 second Rendertime to >1 hr just by adding AA 0.3  
From: clipka
Date: 4 Jan 2016 10:15:14
Message: <web.568a8c04df298e78ad6fa18f0@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> Question: I think the conserve_energy helps & turns the background dark
> because we cannot both reflect at >=1 and transmit at >=1. In other
> words, we don't see through the r=30 sphere to the plane with the
> granite pigment. Is this understanding correct?


To be precise, conserve_energy ensures that transmission is attenuated in
accordance with variable reflection, so that as effective reflection increases,
the effective transmission decreases accordingly. If transmission is set to 1
and reflection is set to 0 and 1 (min and max, respectively), then the effective
transmission plus effective reflection will be kept constant at 1. (Filter, too,
is subject to the same level of attenuation.)

In mathematical terms, given variable reflection with values REFL_MIN and
REFL_MAX, and transmit and filter set to TRANS and FILTER respectively, the
effective reflection, transmission and filter will be

    REFL_EFF   =   x   * (REFL_MAX - REFL_MIN) + REFL_MIN
    TRANS_EFF  = (1-x) * TRANS
    FILTER_EFF = (1-x) * FILTER

where x depends on the angle at which we are looking at the surface.


You could also say that using conserve_energy makes variable reflection blend
between reflection and transmission/fiter, rather than just varying the
reflection component.


Post a reply to this message

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