Physically-based Path Tracer using WebGPU and OpenPBR

Simon Stucki,Philipp Ackermann
2024-07-29
Abstract:This work presents a web-based, open-source path tracer for rendering physically-based 3D scenes using WebGPU and the OpenPBR surface shading model. While rasterization has been the dominant real-time rendering technique on the web since WebGL's introduction in 2011, it struggles with global illumination. This necessitates more complex techniques, often relying on pregenerated artifacts to attain the desired level of visual fidelity. Path tracing inherently addresses these limitations but at the cost of increased rendering time. Our work focuses on industrial applications where highly customizable products are common and real-time performance is not critical. We leverage WebGPU to implement path tracing on the web, integrating the OpenPBR standard for physically-based material representation. The result is a near real-time path tracer capable of rendering high-fidelity 3D scenes directly in web browsers, eliminating the need for pregenerated assets. Our implementation demonstrates the potential of WebGPU for advanced rendering techniques and opens new possibilities for web-based 3D visualization in industrial applications.
Graphics
What problem does this paper attempt to address?
The main problem that this paper attempts to solve is the limitations faced by current web - based real - time rendering techniques when achieving global illumination effects, especially in dealing with complex industrial product configurations and high - quality material representations. Specifically: 1. **Limitations of Traditional Rasterization Rendering**: Since the introduction of WebGL in 2011, rasterization has been the main technology for real - time rendering on web pages. However, rasterization has difficulty handling global illumination effects such as reflection, refraction, and ambient occlusion. These effects require additional technical means to achieve, increasing complexity and computational cost. 2. **Requirement for Pre - generated Resources**: In order to achieve the required visual fidelity, traditional solutions usually rely on pre - generated resources (such as shadow maps, light maps, etc.). This not only increases storage requirements but also limits interactivity and flexibility, especially when dealing with highly configurable products. 3. **Requirement for Real - time Path Tracing**: For industrial applications, especially those involving highly customized products, real - time performance is not the most critical factor, and being able to flexibly display high - quality rendering results of different configurations is more important. Therefore, a technology that can perform high - quality rendering directly on the client side without pre - generated resources is required. To this end, the paper proposes a physically - based path tracer based on WebGPU and the OpenPBR standard, aiming to solve the problem in the following ways: - **Utilizing WebGPU**: WebGPU is a new web graphics API that is more efficient and flexible than WebGL and is especially suitable for performing complex computational tasks. Through WebGPU, real - time path tracing can be achieved in the browser, thus avoiding the dependence on server - side rendering or pre - generated resources. - **Integrating the OpenPBR Material Model**: OpenPBR is a physically - based material representation standard that can accurately describe the optical properties of various materials. By integrating OpenPBR, the consistency and authenticity of rendering results under different lighting conditions can be ensured, which is suitable for high - quality rendering requirements in industrial applications. In summary, the goal of this paper is to develop a web - based path tracer that can achieve real - time, high - quality, physically - based rendering in the browser, especially suitable for industrial product configuration and display scenarios.