Practical and Robust Stenciled Shadow Volumes for Hardware-Accelerated Rendering
Cass Everitt, Mark J. Kilgard
Abstract
Twenty-five years ago, Crow published the shadow volume approach for determining shadowed regions in a scene. A decade ago, Heidmann described a hardware-accelerated stencil buffer-based shadow volume algorithm. Unfortunately hardware-accelerated stenciled shadow volume techniques have not been widely adopted by 3D games and applications due in large part to the lack of robustness of described techniques. This situation persists despite widely available hardware support. Specifically what has been lacking is a technique that robustly handles various "hard" situations created by near or far plane clipping of shadow volumes. We describe a robust, artifact-free technique for hardware-accelerated rendering of stenciled shadow volumes. Assuming existing hardware, we resolve the issues otherwise caused by shadow volume near and far plane clipping through a combination of (1) placing the conventional far clip plane "at infinity", (2) rasterization with infinite shadow volume polygons via homogeneous coordinates, and (3) adopting a zfail stencil-testing scheme. Depth clamping, a new rasterization feature provided by NVIDIA's GeForce3, preserves existing depth precision by not requiring the far plane to be placed at infinity. We also propose two-sided stencil testing to improve the efficiency of rendering stenciled shadow volumes.
Create a lesson
Related papers
S4R: Scaling for Rigid-Body Interpenetration Resolution
Zhiyang Dou, Ang Zhao, Chen Peng et al.
An Elementary Expression for Multiple Scattering in Homogeneous Microflake Media
Jonathan Dupuy
Printing the Underdetermined: Materializing Multi-solutionness in Figurative Paintings
Yutao Ming, Teng Xu, Youjia Wang et al.
DELUGE: Decomposed Entropy-coded Live Unstructured Geometry Exchange for Real-time Particle Streaming
Hikari Yanagawa, Yuichi Hiroi, Takefumi Hiraki
FootprintRAG: Visual Analytics for Evidence Context Refinement in RAG-based Scientific Literature Exploration
Xingyu Liu, Yu Dong, Qizhen Yu et al.
PointGrade: Geometric Priors for Grading MoonBoard Problems
Beatrice Stotz, Ningna Wang, Daria Nogina et al.