Skip to main content
  1. Home
  2. Computing
  3. Gaming
  4. News

Ever wondered how a 3D game is rendered? Here’s the scoop

Add as a preferred source on Google

Ever stopped at a beautiful scene in a video game and wonder how it works underneath? Adrian Courrèges, a software engineer living in Tokyo, took the time to reverse-engineer the 2011 game Deus Ex: Human Revolution to find out exactly what happens to each and every frame to turn it from code into a video game world.

The first step is just to build the physical objects of the room, creating a normal map and depth map. The normal map is just a physical layout of the space – the engine traces larger objects first, then smaller and smaller until everything is represented.

Recommended Videos

The depth map is the room as seen from the point of view of the player, with objects that are closer appearing darker, and getting lighter as they get further away.

Then the rendering engine creates a map of the shadows in the room, one for each light. To keep the rendering time low for this step, only the largest objects in the room cast a shadow as seen from a major light source, and only the largest lights are used. These shadow maps are combined with the depth map, and different areas are assigned values based on how lit they are.

Using ambient occlusion, the rendering engine gives definition to the edges of objects in the room. This gives the surfaces and objects that weren’t counted by the major light sources soft shadowing, and will be used later to refine the textures.

Any smaller point-lights in the scene are now computed as well. Not a lot of calculations are done with those numbers yet, but their brightness and color information are noted for every pixel.

Now it’s time to actually start creating the image the player sees. The final color of every pixel is determined by using all of the light and shadow values from the steps before, the material and texture of the object itself, and sometimes a small texture with the patterns of the room on it to improve reflection quality.

The next step is to render any flat or transparent objects, as well as volumetric lights, like the halo given off by smaller light sources. These are the small touches the flesh out the video game world, and give it added immersion.

Just like in real life, lights glow, so the rendering engine creates a bloom effect on any light sources strong enough to warrant it.

Next, anti-aliasing is used to smooth the jagged edges on the edge of objects. It takes a bit of graphical processing power to make this happen quickly, but it’s worth the effect if you can support the overhead.

Now any gamma and color correction is done. That’s mostly at the will of the game designer, if they want the shadows of the game to be darker so you can’t see well, or want to brighten things up for a happier scene, this is when that happens.

Finally, the user interface is drawn on the screen. That doesn’t take very long at all, since it’s usually a static, or at least not very dynamic, image.

Courrèges also includes this nice timeline that shows roughly how long it takes for each piece of the process. There’s a lot more technical info in his full write-up on the process, and it’s worth a read if you’re interested in the exact process that happens with each step.

Brad Bourque
Brad Bourque is a native Portlander, devout nerd, and craft beer enthusiast. He studied creative writing at Willamette…
How to install macOS 27 Golden Gate public beta on your Mac?
From a smarter Siri to a more reliable Spotlight, here's your full walkthrough for installing macOS 27 Golden Gate's public beta today.
macOS 27 Golden Gate

Along with iOS 27’s public beta, Apple has also released macOS 27 Golden Gate’s public beta build, so that early adopters can get their hands on the new features, including Siri AI, and provide timely feedback to help ensure a stable iOS launch in September. 

If you’re sold on all the new features but don’t want to put your faithful MacBook through developer beta duty, a public beta offers a much more refined experience. To install macOS 27’s public beta, follow the steps given below. 

Read more
Microsoft is finally fixing the worst thing about Windows Search, but you can’t try it just yet
Windows Insiders in the Experimental channel are getting a Search experience that finally feels less of a billboard and more of what users actually need.
Page, Text, Person

Windows Search has been a mess for years, and I do not use that word lightly. Open it to find a file, and you get trending Bing topics, Microsoft Store promotions, and an AI tools tile that just opens a browser. 

That is changing, but not immediately for all users. Microsoft is rolling out a batch of Windows Search improvements to Insiders in the Experimental channel, and for once, this isn't just a fresh coat of paint.

Read more
Apple doesn’t want to share this AirPods feature with Meta, but the EU may force its hand
Spring 2027, EU only, built under DMA pressure.
The front of the Ray-Ban Meta smartglasses.

I’ve been an AirPods user for the last four years, and one of the things that makes it genuinely hard to leave behind is the seamless, almost magical pairing experience across devices. Open an AirPods case near your iPhone, and a pop-up appears within seconds. Switch to your Mac and the audio follows. 

However, the experience is limited only to Apple devices. Doesn’t matter whether you have one of the coolest pieces of tech on the market right now; if it’s not Apple, it won’t get the same treatment. However, that might change for the Meta Quest or the Ray-Ban Meta glasses, thanks to pressure from the EU. 

Read more