# genBSDF for Rhino obj file

**URL:** <https://discourse.radiance-online.org/t/genbsdf-for-rhino-obj-file/6177>\
**Category:** radiance-general\
**Created:** [March 2, 2023, 8:29am UTC](https://discourse.radiance-online.org/t/genbsdf-for-rhino-obj-file/6177 "2023-03-02T08:29:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranay\_95](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/pranay_95/32/1672_2.png) [@pranay\_95](https://discourse.radiance-online.org/u/pranay_95)\
**Post date:** [March 2, 2023, 8:29am UTC](https://discourse.radiance-online.org/t/genbsdf-for-rhino-obj-file/6177/1 "2023-03-02T08:29:04Z")

</div>

Hello,

I am trying to run genBSDF to create a .xml for shade fabric materials.

I modelled a generic patch on rhino which i saved as a .obj file. Next, i used obj2rad to turn the obj file into a radiance file which i finally used for genBSDF using the command

C:\Radiance\>genBSDF +f +b -c 500 -gom meter E:\BSDFW\BSDF.rad \> E:\BSDFW\BSDF.xml

It gives me an error saying it cannot identify the object. Does anyone have a reference how i can achieve the same?

Error statement  
oconv: fatal - (C:\Users\prana\AppData\Local\Temp\genBSDF.pusMSw\device.rad): undefined modifier “object\_1”  
Could not compile scene

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [March 2, 2023, 2:48pm UTC](https://discourse.radiance-online.org/t/genbsdf-for-rhino-obj-file/6177/2 "2023-03-02T14:48:49Z")

</div>

Welcome, Pranay,

Thank you for including the error in your updated post – this is helpful to understanding your issue.

The output of Rhino does not carry the necessary material information that is needed to perform any kind of lighting simulation. This is fairly basic in Radiance, and I refer you to [Chapter 1](https://www.radiance-online.org/learning/documentation/book/ch1/ch1.pdf) of “Rendering with Radiance” for a general introduction.

Also, play close attention to the details in the [genBSDF man page](https://www.radiance-online.org/learning/documentation/manual-pages/pdfs/genBSDF.pdf) regarding the placement of geometry, which must be near to the X-Y plane but not in the positive-Z half-space.

Feel free to explore the Radiance [documentation pages](https://www.radiance-online.org/learning/documentation/manual-pages) for more information.

Best,  
-Greg

---

<div class="post-metadata">

**Author:** ![pranay\_95](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/pranay_95/32/1672_2.png) [@pranay\_95](https://discourse.radiance-online.org/u/pranay_95)\
**Post date:** [March 3, 2023, 2:33pm UTC](https://discourse.radiance-online.org/t/genbsdf-for-rhino-obj-file/6177/3 "2023-03-03T14:33:34Z")

</div>

Hello Greg,

Thank you! I shall go through this, i was able to assign a material to a .obj file to run genBSDF. Im not sure though if i got accurate results!
