Skip to content

Database Archiva

Brian Wandell edited this page Sep 26, 2021 · 2 revisions
  • We use the RemoteDataToolbox to store and retrieve some PBRT scene files and their associated data. These data sets are too large to store in the github repository. We also use RDT for other data, but we are starting to shift to Flywheel. All the really big stuff is already done using Flywheel.
  • To use the PBRT scene data on the Remote Data Toolbox site, install the RemoteDataToolbox and add it to your path. You do not need an account (the site is open for download).

Return to Assets Database


Example script

t_piIntro_rdt We store a number of larger PBRT scenes in the cloud. We retrieve these using the Remote Data Toolbox. After installing the RemoteDataToolbox, you can retrieve these scenes using the piPBRTFetch and piPBRTList commands.

List and Fetch PBRT scenes

You can list the zip files that are available on the remote site by creating an RdtClient object, changing to the proper remote directory, and then listing the files. For example, in the early days we had only a few scene files and the listing looked like this

rdt = RdtClient('isetbio');          % The remote data site
rdt.crp('/resources/scenes/pbrt/v3');   % Where we keep the zip files
rdt.listArtifacts('print',true);     % The list method

  -- Artifacts in Current remote path [ /resources/scenes/pbrt/ ]---


***
20 artifacts 
***
              ID              Type              RemPath          
    ______________________    _____    __________________________

    'ChessSet'                'zip'    'resources/scenes/pbrt/v3'
    'ChessSetScaled'          'zip'    'resources/scenes/pbrt/v3'
    'ChessSet_2'              'zip'    'resources/scenes/pbrt/v3'
    'ColorfulScene'           'zip'    'resources/scenes/pbrt/v3'
    'NumbersAtDepth'          'zip'    'resources/scenes/pbrt/v3'
    'SimpleScene'             'zip'    'resources/scenes/pbrt/v3'
    'bathroom'                'zip'    'resources/scenes/pbrt/v3'
    'bathroom2'               'zip'    'resources/scenes/pbrt/v3'
    'bedroom'                 'zip'    'resources/scenes/pbrt/v3'
    'kitchen'                 'zip'    'resources/scenes/pbrt/v3'
    'lettersAtDepth'          'zip'    'resources/scenes/pbrt/v3'
    'lettersAtDepthPlus'      'zip'    'resources/scenes/pbrt/v3'
    'living-room'             'zip'    'resources/scenes/pbrt/v3'
    'living-room-3'           'zip'    'resources/scenes/pbrt/v3'
    'living-room-3-mini'      'zip'    'resources/scenes/pbrt/v3'
    'living-room-3-text'      'zip'    'resources/scenes/pbrt/v3'
    'navarroFig12Validate'    'zip'    'resources/scenes/pbrt/v3'
    'snellenAtDepth'          'zip'    'resources/scenes/pbrt/v3'
    'snellenSingle'           'zip'    'resources/scenes/pbrt/v3'
    'white-room'              'zip'    'resources/scenes/pbrt/v3'

You can download a particular zip file, say the ChessSet, using this command

piPBRTFetch('ChessSet','deletezip',true)

This function downloads the ChessSet.zip file to your local drive in piRootPath/data. It also unzips the file. The 'deletezip' argument removes the zip file. Otherwise, the zip file is left in place.

Pushing PBRT scenes

To push data, you need to have credentials on the remote site. These can be obtained only from David Brainard.

Clone this wiki locally