PBRT file - RenderToolbox/RenderToolbox4 GitHub Wiki
Sometimes we have a single file in PBRT format and we want to use RenderToolbox4 to invoke the PBRT command to return an ISET object (either scene or oi). This page explains how to use rtbPBRTSingleFile.m to invoke the docker container (locally) on that file.
The more general case, of having a series of conditions, is handled by the rtbBatchRenderer() command.
(We are working with PBRT V2 files now. In the future we should upgrade to V3, but it hasn't happened yet).
PBRT-V2-Scenes
PBRT-V2-scenes can be downloaded here.
The examples we show here are for bunny.pbrt and bump-sphere.pbrt. We have not succeeded with all of the example scenes, only some. We are investigating why.
Creating the ieObject
The critical function is rtbPBRTSingleFile The RTB function rtbPBRTSingleFile takes a pbrt scene as input, runs the docker command (pbrt-v2-spectral), and reads the resulting radiance data into an ISET object. If the PBRT calculation uses a pinhole optics, then the returned object is a scene. If the PBRT calculation uses a lens model, then the returned object is an optical image (oi).