ArticleslgStudy

computer science

Id Tech 4

Id Tech 4 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Id Tech 4 rather than just read about it. In short: id Tech 4, originally known as the Doom 3 engine, is a game engine developed by id Software and first used in the video game Doom 3. The engine was designed by John Carmack, who also created previous game engines, such as those for Doom and Quake, which are widely recognized as significant advances in the field.

Id Tech 4 — main illustration
Id Tech 4 — illustration

Key takeaways

  • Id Tech 4 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Id Tech 4 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Id Tech 4 from memory before moving on to harder problems.

Reference excerpt

id Tech 4, originally known as the Doom 3 engine, is a game engine developed by id Software and first used in the video game Doom 3. The engine was designed by John Carmack, who also created previous game engines, such as those for Doom and Quake, which are widely recognized as significant advances in the field. This OpenGL-based game engine has also been used in Quake 4, Prey, Enemy Territory: Quake Wars, Wolfenstein, and Brink. id Tech 4 is licensed under the terms of the GNU General Public License v3.0 or later, and is to date the last id Tech engine to be open-sourced.

History id Tech 4 began as an enhancement to id Tech 3. During development, it was initially just a complete rewrite of the engine's renderer, while still retaining other subsystems, such as file access, and memory management. The decision to switch from C to the C++ programming language necessitated a restructuring and rewrite of the rest of the engine; today, while id Tech 4 contains code from id Tech 3, much of it has been rewritten. At the QuakeCon 2007, John Carmack, the lead graphics engine developer at id, said to LinuxGames: "I mean, I won't commit to a date, but the Doom 3 stuff will be open source". And like its predecessors, John Carmack has said that id Tech 4 will be released as open-source. At the QuakeCon 2009, Carmack said that he planned to petition ZeniMax Media to release the id Tech 4 source upon the release of Rage. As part of his keynote for QuakeCon 2011, he confirmed that the source code to Doom 3 would be out by the end of the year, after the release of Rage. On November 16, 2011, Carmack announced on Twitter that he's writing new code for Doom 3's open source release, because "lawyers are still skittish about the patent issue around 'Carmack's reverse'". This refers to an implementation of stencil buffered shadow volume algorithms. On November 22, 2011, Carmack released the Doom 3 source code under GNU GPL-3.0-or-later on GitHub. The source does not include any of the 'Carmack's Reverse' code. According to Carmack, minor tweaks were made to the code to avoid any infringement. Since then, several open-source projects have been released, such as dhewm3, Dante, and RBDOOM-3-BFG. In 2021 the Quake 4 game DLLs were adapted for use with the open source dhewm3 engine derived from the released Doom 3 source code (with work also started on Prey); this has since been used to port the game to AmigaOS 4.

Hardware The original requirement of id Tech 4 was that it needed a high-end graphics processing unit (GPU) with fully programmable vertex and pixel shaders, such as the Nvidia GeForce 3 or ATI Radeon 8500, with at least 64 MB of VRAM. By E3 2002, the recommended GPU was "100% DirectX 9.0b compatible", such as the Radeon 9700 with 128 MB of VRAM. While the Radeon 9700's DirectX 9.0 features are not necessary to render the game, its advanced architecture, 256-bit memory bus, and efficiency were needed to run Doom 3 at high detail and playable speed. The "Ultra" graphics mode included in Doom 3 would not even run on high end graphics cards in 2004, as the engine required at least 512 MB of video memory to display properly and at playable speeds. id Tech 4 resulted in the obsolescence of DirectX 7 graphics chips such as the widespread GeForce 2 and Radeon 7200, as well as older chipsets such as RIVA TNT2 and Rage 128, and software rendering (with an integrated Intel GMA). Until the advent of id Tech 4, a powerful CPU was able to somewhat compensate for an older video card. While John Carmack initially warned gamers not to purchase the GeForce 4 MX (which casual consumers often confused with the DirectX 8 capable GeForce 4 Ti, though it was at best an improved GeForce 2), its somewhat widespread adoption compelled id Software to add it to the list of supported cards. There have been cases of enthusiasts forcing Doom 3 to run on unsupported graphics chips, such as the long obsolete Voodoo 2, but these are unable to render the per-pixel lighting and bump mapping.

Features

Graphics Id Tech 4 added several new graphical features absent in its predecessor, id Tech 3. These included normal mapping and specular highlighting. More features were added in the development of successive games. The models used in id Tech 4 games are animated using skeletal animation. The engine can blend multiple animations together to produce a skin that moves correctly for those animations. Because this is CPU intensive, id did some work optimizing this by using Intel's Streaming SIMD Extensions (SSE).

Dynamic lighting

The primary innovation of id Tech 4 was its use of entirely dynamic per-pixel lighting and shadow volumes, whereas previously, 3D engines had relied primarily on pre-calculated per-vertex lighting or lightmaps and Gouraud shading, and shadows were either faked (such as the traveling dark spot beneath characters in id Tech 3 games) or non-existent. id Tech 4 unified lighting and shadows, something absent in prior id Tech engines. All light sources in Doom 3 are dynamic, something the companion book The Making of Doom 3 describes as "The biggest headache for the level designers". While dynamic effects had been available before (such as dynamic moving lights), this effect merely changed the brightness of the vertices of the polygon, with the pixel's colors simply being interpolated between the three vertex colors of its polygon. This fully realtime approach used in Doom 3, combined with the use of shadow volumes permitted more realistic lighting and shadows than in the previous generation of id's engines. The method used to create the shadow volumes is the subject of a patent by Creative, which Creative granted id permission to use in the Doom 3 engine, in exchange for supporting Creative's EAX advanced sound technologies.

… excerpt ends here. Continue reading the full article.

Illustrations

Id Tech 4: This image shows two renders of the same space with and without radiosity. The dynamic lighting system in Doom 3 does not simulate radiosity, in contrast with the baked lightmaps of prior id Tech engines.
This image shows two renders of the same space with and without radiosity. The dynamic lighting system in Doom 3 does not simulate radiosity, in contrast with the baked lightmaps of prior id Tech engines.
Id Tech 4: Prey utilized a modified version of id Tech 4 that allowed for effects such as portals, variable gravity, and wall walking.
Prey utilized a modified version of id Tech 4 that allowed for effects such as portals, variable gravity, and wall walking.

Worked examples

Example 1 — a first encounter with Id Tech 4

Start with the simplest possible case. Write down what Id Tech 4 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Id Tech 4 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Id Tech 4 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Id Tech 4

In research
Id Tech 4 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Id Tech 4 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Id Tech 4 is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2004 software, Doom (franchise), Formerly proprietary software, so understanding it makes those chapters shorter.
In everyday life
Look for Id Tech 4 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Id Tech 4” →

How to study Id Tech 4 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Id Tech 4 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Id Tech 4 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Id Tech 4 in simple terms?

id Tech 4, originally known as the Doom 3 engine, is a game engine developed by id Software and first used in the video game Doom 3. The engine was designed by John Carmack, who also created previous game engines, such as those for Doom and Quake, which are widely recognized as significant advances…

Why does Id Tech 4 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Id Tech 4?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Id Tech 4.

Tags

  • 2004 software
  • Doom (franchise)
  • Formerly proprietary software
  • Free game engines
  • Game engines for Linux
  • Id Tech
  • Quake (series)
  • Video game engines
  • Virtual reality

Keep exploring