Faster Volumetric Cloudscapes with GPU-based Decoupled Ray Marching: Porting a Monte Carlo volume rendering method into an open-world AAA game engine
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Snabbare volymmoln med GPU-baserad frikopplad ray marching : Portering av en Monte Carlo-baserad volymrenderingsmetod till en AAA-spelmotor för öppna världar (Swedish)
Abstract [en]
Rendering volumetric cloudscapes in real-time is computationally intensive, yet essential for open-world games. The high cost of real-time volumetric cloud rendering primarily stems from the ray marching algorithm, a volume rendering method characterized by a time complexity of O(n2). An alternative approach in CPU rendering, known as Decoupled Ray Marching [11], optimizes the original algorithm, reducing its complexity to O(n log n) by decoupling the computation of in-scattering from transmittance and incorporating importance sampling to approximate the final color. The main contribution of this thesis is the adaptation of Kulla’s Decoupled Ray Marching algorithm for GPU execution inside Avalanche’s Apex Game Engine. This study effectively demonstrates that Kulla’s decoupled ray marching algorithm can be successfully implemented on the GPU, resulting in significant rendering time reductions of up to 30% compared to standard ray marching. However, further research will be necessary to address issues related to noise and optimized GPU memory access.
Abstract [sv]
Renderingen av volymetriska molnlandskap i realtid är beräkningsintensiv men avgörande för open-world-spel. Den främsta flaskhalsen i realtidsrendering av volymetriska moln är ray marching-algoritmen, en volymbaserad teknik med en tidskomplexitet på O(n2). Inom CPU-baserad rendering finns en alternativ metod, kallat Decoupled Ray Marching [11], optimerar den ursprungliga algoritmen och minskar dess komplexitet till O(n log n). Detta genom att separera beräkningen av in-scattering från transmittans och tillämpa importance sampling för att approximera den slutgiltiga färgen. Detta examensarbete bidrar främst med en GPU-anpassning av Kullas Decoupled Ray Marching-algoritm för integration i Avalanche Studios Apex-spelmotor. Examensarbetet demonstrerar tydligt att algoritmen kan implementeras effektivt på en grafikprocessor (GPU), och tydligt reducerar renderingstid med upp till 30%, jämfört med standard ray marching. Dock krävs fortsatt forskning för att hantera brus och optimera minnesåtkomst på GPU:n.
Place, publisher, year, edition, pages
2025. , p. 30
Series
TRITA-EECS-EX ; 2025:480
Keywords [en]
ray marching, volume rendering, monte carlo, importance sampling, real-time rendering, gpu
Keywords [sv]
ray marching, volymrendering, Monte Carlo, importance sampling, realtidsrendering, GPU
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-368116OAI: oai:DiVA.org:kth-368116DiVA, id: diva2:1987335
External cooperation
Avalanche Studios AB
Supervisors
Examiners
2025-08-112025-08-052025-08-11Bibliographically approved