Spectral rendering demo: "picture too dark or too bright"

Dear Radiance community,

I would like to do spectral rendering with Radiance using the N-step algorithm (Ruppertsberg & Bloj, 2008, http://www.ncbi.nlm.nih.gov/pubmed/18411553 ). The idea is to model surface reflectance in terms of average radiance per waveband rather than RGB values.

I tried to run their demo code and I think I'm really close to reproducing their results :slight_smile: However, when I run their bash script, I cannot get rid of the following error:

"pfilt: picture too dark or too bright
pvalue: missing resolution"

I suspect that my definition of the light source is not processed properly in the scene description. (On the other hand it does NOT tell me that "no light source" has been found.) Anyway, there is nothing to see in the resulting image.

I created my light source using ies2rad, as described in that paper. It didn't work right away so I had to make a few adjustments. For example, no lamp type was specified in the original code. So I called ies2rad with the "-t default" option.

Here is the file that was created by ies2rad :

# ies2rad -p stimuli/radiance/hyperspectral/Ruppertsberg-BRM-2008/ -c 0.000387 0.000422 0.000435 -o mylight -t default
# Dimensions in meters
#<# light.ies
#<# <# lamps> <lumens per lamp> <candela multiplier>
#<# <# vertical angles> <# horizontal angles>
#<# <photometric type> <units>
#<# <width> <length> <height>
#<# <ballast factor> <length> <height>
# 75 watt luminaire, lamp*ballast factor = 1

void brightdata mylight_dist
4 flatcorr stimuli/radiance/hyperspectral/Ruppertsberg-BRM-2008/mylight.dat source.cal src_theta
0
1 121615

mylight_dist light mylight_light
0
0
3 0.000387 0.000422 0.000435

mylight_light ring mylight.d
0
0
8
聽聽0 0 -0.00025
聽聽0 0 -1
聽聽0 0.006096

Any help would be greatly appreciated!

Best regards,
Michael

路路路

--
Michael Bannert, Dipl.-Psych.
Vision & Cognition Lab, Centre for Integrative Neuroscience, Univ. of T眉bingen & BCCN T眉bingen
Otfried-M眉ller-Str. 25, 72076 T眉bingen, Germany
Phone: +49 - (0)7071 / 29 - 89031

I would typically get too dark/light errors if the view is incorrectly oriented and not seeing any geometry. It's a simple thing, but easy to forget to check, or misinterpret coordinates, particularly if there are xform commands involved or missing.

路路路

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses