[Radiance-general] pmapdump: -r is ignored

Axel Jacobs jacobs.axel at gmail.com
Tue Dec 5 09:20:48 PST 2017


Hi Roland,

$ getinfo tmp/lp3_g10000-c100000.cpm
tmp/lp3_g10000-c100000.cpm:
        #?RADIANCE
 mkpmap -n 32 -apg tmp/lp3_g10000-c100000.gpm 10000 -apc
tmp/lp3_g10000-c100000.cpm 100000 -apo dome_mat octrees/lightpipe3.oct
        NumPhotons      = 106896
        AvgFlux         = [1.71e-05, 1.71e-05, 1.71e-05]
        Bbox            = [14.751, 26.064, 2.950] [15.249, 26.563, 2.950]
        CoG             = [15.000, 26.313, 2.950]
        MaxDist^2       = 0.029
        FORMAT=Radiance_Caustic_kdT_Photon_Map
        VERSION=3.0k

On 5 December 2017 at 16:19, Roland Schregle <roland.schregle at gmail.com> wrote:
> On Tue, 05 Dec 2017 15:24:08 +0100, Axel Jacobs <jacobs.axel at gmail.com>
> wrote:
>
>> I am playing with a very simple room that has a light pipe in it.
>> I've created a global and a caustic photon map.  When running them
>> through pmapdump, all caustic photons have a zero radius.  I am
>> attempting to fix this with the -r option, but it gets ignored.  Is
>> this expected?
>>
>> The man page states that
>> "In cases where the distribution is substantially nonuniform (e.g.
>> highly localised caustics) the radius can be manually corrected with
>> this option."
>>
>> Does pmapdump know whether it is dealing with a 'substantially
>> nonuniform distribution', and ignore -r if it is not?
>
>
> Hi Axel,
>
> Actually, the -r option is just a scaling factor, so scaling zero doesn't
> change anything. The basic radius is derived from the cube root of the
> photon cloud's bounding box volume divided by the number of dumped spheres.
> In this case it would a imply a zero volume. What's the pmap's bbox reported
> by getinfo?
>
> --Roland
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> https://www.radiance-online.org/mailman/listinfo/radiance-general



More information about the Radiance-general mailing list