Thursday, March 18th, 2010

Using sIBL and Vray Tutorial

Fore­word

Using sIBL with Vray and 3dsmax is fairly straight-​​forward, how­ever I’d like to men­tion a cou­ple of tips and bugs to address con­cern­ing the lat­est Vray tem­plate for sIBL. Although it’s not com­pletely impor­tant, I’m going to assume you know the basics of set­ting up 3dsmax and Vray for Lin­ear Work­flow (LWF.) If you are not famil­iar with LWF, you may want to read the begin­ning of my Basic Vray HDR Tuto­r­ial . I also men­tion some help­ful, basic ren­der set­tings at the end of that arti­cle. Last but not least, if you haven’t installed sIBL, you may want to read my sIBL instal­la­tion for 3dsmax here.

Ini­tial sIBL GUI Setup

Once installed, sIBL GUI should ask you for the direc­tory in which you have all of sIBL files and libraries extracted. You can also browse to your sIBL archive and files here under \Preferences\Collection Man­age­ment\:

sIBL library locations.

sIBL Col­lec­tion Paths.

In this case, all of my sIBL files are located with my other HDR images and libraries on a Linux-​​based net­work drive mapped (through Win­dows) to z:.? It really doesn’t mat­ter where you put your sIBLs as long as they’re eas­ily acces­si­ble by both Max, sIBL, and the drive has enough extra file space for your sets of HDRs.

There’s also another sec­tion up top called “Over­all Path Set­tings” located in the same Pref­er­ences win­dow. If you’re on Win­dows, you’re direc­tory paths should look some­thing like the image below. Keep in mind, that unless you plan on edit­ing your sIBLs or cre­at­ing your own from other HDRs, you do not need to install sIBLedit and can leave that field blank:

sIBL overall path settings.

sIBL over­all path settings.

Send­ing a sIBL HDR to 3dsmax and Vray

Now that every­thing is setup, select­ing your sIBL files and send­ing them to your 3D appli­ca­tion is super easy. Below is a screen­shot of the main “Col­lec­tions Browser” win­dow. In this exam­ple, I’ve sim­ply cho­sen the HDR I want to use from my own per­sonal library, and double-​​clicked it:

sIBL collections browser

sIBL Col­lec­tions Browser

Next, head over to the “Import” win­dow. Your sIBL file should be loaded and almost ready to go:

sIBL import export settings.

sIBL import export settings.

Impor­tant: Don’t for­get to select your ren­der­ing soft­ware. Each time sIBL GUI is loaded, it defaults to Maya. If you do for­get, sIBL GUI will out­put an error (unless you have Maya installed as well.)

Last but not least, I almost always adjust the “Sun Dis­tance” under “Addi­tional Attrib­utes” to “1000.00.” I find that the default of “100.00″ is way too small — espe­cially for architecturally-​​based projects. This para­me­ter actu­ally con­trols the dis­tance of a Vray light (act­ing as a Sun to cast a tint and sharper shad­ows) from the XYZ cen­ter of your scene.

Hope­fully in the future, sIBL GUI will remem­ber your default selec­tions instead. Keep in mind, sIBL is pro­grammed by a group of vol­un­teers in their free-​​time and they are con­stantly look­ing for other vol­un­teers to help con­tribute to their open-​​source cod­ing efforts.

If all works prop­erly, sIBL GUI should auto­mat­i­cally start up 3dsmax. Or, you could have had 3dsmax already opened with a scene already cre­ated. If suc­cess­ful, you may notice a new light in the view­port. You can also check the Vray and 3dsmax Envi­ron­ment over­rides — three files should have been auto­mat­i­cally populated.

Last but not least, select the light (if added to your scene) and uncheck “Affect Spec­u­lar­ity” and check “Invis­i­ble.” You prob­a­bly wouldn’t want to see a strange ball of light float­ing in your scene.

Cur­rent sIBL Issues and Errors with Vray

There are a few errors, bugs, and issues which can cur­rently occur with sIBL and Vray which you should be aware of:

  1. If you don’t have Vray selected, you’ll receive a “Win32 OLE” error mes­sage if you don’t have Vray selected under the “Selec­tion” area.
  2. The North para­me­ter doesn’t seem to work yet for the Vray Tem­plate. Prior to sIBL GUI, the North para­me­ter would rotate your envi­ron­ments around the cen­ter of your model. This is to be addressed.
  3. If a sIBL file has no “phys­i­cal” light spec­i­fied what­so­ever within the .ibl, the sIBL file will not be sent to 3dsmax — noth­ing will hap­pen. This is a bug that needs to be fixed. I’ve added a light to all of my sIBL files, and in very dark scenes have spec­i­fied a light with an extremely low mul­ti­plier (less than .0001) to get around this issue. I’ve informed other library cre­ators of this bug/​issue — some of their sIBLs may not be parsed to Vray. A sim­ple and tem­po­rary solu­tion would be to com­pare a work­ing sIBL .ibl file with a non-​​working one in a text edi­tor (Word­pad or Notepad suf­fices), and copy and paste the work­ing light set­tings at the bot­tom with a very low mul­ti­plier to get them to work again.
  4. Since the recent release of ver­sion 2.0, sIBL sup­ports mul­ti­ple “phys­i­cal” lights. Unfor­tu­nately, if the sIBL .ibl file spec­i­fies the new light para­me­ter as “LIGHT” instead of the orig­i­nal ver­sion 1.0 para­me­ter called “SUN”, the sIBL file will not load. In order to fix this, I’ve spec­i­fied all of my “Light” para­me­ters to read “SUN” again. The “SUN” para­me­ter is actu­ally not dep­re­cated and works prop­erly. While my libraries all work prop­erly, those of oth­ers may not. I’ve informed the other library mak­ers of this issue. New code needs to be added to the Vray Tem­plate (Maxscript tem­plate which parses the sIBL infor­ma­tion to Vray) which would sup­port the new “LIGHT” para­me­ters. As I men­tioned before, the sIBL team is a group of vol­un­teers who code this in their spare-​​time and it some­times takes a lit­tle bit before peo­ple can get things fixed. It would be very help­ful if the sIBL team could find a Maxscript coder who could vol­un­teer to help out with some of these Vray-​​related issues.
  5. If all of these issues listed above has not solved your issue and is still occur­ring with Vray and 3dsmax, you may still receive the “Win32 OLE error.” If this is the case, you may want to add the fol­low­ing reg­istry infor­ma­tion (as always, use at your own risk and backup your reg­istry): http://www.hdrlabs.com/cgi-bin/forum/YaBB.pl?num=1251379750/21#21