SafeGI: type checking to improve correctness in rendering system implementation

  • Authors:
  • Jiawei Ou;Fabio Pellacini

  • Affiliations:
  • Dartmouth College;Dartmouth College

  • Venue:
  • EGSR'10 Proceedings of the 21st Eurographics conference on Rendering
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Historically, rendering system development has been mainly focused on improving the numerical accuracy of the rendering algorithms and their runtime efficiency. In this paper, we propose a method to improve the correctness not of the algorithms themselves, but of their implementation. Specifically, we show that by combining static type checking and generic programming, rendering system and shader development can take advantage of compile-time checking to perform dimensional analysis, i.e. to enforce the correctness of physical dimensions and units in light transport, and geometric space analysis, i.e. to ensure that geometric computations respect the spaces in which points, vectors and normals were defined. We demonstrate our methods by implementing a CPU path tracer and a GPU renderer which previews direct illumination. While we build on prior work to develop our implementations, the main contribution of our work is to show that dimensional analysis and geometric space checking can be successfully integrated into the development of rendering systems and shaders.