Erik Jansson - GPU driven Rendering with Mesh Shaders in Alan Wake 2
Digital Dragons2 HN recommenders · recommended in 1 month, 2024–2025
talk · advanced · evergreen · 2024–2025 on HN
A Remedy engineer explains how Alan Wake 2 moved to a GPU-driven rendering pipeline built on mesh shaders, culling and rendering meshlets for dense vegetation on PS5 and Xbox Series consoles.
HN points to it as a detailed production example of mesh shaders and GPU-driven rendering, though some find it daunting.
Up next
11 mo on HNMusic Theory and White Supremacy
Adam Neely
11 HN recommender · 2020–2024
13 mo on HNThe Beauty of Bézier Curves
Freya Holmér
16 HN recommender · 2021–2026
11 mo on HNThe Continuity of Splines
Freya Holmér
10 HN recommender · 2022–2026
10 mo on HNelevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)
Demoscene High-Quality Videos (Annikras)
7 HN recommender · 2013–2025
10 mo on HNPainting a Character with Maths
Inigo Quilez
13 HN recommender · 2021–2025
10 mo on HNThe Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013)
Mladen Mijatov
13 HN recommender · 2013–2026
9 mo on HNA Deep Dive into Nanite Virtualized Geometry
SIGGRAPH Advances in Real-Time Rendering
7 HN recommender · 2021–2026
10 mo on HNSiggraph2019 Geometric Algebra
Bivector
8 HN recommender · 2020–2022
7 mo on HNI painted a Landscape with Mathematics
Inigo Quilez
7 HN recommender · 2022–2025
7 mo on HNElevated by RGBA and TBC
BUTTONTANG
7 HN recommender · 2009–2025
5 mo on HNCreating a Doom-style 3D engine in C
Bisqwit
3 HN recommender · 2015–2019
5 mo on HNCoding Adventure: Ant and Slime Simulations
Sebastian Lague
6 HN recommender · 2021–2024
4 comments from Hacker News
A related talk of using Mesh shaders for Alan Wake 2 ▶ this video And I find Apple’s intro to mesh shading to be a fairly good primer for someone unfamiliar with Mesh shading link
This is a great read, thank you for sharing! I learned a lot from reading it and I'm pretty experienced in this space! I enjoyed checking out your other work too. OPs article heavily covers Vertex Amplification. I didn't realize VisionOS used Vertex Amplification for this, but it makes sense since the hardware supports it. For those interested in Mesh Shading (a few good videos released this week [1][2][3]), Vertex Amplification is a key tech for Mesh Shading, where one writes Object/Mesh functions (names in Metal API, called Task/Mesh/Amplification shaders in other APIs). Introduced by Nvidia in 2018 and only really available en masse for the last couple years, Vertex Amplification was the first time a GPU could create vertices (or "destroy" them by not emitting anything), versus the fixed mesh inputs. It's so cool and powerful and a different way of thinking about the pipeline. This article shows the same concept, but in Vertex Shaders for multiple render targets. While you might not make a Vision app, it could be worthwhile read to further understand this architecture. I've spent a few months in Metal Mesh Shading and hadn't realized this application of it at all. [1] link [2] link [3] ▶ this video (good explanation and demo)
Definitely reverse engineering and shaders. Watching these kinds of talks I realize, I'm not built for this: ▶ this video
For example OTOY uses CUDA renderering. link If you prefer actual code, link and "Mesh Shaders - The Future of Rendering" link "GPU driven Rendering with Mesh Shaders in Alan Wake 2" ▶ this video