Skip to content

Commit 643ce9e

Browse files
committed
lowres fog
1 parent 64d28e0 commit 643ce9e

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

‎_projects/01-ascension-protocol.md‎

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ The 2nd pass raymarches through every slice of the noise texture and samples the
7575
<p class="media-caption">Volumetrics used as dust</p>
7676

7777
<video controls src="/assets/img/projects/Y2VR/CloudUI.mp4" title="Title"></video>
78-
7978
<p class="media-caption">The clouds with tweakable parameters</p>
8079

8180
</div>
@@ -89,27 +88,16 @@ The 2nd pass raymarches through every slice of the noise texture and samples the
8988

9089
## Optimizations
9190

92-
After profiling I concluded that our project was memory bound and took a lot of time rendering objects that were not visible on screen.
93-
94-
### Implementation Details
95-
96-
I used ray marching through the froxel grid with the following optimizations:
97-
98-
- **Temporal reprojection**: Reduces noise by blending current and previous frames
99-
- **Exponential depth distribution**: More detail near camera, better performance overall
100-
- **Hardware interpolation**: Leveraging 3D texture sampling for smooth results
101-
- **Adaptive step size**: Fewer samples in empty space
91+
After profiling I concluded that our project was memory bound and took a lot of time rendering objects that were not visible on screen. To solve this I added frustum culling which allowed the forward pass to go from 2.30ms to 0.74ms. I also reduced the resolutions used for bloom and fog which led the fog renderpass go from 3.32ms to 0.93ms.
10292

103-
The shader performs 32 ray marching steps per pixel, with temporal accumulation bringing effective sample count much higher.
93+
I will go more into detail on how I achieved this in my blog. (linked once it's online)
10494

10595
</div>
10696
<div class="project-media" markdown="1">
10797

108-
![Volumetric lighting in forest scene](/assets/img/helmet.png)
109-
<p class="media-caption">God rays streaming through trees in a forest environment</p>
11098

111-
![Debug view of light scattering](/assets/img/helmet.png)
112-
<p class="media-caption">Debug visualization showing light scattering values</p>
99+
<video controls src="/assets/img/projects/Y2VR/lowResFog.mp4" title="Title"></video>
100+
<p class="media-caption">Fog quality at half resolution</p>
113101

114102
</div>
115103
</div>
10.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)