Issues running pmap demos

Hello,

I've scoured the Internet for some pmap demos, and came up with a few scripts. The problem I am getting is in the recommended reverse ray tracing commands. I see the following errors:

rtrace: fatal - command line error at '-apd'
rtrace: fatal - command line error at '-apg'
rtrace: fatal - command line error at '-app'
rtrace: fatal - command line error at '-apc'
rtrace: fatal - command line error at '-apv'
rpict: fatal - command line error at '-apd'
rpict: fatal - command line error at '-apdb'
rtrace: fatal - command line error at '-apdb'

I understand that rpict and rtrace don't have these options (maybe they were there in earlier versions of Radiance). Is there a resource that can explain these differences? Or, is there a more recent set of demos for the pmap function? I may also be having compilation errors, so I'm pretty much open to any explanation.

At your mercy, always,
Chris

Not sure the vintage of the scripts you found from your internet scouring
exercise, but I'd recommend pulling the latest source, or grabbing an
installer no older than this tag from NREL:

Šand then referring to Roland Schregle's doc on all the photon map stuff,
here:

http://www.radiance-online.org/learning/documentation/photonmap-user-guide

YMMV, I have not used any of this stuff yet. But Radiance 5.0 official at
a minimum is required, and any old tutorials may be based on the PMAP
extensions that were Roland's thesis and may behave differently than
what's been tightened up and integrated into Radiance proper.

···

On 10/16/15, 8:57 AM, "Chris Kallie" <[email protected]> wrote:

Hello,

I've scoured the Internet for some pmap demos, and came up with a few
scripts. The problem I am getting is in the recommended reverse ray
tracing commands. I see the following errors:

rtrace: fatal - command line error at '-apd'
rtrace: fatal - command line error at '-apg'
rtrace: fatal - command line error at '-app'
rtrace: fatal - command line error at '-apc'
rtrace: fatal - command line error at '-apv'
rpict: fatal - command line error at '-apd'
rpict: fatal - command line error at '-apdb'
rtrace: fatal - command line error at '-apdb'

I understand that rpict and rtrace don't have these options (maybe they
were there in earlier versions of Radiance). Is there a resource that
can explain these differences? Or, is there a more recent set of demos
for the pmap function? I may also be having compilation errors, so I'm
pretty much open to any explanation.

At your mercy, always,
Chris

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Chris,

The options that you have listed
below are meant for mkpmap. The maps created through mkpmap are then
incorporated in rpict or rtrace through the -ap option.

As mentioned in
page 18 of the
<http://www.radiance-online.org/learning/documentation/photonmap-user-guide>,
the workflow is roughly:

mkpmap -apg globalpmap nphotons -apc causticpmap nphotons octree

rpict -ap globalpmap bwidth -ap causticpmap bwidth -ab 1 -vf view octree

I was able to get it to work on Linux as well as Windows. If you are on Linux
and interested in just rendering images, you could even use the TRAD program to
setup the pmap options for you.

Sarith

Hello,

···

On Fri, Oct 16, 2015 10:57 AM, Chris Kallie <[email protected]> wrote:

I've scoured the Internet for some pmap demos, and came up with a few
scripts. The problem I am getting is in the recommended reverse ray
tracing commands. I see the following errors:

rtrace: fatal - command line error at '-apd'
rtrace: fatal - command line error at '-apg'
rtrace: fatal - command line error at '-app'
rtrace: fatal - command line error at '-apc'
rtrace: fatal - command line error at '-apv'
rpict: fatal - command line error at '-apd'
rpict: fatal - command line error at '-apdb'
rtrace: fatal - command line error at '-apdb'

I understand that rpict and rtrace don't have these options (maybe they
were there in earlier versions of Radiance). Is there a resource that
can explain these differences? Or, is there a more recent set of demos
for the pmap function? I may also be having compilation errors, so I'm
pretty much open to any explanation.

At your mercy, always,
Chris

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Thanks Robert and Sarith,

I edited the downloaded demo files, by removing the extra letters from rtrace's and rpict's -ap options, and now they all work. Must have been a version difference. Either way, the demos are helpful supplementary to the user manual, for anyone else interested. Website: https://www.ise.fraunhofer.de/en/business-areas/energy-efficient-buildings/research-topics/lighting-technology/rd-services/lighting-simulation/radiance-photon-mapping/copy_of_photon-mapping

Thanks again!
Chris

···

On 10/16/15 11:55 AM, Sarith Subramaniam wrote:

Chris,

The options that you have listed below are meant for mkpmap. The maps created through mkpmap are then incorporated in rpict or rtrace through the -ap option.

As mentioned in page 18 of the photonmap manual <http://www.radiance-online.org/learning/documentation/photonmap-user-guide>, the workflow is roughly:

mkpmap -apg globalpmap nphotons -apc causticpmap nphotons octree

rpict -ap globalpmap bwidth -ap causticpmap bwidth -ab 1 -vf view octree

I was able to get it to work on Linux as well as Windows. If you are on Linux and interested in just rendering images, you could even use the TRAD program to setup the pmap options for you.

Sarith
On Fri, Oct 16, 2015 10:57 AM, *Chris Kallie <[email protected]>* wrote:

    Hello,

    I've scoured the Internet for some pmap demos, and came up with a few
    scripts. The problem I am getting is in the recommended reverse ray
    tracing commands. I see the following errors:

    rtrace: fatal - command line error at '-apd'
    rtrace: fatal - command line error at '-apg'
    rtrace: fatal - command line error at '-app'
    rtrace: fatal - command line error at '-apc'
    rtrace: fatal - command line error at '-apv'
    rpict: fatal - command line error at '-apd'
    rpict: fatal - command line error at '-apdb'
    rtrace: fatal - command line error at '-apdb'

    I understand that rpict and rtrace don't have these options (maybe they
    were there in earlier versions of Radiance). Is there a resource that
    can explain these differences? Or, is there a more recent set of demos
    for the pmap function? I may also be having compilation errors, so I'm
    pretty much open to any explanation.

    At your mercy, always,
    Chris

    _______________________________________________
    Radiance-general mailing list
    [email protected]
    http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi all,

the photon map parametrisation has indeed changed. Until 5.0, the -ap{g,c,v,d} parameters were symmetric between mkpmap and the renderers rtrace/rpict/rvu. It's asymmetric now for ease of use as the photon map
type can be deduced from the file header, so it's no longer necessary to explicitly specify it via these options; just an -ap will do.

I believe the scripts Chris mentioned were part of an earlier, pre-integration release from Fraunhofer ISE, and haven't been revised since the new parametrisation. It would make sense to update them and make them available via radiance-online.org, as they'd make a good starting point for new users.

Best regards,

--Roland

···

On Fri, 16 Oct 2015 17:55:21 +0200, Sarith Subramaniam <[email protected]> wrote:

--
Dr. Roland Schregle
Senior Research Associate

Lucerne University of Applied Sciences and Arts
School of Engineering and Architecture
CC Envelopes and Solar Energy (EASE)
www.hslu.ch/ccease

T direct: +41 41 349 36 26 (New)
[email protected]

Technikumstrasse 21, CH-6048 Horw (Correspondence)
Ebenaustrasse 20, CH-6048 Horw (Office)
T +41 41 349 33 11, F +41 41 349 39 60