16
Fog—an essential technique in modern video games.
It was just that in the 1990s, people had not yet realized the true importance of fog effects.
The reason was simple: in the 8-bit era, running a slightly larger map required the pitiful amount of RAM to constantly swap data back and forth.
A few kilobytes of memory was utterly insufficient to create an expansive world.
Even moving into the 16-bit era, vast open worlds remained a pseudo-proposition.
A few megabytes of memory capacity could support large tile-based maps, but that was about the limit.
Yet Battlefield was different.
It was a true 3D massive Battlefield.
This meant the world could not simply store a handful of tile data as before.
【x:0-y:1-tile:0】
In the past, just these three parameters were enough to completely store the information of an entire grid cell.
When the client attempted to render, it could pull the corresponding tile straight from memory and slap it onto the corresponding coordinates. Naturally, alongside some displacement transformation and view frustum culling.
This trick had never failed in the 2D era. Especially after graphics cards—hardware naturally adept at batch parallel processing—came onto the scene, tile performance skyrocketed exponentially.
If one were to develop super mario on current hardware specs, the tile density could be multiplied several times over while maintaining a rock-solid frame rate.
In the 3D era, the entire logic of map rendering had fundamentally changed.
This was also why Jesse Lin was so certain the 3DO was doomed to fail.
3DO's cel animation layering technique seemed clever on the surface, like an ingenious workaround to bypass polygon calculation limits.
However, once one dug deep into geometric space, it was obvious that this path was an absolute dead end.
Perhaps in the future, when AI technology advanced rapidly and frame interpolation or frame generation matured, the concept might resurface.
But at least in the short term, over the next several decades, triangles would remain the absolute mainstream of 3D computation.
Computers understood 3D space by relying on... vertices.
Beyond the X and Y coordinates, an additional Z-axis was introduced.
Working together, they were enough to construct a genuine 3D space with depth inside a computer. But that raised a question: with so many vertices, how did the computer know how to render them?
Would it just mindlessly connect every point and slap a layer of skin over it?
These perfectionist geeks would naturally never choose such a crude, slapdash approach.
For outsiders unfamiliar with Computer Graphics, a common question often surfaced when confronting this problem.
Why triangles?
Wouldn't rendering rectangles be much more convenient? Chopping the map into squares like tiles seemed both easy and intuitive.
The answer lay within the nature of 3D itself.
In solid geometry, if four vertices exist, they are not guaranteed to lie on the same plane.
Forget about graphics cards not knowing how to draw it; even if a human were tasked with turning four non-coplanar points into a single flat surface, it would be sheer nonsense.
That would likely only be possible for higher-dimensional beings or within non-Euclidean space.
Triangles, however, were entirely different.
Computer Graphics and mathematics were intrinsically intertwined: in geometry, three points are always coplanar, whereas four points are not necessarily coplanar. Three non-collinear points uniquely determine a plane.
This was the foundational pillar of 3D accelerated graphics cards.
As long as there were three points, using an index to specify how to connect them allowed the graphics card to fill in the pixels effortlessly.
Want a rectangle? Simple: just piece two triangles together using four vertices.
No one ever stipulated that a single vertex could only belong to one plane.
Looking at it this way, rendering 3D space suddenly became crystal clear.
Games simply needed to continuously draw triangles—triangles of every angle and shape. As they connected along shared edges, they would eventually form a complete, enclosed model.
The desert was countless triangles; tanks were countless triangles; guns were, characters were—everything was.
Anything in 3D space could be rendered with enough triangles.
Yet this brought about new challenges.
Just like the lessons learned back when studying parallax scrolling animations:
Humans perceive 3D space through two-dimensional images. This meant a living person could never actually see the back of a model.
Even if they could, the display screen was flat, after all.
Graphics researchers naturally discovered this early on. As early as the initial Quake Engine, Jesse Lin and the others had already made extensive use of occlusion culling solutions.
Whatever could not be seen would not be rendered at all.
This philosophy was paramount.
It allowed the graphics card to shed the bulk of its rendering load without impacting the player's visual experience.
All the way into the future, Minecraft would still utilize this exact same approach.
Experienced players might often have encountered a bizarre glitch.
If the server lagged or they clipped inside a block due to a bug,
their vision would see straight through the entire world, exposing subterranean caves and hidden lava pools below.
In the old days, community forums even shared tricks using minecarts to deliberately glitch into that state to easily locate cave systems.
That was a textbook example of occlusion culling. When rendering the world, alongside chunk-based dynamic loading, Minecraft also performed 'back-face culling.'
Though the entire world consisted of blocks, it was not rendered block by block.
Each block only rendered the specific faces that were visible to the camera.
Suppose an entire chunk was a vast grassland.
With this culling, the vast majority of grass blocks only needed their top faces rendered, instantly saving the rendering cost of five entire faces per block.
Later, with the explosive growth of the modding community, dedicated occlusion culling mods that dropped anything hidden from view were introduced as well.
Though that was another technological path altogether.
In short, once the basic principles of 3D rendering were understood, the concept of 'fog effects' was not difficult to grasp.
A 3D world needed fog.
If fog set in 300 meters away, the graphics card didn't need to render anything beyond that 300-meter mark.
Simple and brutal.
"So it's a sort of... soft draw distance limit?" Carmack nodded.
If the concept of fog was somewhat foreign, talking about draw distance limitations brought him squarely into his comfort zone.
In wolfenstein 3d, they had heavily utilized deliberate draw distance control.
Every map consisted of numerous small rooms laid out in straight, rigid grids full of walls.
The entire purpose was to restrict viewing angles as much as possible.
Fog was simply transposing that same logic into full 3D.
"Exactly. More importantly, it feels natural. Most players won't even notice the fog is there after finishing the game,"
Jesse Lin said with a smile.
A desert held a unique, innate advantage over other environments.
"We can disguise the fog effect as... a sandstorm."
Fog was merely an abstract, umbrella term. Mist was fog, haze was fog, and low clouds could be fog as well.
The only difference lay in how the designers presented it. And the absolute masters of pulling this off were, of all people, the damned Konami.
One had to admit that as frustrating as Konami was, they had always harbored plenty of capable and visionary producers.
Looking across all of gaming history, the first to truly turn fog into an art form was Konami's Silent Hill.
During the PS1 era, everyone knew 3D was possible, but everyone also knew the PS1's hardware capabilities were severely constrained.
Whenever wide vistas in 3D space were involved, the PS1 choked.
The CPU and GPU would go on strike together.
Even pushed to the limit, scraping together one frame per second was an achievement.
So the development team of Silent Hill had a stroke of genius and thought of a trick.
If distant views were too taxing to render, why not simply prevent the player from seeing them?
They generated thick fog just dozens of meters away from the player.
This wasn't some performance-wasting atmospheric effect where fog was overlaid after rendering the scene.
It was literally just a wall of fog with nothing behind it—nothing beyond was rendered at all. Yet remarkably, it worked like a charm.
Far from feeling irritated, players showered it with praise.
This was exactly how the town of Silent Hill was supposed to be!
Blanketed in thick fog, near-zero visibility, monsters lurking in the shadows...
It was bloody brilliant!
Perhaps this was the true art of optimization.
Not only did it avoid player backlash, but it also became a defining feature of the game and a core vehicle for atmosphere.
"Heat haze can lower the LOD precision of distant models, while sandstorms reduce distant visibility to tighten the draw distance further."
Recapping the entire optimization framework, the project suddenly cleared up completely.
Could a massive map be done?
"It actually seems... entirely doable?"
High-poly models up close, low-poly models further away, flat sprites even further out, and swallowed whole by the sandstorm beyond that. All told, both the CPU and GPU would be granted immense breathing room.
Carmack ran a quick mental estimate and arrived at a staggering conclusion.
The performance boost for the CPU alone would nearly reach... a 3x multiplier...
The graphics card, as the primary beneficiary, was even more ridiculous, seeing an overall boost close to fivefold.
This was... pure magic!
The magic of code!
Hardware?
Only spineless cowards who buckled at the first sign of difficulty would let hardware constraints deter them.
They were GameNova!
GameNova never lost, nor would they ever be held back by such trifles.
Push it to the absolute limit!
Push the hardware to its limit, push the algorithms to their limit, and push optimization to its limit! Wring out every single drop of computing power from the silicon, leaving not a single transistor idle.
That was the mindset a truly great developer ought to have!
Ran out of hardware overhead?
First ask yourself whether you've pushed optimization to its absolute threshold.
Sitting slightly toward the back, Michael Abrash stared intently at Jesse Lin, who was still passionately elaborating on his optimization philosophy.
He suddenly understood why Jesse Lin was so obsessed with building a dedicated optimization team,
even going so far as to offer exorbitant salaries to poach talent left and right.
The things he wanted to build were simply far too ambitious.
Hardware development could never be accelerated exponentially through the efforts of a single individual.
Optimization alone was the true path forward.
