Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/kehanxuuu/vspg-rendering-scripts
05 June 2025, 10:49:53 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/vspg
    No releases to show
  • ff705f3
  • /
  • runPBRTVSPGEqualTime.py
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:c8e2805b6b66f8a0271aff364b18ddd68858735b
origin badgedirectory badge
swh:1:dir:ff705f31d34e8109ef925a36fa8871f8319e47cd
origin badgerevision badge
swh:1:rev:684a6177136a87d63203e33dd54f37bc37051fe5
origin badgesnapshot badge
swh:1:snp:8ba577b9665e170dafd37181c23d28a7d398359c

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 684a6177136a87d63203e33dd54f37bc37051fe5 authored by Kehan Xu on 04 March 2025, 19:51:51 UTC
[vspg] Minor fix on the scripts
Tip revision: 684a617
runPBRTVSPGEqualTime.py
import renderer.pbrt.PBRTRenderer as PBRTRenderer
import utils.TestCaseHelper as TestCaseHelper
import utils.SceneHelper as SceneHelper

import utils.ResultsViewer as ResultsViewer

# path to the PBRT installation (e.g., folder or a soft link to it)
pbrt_dir = "./pbrt-renderer/"

# name of the experiment and the folders
experiment_name = 'vspg-equal-time'

# path to store the results
results_dir = "./pbrt-results/" + experiment_name

# path to store the post-processed results and the HTML viewer
viewer_output_dir = "./pbrt-viewers/"  + experiment_name

# Loading the test case descriptions from a file
testCases = TestCaseHelper.loadTestCases("pbrt-testcases/vspg")
testCaseDescription = TestCaseHelper.loadTestCaseDescription("pbrt-testcases/vspg")

# Loading the scenes to run the test cases (e.g., pbrt-scenes can be a folder or a soft link to it)
[scenes, scenes_dir] = SceneHelper.loadScenes("pbrt-scenes/scenesconfig") 

# Setup the PBRT renderer
pbrt = PBRTRenderer.PBRTRenderer(pbrt_dir, results_dir, scenes_dir)

# equal-time experiments, read time from the scene config

#for each scene and each scene variant
for scene, scene_config in scenes:
    resolution = scene_config["resolution"]
    time = scene_config["time"]
    for variant in scene_config["variants"]:
        #run each test case defined in the test cases file
        for testCase in testCases:    
            pbrt.runTestCase(scene, variant, resolution, testCase, budget = time, equal_spp = False, stats = True, usedGuidedGBuffer = False)

#after running all test cases for all scenes prepare the results in an interactive HTML viewer 
viewer = ResultsViewer.ResultsViewer("./utils/webviewer")
viewer.generateHTMLS(viewer_output_dir, results_dir, scenes_dir, scenes, testCaseDescription, testCases, showReference=True, referenceTag="_ref_depth15", referenceSubFolder="reference", perScene=True, errors=["relMSE","SMAPE"])

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API