RenderToolbox Install Linux


How to install the Render Toolbox and its components on Linux

System Requirements:

1. Download RenderToolbox and SimToolbox from the svn server:
Anonymously
svn co https://platypus.psych.upenn.edu/repos/rendertoolbox/trunk /path/to/RenderToolbox/folder
svn co https://platypus.psych.upenn.edu/repos/simtoolbox/trunk /path/to/SimToolbox/folder

or as a contributing developer (you'll need to contact David Brainard for this)
svn co --username yourusername https://platypus.psych.upenn.edu/repos/rendertoolbox/trunk /path/to/RenderToolbox/folder
svn co --username yourusername https://platypus.psych.upenn.edu/repos/simtoolbox/trunk /path/to/SimToolbox/folder


2. Add RenderToolbox_2.0 and SimToolbox to the MATLAB path:

>> addpath(genpath('/the/path/to/RenderToolbox/RenderToolbox_2.0'));
>> addpath(genpath('/the/path/to/SimToolbox'));
>> path(RemoveSVNPaths);


3. Compile and install PBRT_batchRender:

make clean
make


export PBRT_SEARCHPATH="/the/path/to/RenderToolbox/PBRT_batchRender_1.1/bin"
export PATH=${PATH}:${PBRT_SEARCHPATH}

If you get "Undefined symbol" or similar errors during the compilation just after "Linking pbrt" appears on the screen, the problem is probably with libraries in the OpenEXR/lib-linux folder (after compiling the files in PBRT_batchRender_1.1/core, the compiler links the resulting object files with these libraries). Try downloading a fresh version of these libraries from http://www.openexr.com/downloads.html, and follow the instructions in the README file to compile the source (though you do not need to run "make install" at the end of the README).

4. Make sure that both PBRT_batchRender_1.1/bin and the directory containing radiance are on Matlab's binary search path. Apparently linux inherits this path from the system, so the above steps should take care of this.

5. Compile and install PBRT_original:
make clean
make

If you get compilation errors, follow the directions above for downloading a new version of the OpenEXR libraries.
#!/bin/bash
PBRT_SEARCHPATH="/path/to/replace/PBRT_original/bin"
export PBRT_SEARCHPATH
echo " "
echo "PBRT_SEARCHPATH set to:$PBRT_SEARCHPATH"
echo "Calling $PBRT_SEARCHPATH/pbrt $*"
echo " "
/path/to/replace/PBRT_original/bin/pbrt $*

Change the first line to
PBRT_SEARCHPATH="/your/path/RenderToolbox_2.0/PBRT_original/bin"

and the last line to (noting the "$*" at the end, with a space before it)
/your/path/RenderToolbox_2.0/PBRT_original/bin/pbrt $*

Now make a link to this file in /usr/local/bin:
Log in as root, cd into /usr/local/bin, and type "ln -s /your/full/path/to/RenderToolbox_2.0/PBRT_original/pbrt_orig ." (note the trailing dot).
make clean
make

Log in as root, cd into /usr/local/bin, and type "ln -s /your/path/to/RenderToolbox_2.0/Utilities/exrtofloat/exrtofloat ." Note the two "exrtofloat"s in the path, and the last dot.

6. Run BatchRender on the pre-made sphere example to test that everything is working correctly. (Well, this does not test the Maya plugin part.)

unix('./clean.sh');
Render_BatchRender

There are 133 comments on this page. [Display comments]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki