So, basically with this technique, 300 trees takes 7K tris (without shadows) and 43 setpass calls with shadows. Considering you can use these only at distance, this is very good. I'm going to push it in my github so you guys can play with it... or make it better! 😌
#GTAVI
#gamedev
#indiedev
close-ups of the 3d reconstruction.
left: world labs atlas, splats → mesh
right: our harness, pure mesh
textured vs wireframe, up close. the difference is visible.
Let's analyze tonemapping in GTA 6!
Launch trailer is SDR but still gives us insight into how they are working with colors.
Overall, what I see looks nice. Nothing appears particularly broken with one big exception.
Gradients are smooth. Skin tones are great. Hue paths/shifts are ok. There's a lot of clipping but that's unavoidable in SDR.
However... as often happens: bright blue turns purple! See the pool jump scene below.
This is a typical trait of tonemapping per channel; Unreal/ACES have a "blue correction" feature to remedy this problem, which introduces more issues like banding.
So, our best guess is that they are using AgX!
It's per channel; it usually doesn't escape this problem, in fact it can even make it worse given it has no gamut adaptation. AgX produces colors that are not representable by sRGB, and then clips them, which causes hue shifts like blue->purple.
As proof of that, we have the broken gradients around the pool lights ("banding"), If we tweak levels we can see edges very clearly.
Continues ⬇️.
هذه إعدادات جرافيكس GTAVI الرسمية من ROCKSTAR داخل ملفات اللعبة لأجهزة الكونسل PS5 | PRO | XSX | XSS
يظهر أن الاعدادات نسبة كبيرة منها على Medium والانعكاسات Low للجميع حتى Pro. ومع ذلك فمظهر اللعبة هو الأفضل حتى الآن.. كيف ستكون نسخة PC على Ultra كل شيء 🔥؟
—
Asked Claude to improve the volumetric clouds in our game. We're using a great plugin called Enviro 3, but I wanted to push the clouds as much as possible to give them an ethereal, painterly kinda look.
I thought this shot looked really cool.
I'll also take this opportunity to share a bit on what i've done during my 2 years of graphics programming on GTA VI. I got the incredible chance to be one of the "water guys" and work on various water related stuff 🧵
Solving Antialiasing:
I’d like to share some first principles thoughts I’ve been having on how to completely eliminate aliasing and shimmering when rendering.
To start with, identify why the problem occurs in the first place: we are mapping from a source coordinate representation of content into a 2D pixel grid coordinate system that doesn’t perfectly align with it. Current algorithms, such as hardware rasterizers, offer imperfect (MSAA) to no correction for it. Postprocess antialiasing is even worse as it’s already lost key data. To compound the problem, we’ve been doing shading on incorrectly generated pixel fragments post-rasterization as well.
Why is MSAA flawed? Because it’s just a random assortment of points being sampled where every different arrangement gives a different result. Worse, there is no conservation of energy guarantee as every different grid alignment results in a different total pixel intensity from luck of the point sampling draw, causing shimmering/flickering as the camera moves.
Even basic rasterization offers no subpixel information in its output and potential edge fragments are often culled before reaching the fragment shader.
Pixels are not a point or a collection of points. Pixels have a surface area. Geometries cover a percentage of this surface area. At the edges, these percentages will be less than 100%. To maintain conservation of energy as the camera moves and the edge alignments change, the final generated RGB pixel value sent to the hardware for opaque geometry should have its intensity scaled by the percentage of area coverage across the pixel square.
If multiple opaque geometries contribute to this same pixel, the visible portion of each must be scaled and then added in. For example:
A: 50% coverage of (0.5, 0.5, 0)
B: 25% coverage of (1.0, 0, 0)
C: 25% coverage of (0, 0, 1)
This becomes
(0.25, 0.25, 0) + (0.25, 0, 0) + (0, 0, 0.25)
or a final pixel value of (0.5, 0.25, 0.25).
If the source geometry is itself treated as a grid of texels, then one isn’t dealing with just subpixel geometry edges but also distinct subpixel texel values that themselves can each be mapped into the screen space grid by percentage. Multiple source texels may end up covering part of a destination pixel and need their pixel coverage areas calculated and corrected for to avoid loss.
One then needs to think about what the data is that we are actually performing all of this intensity blending on. It’s not always pure color. How does one safely blend multiple subpixel normals and what does it even mean? What about blending distinct material properties with PBR?
Furthermore, the lighting calculations are occurring after this coordinate system mapping has occurred and they’re being performed on blended data where the distinct material and normal information of each geometry may have already been lost.
Instead, we should consider doing all of this shading PRIOR to the mapping to screen space, e.g. in texture space, before any of this data loss has occurred. This is also convenient for deterministic contiguous data access and doesn’t require texture sampling in an off-grid manner with texture filtering and unpredictable cache misses.
Nobody has combined all of these approaches and done it all on a GPU yet, but I can see it being quite doable in compute shaders, particularly with SDFs and voxels. One may even do this blending multiple times in a frame, such as first doing it when mapping from a voxelized object space to a voxel world space as the grids don’t align, and again to a camera space, having a final pass from back to front to handle partially occluded geometries.
I haven’t had any free time to explore implementing all of these ideas just yet, but I do believe it can be done isochronously.
Rockwell Collins (Evans & Sutherland), my former employer, handled area-based anti-aliasing in custom hardware. @NOTimothyLottes gave me the idea for texture-space rendering. The rest is original thinking on my part.
Still blows my mind that this is all realtime and interactive within a Web browser using WebGPU.
Lots of improvements left to do, especially with the waves and clouds.
Today I'm launching earshot v1
Your coding agent can now make its own sound effects! You can just prompt and earshot will render the sound in code on your laptop
This works really well for games, animations, videos and a lot more!
npx skills add Leonxlnx/earshot
sound on :)
We shrank 1 GB of Wikipedia to 105.39 MB, losslessly.
Introducing tufazip: the best entry on the Large Text Compression Benchmark using a neural network as its sole predictor. Everything above it mixes a transformer with hand-built models.
Full post 👇
https://t.co/cllPF90gsb