Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Couldnt wrap BSDF

asked 2019-03-27 03:57:21 -0600

Hi all, Ive been playing around with the genBSDF on windows on rad files generated through HoneyBee legacy in grasshopper.

i use the msh2rad in HB and this generated two radiance files, one for materials and one for the geometry. I then merge the two files in a text editor, adding the material before the geometry. this can be done in windows through a batch command:

copy material_testrad001.rad+testrad001.rad testrad001combined.rad

I saw John's post here

I tried running genBSDF through perl and radiance included in Openstudio 2.4.

C:\openstudio-2.4.0\Perl\perl\bin\perl.exe c:\radiance\bin\ -r "-ad 10000 -ab 3" +b -t4 7 -c 160000 +forward +backward +geom meter material_testrad001.rad testrad001.rad> myBSDF_t4_test.xml

When i run genBSDF with a fairly simple geometry the output is "Recover using <filepath>". When i run the recovery file, then i'm getting this error:

rcontrib: fatal - cannot recover ASCII output Failure running rfluxmtx at C:\radiance\bin\ line 357.

Any clues what this may be?


Got rid of this error by calling the perl script directly (I have strawberry Perl installed):

SET RAYPATH=.;c:\radiance\lib
::Merging the two honeybee rad files
copy material_testrad001.rad+testrad001.rad testrad001combined.rad -r "-ad 1000 -ab 1" +b +geom meter testrad001combined.rad > myBSDF_klems.xml

Now it runs for a while and then outputting errors:

C:\ladybug\BSDF_test\testrad001\MSH2RADFiles> -r "-ad 1000 -ab 1" +b +geom meter testrad001combined.rad 1>myBSDF_klems.xml wrapBSDF: only one XML input allowed Usage: wrapBSDF [-W][-c][-a {kf|kh|kq|t3|t4}][-u unit][-g geom][-f 'x=string;y=string'] [-s spectr][-tb inp][-tf inp][-rb inp][-rf inp][-C comm] [input.xml] Could not wrap BSDF data

Any clues why this may be? I was guessing regional/formatting settings but i might be completely wrong.

I tried the "simple mirror" example from Greg from here, and that worked fine, so guess my installations and path etc should be OK.

I've attached all my working files here:

Screenshot of setup in HoneyBee:

Thanks very much - hopyfully more people get a hang of combining HoneyBee with BSDF generation.

/Mathias Sønderskov Nielsen

edit retag flag offensive close merge delete


A better place to post this question is Radiance forum:

Mostapha Roudsari gravatar image Mostapha Roudsari  ( 2019-03-27 13:44:53 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-03-28 09:21:48 -0600

rcontrib can only recover from binary output formats, not ASCII.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools


Asked: 2019-03-27 03:57:21 -0600

Seen: 242 times

Last updated: Mar 28 '19