genBSDF: Errors encountered

Hello,

I have two questions about two errors I have encountered using genBSDF on
Windows:

Following the Example-1 in the genBSDF Tutorial (
http://www.radiance-online.org/learning/tutorials/Tutorial-genBSDF_v1.0.1.pdf),
I have encountered the following error messages:

Windows 7 (64-bit)
Radiance 5

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0
D:/tutorialBSDF/blinds.rad > D:/tutorialBSDF/blinds.xml"

Error: "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"

Content of the blinds.rad file passed to genBSDF:

### blinds.rad
void plastic white
0
0
5 0.7 0.7 0.7 0 0
!genblinds white blinds 1 400 4 4 20 | xform -rz -90 -rx -90 -t 0 0
-0.939693

2- as shown in the command in questions 1, I have to provide the absolute
path of the .rad file that is passed to genBSDF as well as the absolute
path of the .xml file where the consequent BSDF data should be saved as.
Otherwise, if I provide the relative path based on my current working
directory (passing the relative path as "blinds.rad" and "blinds.xml"), I
encounter a "Segmentation fault". This is despite the fact that my working
directory is already set to the directory where the blinds.rad file is
saved in and the blinds.xml file should be saved to.

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0
blinds.rad > blinds.xml"

Error: "Segmentation fault"

In addition, I was wondering if there are any solutions to visualize a
Tensor-tree BSDF data file produced by genBSDF on Windows?

Thank you in advance for your assistance.
Regards,

Alireza

Hi Alireza,

This is an error we hadn't noticed in the genBSDF script that shows up on Windows because it doesn't use single-quoted strings. I have just checked in a fix, which I can send you separately if you don't want to wait for the installer to be updated.

Thanks for informing us!

Best,
-Greg

···

From: Alireza Hashemloo <[email protected]>
Subject: [Radiance-general] genBSDF: Errors encountered
Date: February 7, 2016 3:45:18 PM PST

Hello,

I have two questions about two errors I have encountered using genBSDF on Windows:

Following the Example-1 in the genBSDF Tutorial (http://www.radiance-online.org/learning/tutorials/Tutorial-genBSDF_v1.0.1.pdf), I have encountered the following error messages:

Windows 7 (64-bit)
Radiance 5

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0 D:/tutorialBSDF/blinds.rad > D:/tutorialBSDF/blinds.xml"

Error: "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"

Content of the blinds.rad file passed to genBSDF:

### blinds.rad
void plastic white
0
0
5 0.7 0.7 0.7 0 0
!genblinds white blinds 1 400 4 4 20 | xform -rz -90 -rx -90 -t 0 0 -0.939693

2- as shown in the command in questions 1, I have to provide the absolute path of the .rad file that is passed to genBSDF as well as the absolute path of the .xml file where the consequent BSDF data should be saved as. Otherwise, if I provide the relative path based on my current working directory (passing the relative path as "blinds.rad" and "blinds.xml"), I encounter a "Segmentation fault". This is despite the fact that my working directory is already set to the directory where the blinds.rad file is saved in and the blinds.xml file should be saved to.

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0 blinds.rad > blinds.xml"

Error: "Segmentation fault"

In addition, I was wondering if there are any solutions to visualize a Tensor-tree BSDF data file produced by genBSDF on Windows?

Thank you in advance for your assistance.
Regards,

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

Hi Greg,

Thank you for your response. I would appreciate if you could send me the
updated genBSDF script. I think I can just replace the existing version
with the updated script for windows in my Radiance/bin directory.

Best,
Alireza

···

On Sun, Feb 7, 2016 at 4:54 PM, Greg Ward <[email protected]> wrote:

Hi Alireza,

This is an error we hadn't noticed in the genBSDF script that shows up on
Windows because it doesn't use single-quoted strings. I have just checked
in a fix, which I can send you separately if you don't want to wait for the
installer to be updated.

Thanks for informing us!

Best,
-Greg

*From: *Alireza Hashemloo <[email protected]>

*Subject: *[Radiance-general] genBSDF: Errors encountered

*Date: *February 7, 2016 3:45:18 PM PST

Hello,

I have two questions about two errors I have encountered using genBSDF on
Windows:

Following the Example-1 in the genBSDF Tutorial (
http://www.radiance-online.org/learning/tutorials/Tutorial-genBSDF_v1.0.1.pdf),
I have encountered the following error messages:

Windows 7 (64-bit)
Radiance 5

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0
D:/tutorialBSDF/blinds.rad > D:/tutorialBSDF/blinds.xml"

Error: "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"

Content of the blinds.rad file passed to genBSDF:

### blinds.rad
void plastic white
0
0
5 0.7 0.7 0.7 0 0
!genblinds white blinds 1 400 4 4 20 | xform -rz -90 -rx -90 -t 0 0
-0.939693

2- as shown in the command in questions 1, I have to provide the absolute
path of the .rad file that is passed to genBSDF as well as the absolute
path of the .xml file where the consequent BSDF data should be saved as.
Otherwise, if I provide the relative path based on my current working
directory (passing the relative path as "blinds.rad" and "blinds.xml"), I
encounter a "Segmentation fault". This is despite the fact that my working
directory is already set to the directory where the blinds.rad file is
saved in and the blinds.xml file should be saved to.

Command: "genBSDF +f +b -c 500 -geom inch -dim 199 201 1.5 2.5 -0.939693 0
blinds.rad > blinds.xml"

Error: "Segmentation fault"

In addition, I was wondering if there are any solutions to visualize a
Tensor-tree BSDF data file produced by genBSDF on Windows?

Thank you in advance for your assistance.
Regards,

Alireza
_______________________________________________
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 @Alireza_Hashemloo not sure if you got this answered, but I think you can visualize tensor tree BSDFs on windows with bsdf2rad

There is a utility called bsdf2rad and a Perl script called bsdfview that calls it. It’s a bit difficult to understand the output, but it is the most general cross-platform tool.