Build (game engine) explained

Build Engine
Logo Size:230
Developer:Ken Silverman
License:Source-available[1]
Replaced By:Build 2

The Build Engine is a first-person shooter engine created by Ken Silverman, author of Ken's Labyrinth, for 3D Realms. Like the Doom engine, the Build Engine represents its world on a two-dimensional grid using closed 2D shapes called sectors, and uses simple flat objects called sprites to populate the world geometry with objects.

The Build Engine is generally considered to be a 2.5D engine, as the basic world geometry is two-dimensional with an added height component, allowing each sector to have a different ceiling height and floor height. Some floors can be lower and some can be higher; the same is true with ceilings (in relation to each other). Floors and ceilings can hinge along one of the sector's walls, resulting in a slope. With this information, the Build Engine renders the world in a way that looks three-dimensional, unlike modern game engines that create actual 3D environments.

Though the Build Engine achieved most of its fame from powering the 1996 first-person shooter Duke Nukem 3D, it was also used for many other games.

Technical features

Sectors

Sectors are the building blocks of a level's layout, consisting of a two-dimensional polygonal outline when viewed from above, with the top and bottom faces of the sector given separate altitudes to create a three-dimensional space.[2] Hence, all walls are perfectly vertical—anything appearing otherwise is technically a sloped floor or ceiling. The word room can be used as a loose substitute to aid understanding, though one room in the game world can consist of many sectors, and parallaxed skies can give the illusion of being outdoors. Sectors can be manipulated in real-time; all of their attributes such as shape, height, and slope could be modified "on-the-fly" by games, unlike the earlier Doom engine. This allowed games to have destructible environments, such as those seen in Blood.[2] This technique is similar to the use of push walls in the earlier Apogee Software title Rise of the Triad which featured similar dynamic environments.

Developers of games based on the engine used special reserved "sprites" (game objects), often called "sector ", that, when given special tags (numbers with defined meanings), would allow the level designer to construct a dynamic world; similar tag information could be given to the sector walls and floor area to give a sector special characteristics. For example, a particular sector effector may let players fall through the floor if they walk over it and teleport them to another sector; in practice, this could be used to create the effect of falling down a hole to a bigger room or creating a body of water that could be jumped into to explore underwater. A sector could be given a tag that made it behave like an elevator or lift.

Sectors could overlap one another, provided they could not be seen at the same time (if two overlapping sectors were seen at the same time, a hall of mirrors effect resulted).[3] This allowed the designers to create, for instance, air ducts that appeared to extend across the top of another room (however, doing so could be tricky for designers due to the 2D viewpoint used for much of the editing process). This allowed the designers to create worlds that would be physically impossible (e.g. a doorway of a small building could lead into a network of rooms larger than the building itself). While all these made the games using the engine appear to be 3D, it wouldn't be until later first-person shooters, such as Quake, which used the Quake engine, that the engine actually stored the world geometry as true 3D information, making the creation of one area stacked atop another area in a single map very feasible.

Voxels

Later versions of Ken Silverman's Build Engine allowed game selected art tiles to be replaced by 3D objects made of voxels. This feature appeared too late to be used in Duke Nukem 3D, but was seen in some of the later Build Engine games. Blood uses voxels for weapon and ammo pickups, power-ups, and eye-candy (such as the tombstones in the "Cradle to Grave" level, some chairs, and a crystal ball in "Dark Carnival"). Shadow Warrior makes even more advanced use of the technology, with voxels that can be placed on walls (all of the game's switches and buttons are voxels).

For several years, Ken worked on a modern engine based entirely on voxels, known as Voxlap.

Room over room

One limitation of the Build Engine is that its level geometry is only capable of representing one connection between sectors for any given wall. Due to this, a structure as simple as a shelf with space both above and below it is impossible, though sometimes sprites or voxels can be substituted. Buildings with several floors are technically possible, but it is not possible for such a building to contain an external window directly above or below another window. In addition, some liberties will need to be taken with the staircases, elevators, and other methods of access for each floor.

Several Build Engine games (namely Shadow Warrior, Blood, and Redneck Rampage) worked around this by displaying a "viewport" to another sector through an additional rendering pass. This technique, called room-over-room (ROR), appears seamless to the player. In addition to an expanded range of vertical construction, ROR was often used to give bodies of water translucent surfaces. ROR was never a feature of the Build Engine itself, but rather a "trick" that was created by game developers. A trick used in Duke Nukem 3D to get around this, as in the case of its opaque underwater sections, was to simply transport the player quickly to another region of the map made to mimic it, similar to the elevators from Rise of the Triad.

In 2011, a feature was added to EDuke32 called true room over room (TROR), which allows multiple sectors to be stacked vertically so that each sector's wall has its own connection, enabling vertically-unrestricted structures. The difference between ROR and TROR is that TROR sectors physically overlap in the map data and editor (allowing for easy creation and visualization), rather than being drawn from separate locations using view portals, hence true room over room. TROR is a feature of the EDuke32 source port, not a game feature or trick.

List of Build Engine games

Games that are built directly on the Build Engine

YearTitleDeveloperNotes
1994Rock'n Shaolin: Legend of Seven Paladins 3DAccend Inc.Illegally used an earlier version of the engine, only released in Taiwan and South Korea.[4] [5]
1995WitchavenCapstone Software
William Shatner's TekWar
1996Duke Nukem 3D[6] 3D RealmsAlso Plutonium PAK, Atomic Edition, Duke!ZONE II, Xtreme, Duke it Out in D.C., Life's a Beach and Nuclear Winter expansions.
PowerSlaveLobotomy Software
Capstone Software
1997BloodMonolith ProductionsAlso Plasma Pak and Cryptic Passage expansions.
Shadow Warrior3D RealmsAlso Twin Dragon and Wanton Destruction expansions.
2024SkilanderHackers and HiihtoliittoReleased at the Revision 2024 gamedev competition.[7] [8]

Games that are based on the Duke Nukem 3D code

YearTitleDeveloperNotes
1997Redneck RampageXatrix EntertainmentAlso Suckin' Grits on Route 66 expansion.
1998Redneck Rampage Rides Again
Redneck Deer Huntin'
Extreme PaintBrawlCreative Carnage
NAMTNT Team
Liquidator[9] AkellaIllegally used the engine, only released in Russia.
1999WWII GITNT TeamAlso WWII GI: Platoon Leader expansion.
2019Ion FuryVoidpointvia EDuke32.
2022A.W.O.L.[10] Shotspark Studios

Unreleased Build Engine games

Development

The Build Engine was essentially a one-man project for Ken Silverman, though he consulted John Carmack for guidance early in the project.[3] Silverman was hired by 3D Realms on the basis of his demo for Build. Though he continued to refine the engine after becoming employed at 3D Realms, according to Silverman he never teamed with any other 3D Realms employees on the project and was never directed to tailor the engine towards any particular game.[2]

Source release and further developments

On June 20, 2000 (according to his website) Ken Silverman released the Build Engine source code under a proprietary non-commercial license.[11] Silverman explained that after id Software set a precedent by releasing the source code for the Doom engine, fans had been pressuring him to release the source code for the Build Engine.[2]

Early days

Version 2.0 of Matt Saettler's EDuke, a project to improve Duke Nukem 3D for modders, was sent to 3D Realms for packaging shortly after the release of the Build source, leaving Duke Nukem 3D the pre-built libraries that 3D Realms had used with the original Duke. (Both Duke Nukem 3D and EDuke were still closed-source at this point.)

With the 2.1 private betas, Saettler worked towards integrating Silverman's build source into the Duke source code, but the project fizzled out before producing anything more than some very buggy private betas. A few total conversion teams for Build games decided to work from Silverman's Build code directly, and an enhanced version of the Build editor known as Mapster was also developed.

It was claimed at the time by many on the 3D Realms forums that it would be impossible to port Build to a multitasking OS, as it needed a large contiguous block of memory that wouldn't be available in a multitasking environment. This statement did not hold up to scrutiny, as all modern operating systems use virtual memory which allows apps to get contiguous logical memory without using contiguous physical memory, but conventional wisdom of the time was that porting Build to such an OS was unfeasible.

Duke Nukem 3D source release

On April 1, 2003, after several years of claims to the contrary, 3D Realms released the source code to Duke Nukem 3D under the GPL-2.0-or-later license.[12] Not long afterwards, both Ryan C. Gordon and Jonathon Fowler created and released source ports of the game, including the Build Engine. It was possible to play Duke Nukem 3D well on the NT line of Windows (including Windows 2000/XP) and on Linux and other Unix operating systems, and interest in the source ports soared.

icculus.org port

Ryan C. Gordon (icculus), with the help of others, made the first port of the engine using SDL. The port was first to Linux, then to Cygwin, and finally to a native Windows build using the Watcom C++ compiler, which was the compiler used for the original DOS build (despite being compiled with Watcom C++, Build is plain C.)[13] There was some talk of Matt Saettler using this to port EDuke to Windows, but nothing came of it. A port of Duke Nukem 3D was later produced after the source was released.[14] This was also forked by David "Rancidmeat" Koenig as Duke3d_w32 which was in turned forked into the multiplayer focused xDuke, hDuke, nDuke and rDuke.

JonoF port

A second source port was made to Windows, and later to Linux and Mac OS X, by Jonathon Fowler (JonoF). This port, JFDuke3D, initially did not have network game support, though this was added later in development. After a long period of dormancy it was put on GitHub in 2020 and received updates in 2021 and 2024.[15] [16] [17] He also ported the Ken-Build test game.[18]

Polymost

The task of updating the Build Engine to a true 3D renderer was taken on by Silverman himself. In the release notes for Polymost, he wrote: "When 3D Realms released the Duke Nukem 3D source code, I thought somebody would do a OpenGL or Direct3D port. Well, after a few months passed, I saw no sign of somebody working on a true hardware-accelerated port of Build, just people saying it wasn't possible. Eventually, I realized the only way this was going to happen was for me to do it myself."[19]

The Polymost renderer allowed for 3D hardware-accelerated graphics using OpenGL. It also introduced "hightile", a feature that made it possible to replace the game's original textures with high-resolution replacements in a variety of formats. Polymost has been utilized in Jonathon Fowler's JFBuild, JFDuke3D, JFShadowWarrior, and source ports derived from their code bases.

EDuke32

The source for EDuke 2.0 was later released, followed by the source for the last private beta of EDuke 2.1 (which never made it to a release version). Richard Gobeille (TerminX) merged the EDuke 2.0 source with JFDuke3D to make EDuke32. Another port, Wineduke, based on the icculus code, has since died off, leaving EDuke32 the only EDuke port still in development.[20]

EDuke32 also supports the games NAM and WWII GI, as EDuke was based on the code to those games.

Polymer

On April 1, 2009, an OpenGL shader model 3.0 renderer was revealed to have been developed for EDuke32, named Polymer to distinguish from Ken Silverman's Polymost. At first it was thought to be an April Fools' joke, but the renderer was later made public. It allows for more modern effects such as real-time dynamic colored lighting and shadow mapping, specular and normal mapping, and other shader-based features in addition to most of the features added to Polymost over the years. Although Polymer is completely usable, it is technically incomplete and unoptimised, and is still in development. The developers of EDuke32 have stated that once Polymer has been rewritten for speed, it will supplant Polymost completely, as it is a superior renderer, and can be made to look identical to Polymost.

Other game ports

BuildGDX
Developer:Alexander "[M210]" Makarov
Latest Release Version:1.16
Platform:Java
Genre:Game engine
License:Source-available, GNU GPL v2
Replaced By:NuBuildGDX

The Shadow Warrior source code was released on April 1, 2005 under the GPL-2.0-or-later license, and JonoF released a source port of it, JFShadowWarrior, on April 2, 2005.[21] However, he admitted that he had access to the Shadow Warrior source code about a week before its release.[22] The port was left in a partially incomplete state, before being put on GitHub in 2020 and receiving updates in 2021 and 2024. The earlier version was later forked by Ben "ProASM" Smit for the SWP port.[23] An icculus port of Shadow Warrior was started, but remained alpha.[24] A VoidSW port by the Ion Fury and EDuke32 developers entered public beta on May 21, 2020.[25] A fork from an earlier version, called IcedSW, by Justin "IceColdDuke" Marshall also exists.[26]

The Transfusion project aimed to re-create Blood in the DarkPlaces engine,[27] but as of 2007, this project was far from complete, though it has playable deathmatch multiplayer; a similar project is BloodCM which recreates all of the Monolith made single player levels for Blood on top of EDuke32,[28] as well as ZBlood which ports some Blood assets and levels onto ZDoom.[29] The eRampage project attempted to create a total conversion of Redneck Rampage for EDuke32.[30] Meanwhile DN3DooM,[31] [32] [33] Shadow Warrior TC,[34] Doomed Redneck,[35] Re-Blood,[36] Re-PowerSlave,[37] VietDoom,[38] [39] [40] [41] and Fatedoom[42] adapts those games onto GZDoom.

The source code of Witchaven, , William Shatner's TekWar, and Corridor 8: Galactic Wars have also surfaced. The legal status of these, however, is unclear, though the derived EGwhaven patches for Witchaven were included in the game's Steam and GOG.com re-releases.[43] JonoF released ports for Witchaven and TekWar on March 3, 2024;[44] with derived ETekWar and EWitchaven ports also prototyped.[45] The full source code for various alpha versions of Blood have also leaked over time.[46]

This was then used as a reference for an otherwise reverse engineered port to Java using LibGDX called BloodGDX in May 2017 by Alexander "M210" Makarov, the previous author of BloodCM.[47] This followed from the author's previous port of TekWar released in January 2016,[48] and has been followed up by ports for Witchaven,[49] Redneck Rampage,[50] Duke Nukem 3D, PowerSlave, Legends of the Seven Paladins and Shadow Warrior, now all collectively called BuildGDX.[51] DukeGDX also supports the files from the 20th Anniversary World Tour edition of Duke Nukem 3D.[52]

A further port of Blood, called NBlood, was released in January 2019 by Alexey "Nuke.YKT" Khokholov based on EDuke32,[53] and the creator's previous Rednukem port for Redneck Rampage (which also supports Duke Nukem 3D and Duke Nukem 64).[54] [55] An EDuke32 port for PowerSlave, called PCExhumed, was released on November 21, 2019 by Barry Duncan (sirlemonhead) with help from Nuke.YKT.[56] The source port Raze forks various Build engine ports, including JFDuke3D, SWP, NBlood, Rednukem, and PCExhumed, and ties it to a new underlying backend based on the developers' own GZDoom.[57] NBlood and PCExhumed have also been backported to JFBuild for the purpose of adapting it to platforms such as the Amiga, PlayStation Vita and Nintendo 3DS.[58]

Successor

After multiple attempts to design a successor to Build, Silverman again began experimenting with such an idea in 2006. He used this work - now called Build 2 - while teaching 3D game programming to children at a summer camp from 2007 until 2009, and work continued until 2011 when he lost interest in the project. It features a more advanced lighting system, voxel rendering for entities and true room-over-room 3D spaces, and at least in part retained backwards compatibility with the original Build. Silverman released his drafts to the public on March 7, 2018.[59] [60] The source code was published under a proprietary non-commercial license on June 8, 2019.[61]

External links

Notes and References

  1. Web site: buildlic.txt. 2000-06-20. https://web.archive.org/web/20170512141124/http://eduke32.com/buildlic.txt. 2017-05-12. live.
  2. Rule. Duncan . Building Classics . Retroaction. 2. Summer 2009. 8–15. 26 December 2021.
  3. Web site: Zak . Robert . 13 April 2016 . The Beauty of the Build Engine . Rock, Paper, Shotgun.
  4. 873900494246338560. lazygamereviews. As a result, Legends of the Seven Paladins (illegally) became the first Build Engine game, using code they didn't have the rights to.. Clint Basinger. 2017-06-11. 2022-09-16.
  5. Web site: TWIM . 2017-07-01 . Hardcore Gaming 101 . A History of Korean Gaming.
  6. October 1995 . 3D Realms . . . 10 . 99–102.
  7. Web site: Demozoo . 2024-05-17 . Revision 2024 results - Demozoo.
  8. Web site: Pouet.net . 2024-05-17 . Skilander by Hackers & Hiihtoliitto - Pouet.net.
  9. Web site: The Liquidator. Zykov. Eddy. RTCM - EDuke32 Duke3D Mod Reviews. 2013-06-12. 2023-03-21.
  10. Web site: Liam . Dawe . A.W.O.L. is a new FREE retro FPS using the Build Engine (Duke Nukem 3D, Ion Fury) . GamingOnLinux . 2022-09-16 . 2023-03-15.
  11. Web site: Ken Silverman's Build Engine Source Code Page. July 7, 2008.
  12. Web site: Duke Nukem 3D on RISC OS?. Jeffrey. Lee. 2003-04-04. 2024-07-14. Icon Bar.
  13. Web site: The BUILD Engine. icculus.org. Ryan. Gordon. Ryan C. Gordon. 2024-05-15.
  14. Web site: Duke Nukem 3D. icculus.org. Ryan. Gordon. Ryan C. Gordon. 2024-05-15.
  15. Web site: JFDuke3D. JonoF's Games and Stuff. Jonathan. Fowler. 2024-05-15.
  16. Web site: https://web.archive.org/web/20230610115744/http://fps.maros.pri.ee/index.php?event=47. JonoF's Duke Nukem 3D Port (JFDuke3D). FPS Ports. 2023-06-10. 2024-05-15.
  17. Summer 2020. JFDuke3D. Linux Format. 2024-05-15.
  18. Web site: JFBuild. JonoF's Games and Stuff. Jonathan. Fowler. 2024-05-15.
  19. Web site: Fowler . Jonathon . Release Notes for JFDuke3D . JonoF's Games and Stuff . https://web.archive.org/web/20140617180152/http://static.jonof.id.au/modsuppt/jfduke3d/releasenotes.html . June 17, 2014 . October 9, 2005 . dead.
  20. Web site: WinEDuke. https://web.archive.org/web/20230130083444/http://fps.maros.pri.ee/index.php?event=24. FPS Ports. 2023-01-30. 2024-05-16.
  21. Web site: Shadow Warrior Feature. Captain Williams. 2023-03-21. On April 1, 2005 3D Realms released the source code for SW's engine under GPL. The timing of the source release lead to believe it was an April fools joke, it spawned its first source port a day later entitled JFShadowWarrior and had the improvements of JFDuke3D and Linux support..
  22. Web site: Fowler. Jonathon. JFShadowWarrior. https://web.archive.org/web/20071106084953/http://www.jonof.id.au/forum/index.php?topic=308. 2007-11-06. JonoF's. 3 August 2011. 1. 3 April 2005. …I [JonoF] did have a week head start….
  23. Web site: Shadow Warrior (PC) - OpenGL Port. The Gamer's Journal. Vaughn. Royko. 2006-03-01. 2023-03-20.
  24. Web site: Shadow Warrior. icculus.org. Ryan. Gordon. Ryan C. Gordon. 2024-05-15.
  25. Web site: Shadow Warrior. Nuku's Collage of Life. 2022-04-01. 2023-03-21.
  26. Web site: SW Iced Port. Justin. Marshall. 2024-05-16.
  27. Web site: Devoted to the cause - Blood Transfusion to save aging game. https://web.archive.org/web/20030408231711/http://www.gameindustry.com/interviews/int030320.asp. Game Industry News. Gareth. Von Kallenbach. 2003. 2003-04-08.
  28. Web site: BloodCM – Blood v Eduke32. 2017-04-07. Sledge. High Voltage. 2023-03-23.
  29. Web site: I Live, Again.... Maxim. Bardin. Linux Gaming News. 2009-11-09. 2023-02-19.
  30. Web site: Play Redneck Rampage on Windows Vista, 7 or 8. Play Old PC Games. 2013-03-21. 2023-03-19.
  31. Web site: Doom Nukem? Modder Brings Duke To Doom. Bella. Blondeau. 2020-10-08. The Gamer. 2024-05-10.
  32. Web site: Duke Nukem while you Doom with this crossover mod. Nic. Reuben. 2020-10-07. PCGamesN. 2024-05-10.
  33. Web site: Duke Nukem 3D Total Conversion Mod for Doom Version 1.06 Released. 2020-10-07. John. Papadopoulos. DSOGaming. 2024-05-10.
  34. Web site: Shadow Warrior Total Conversion. 2016-09-17. GamingRoom.NET. 2024-05-09.
  35. Web site: Doomed Redneck. 2023-03-17. GamingRoom.NET. 2024-05-09.
  36. Web site: Re-Blood. Kotaku. 2024-05-10.
  37. Web site: Re-PowerSlave. 2024-01-17. GamingRoom.NET. 2024-05-09.
  38. Web site: VietDOOM is Apocalypse Now in DOOM. 2019-08-15. Filip. Galekovic. Game Watcher. 2024-05-10.
  39. Web site: VietDoom is the love-child of Apocalypse Now and id Software. Emily. Gera. 2019-08-15. VG247. 2024-05-10.
  40. Web site: Developer of Brutal Doom reveals new project: VietDoom; alpha 0.1 already available. Daniel. Palacio. GamingOnLinux. 2019-12-27. 2024-05-10.
  41. Web site: Sergeant Mark IV is working on a Vietnam war inspired “Doom II” mod called “VietDoom”. Robin. Ek. 2019-08-26. 2024-05-10.
  42. Web site: Fate. Obscure Game Aesthetics. 2024-05-10. The only remaining part of the game is a 4-level demo with 7 weapons and 10 enemies, released just before IntraCorp's closure.... There's also a mod called Fatedoom that transports the demo's content into Doom..
  43. Web site: Witchaven II: Blood Vengeance. Steam. SNEG. 2024-05-12. You're getting two builds: patched (Enhanced) and retail (Original) for those of you who prefer an unaltered experience as a bonus. Both builds are running on DOSBox with a custom configuration tool. The Enhanced build features fixes introduced in EGwhaven, a must-have community project, which addresses an array of bugs and issues with the game (we'd like to thank ETTiNGRiNDER for the contribution to this release). Additionally, the controls are re-mapped to what you'd expect to see as a default in a first-person game nowadays..
  44. Web site: JFTekWar and JFWitchaven. JonoF's Games and Stuff. Jonathan. Fowler. 2024-05-15.
  45. Web site: NBlood / Rednukem / PCExhumed binaries. Duke4. 2024-05-16.
  46. Web site: The Duke Nukem Forever leaker just dropped the source code for another beloved '90s FPS. PC Gamer. Ted. Litchfield. 2023-01-05. 2023-11-12.
  47. Web site: You Can Play The Original Blood Using Java Now . . Alex Walker . 2017-05-23 . 2020-08-15.
  48. Web site: William Shatner's Tekwar lives again... for some reason. Rock Paper Shotgun. Dominic. Tarason. 2018-02-19. 2023-03-20.
  49. Web site: Redneck Rampage looks smarter but feels as dumb as ever with this modern port. Rock Paper Shotgun. Dominic. Tarason. 2018-09-10. 2023-03-20.
  50. Web site: RedneckGDX is a Java port for Redneck Rampage, offering better mouse support, OpenGL renderer and more. DSOG. 2018-09-11. John. Papadopoulos. 2023-03-19.
  51. Web site: Raze - a new open source fork of EDuke32 backed by GZDoom tech . GamingOnLinux . Liam Dawe . 2023-03-19. One of the team said to think of it a bit like BuildGDX, as Raze "shares the renderer, the sound system and the input/system interface code across games"..
  52. Web site: Duke Nukem 3D (with BuildGDX engine). The Linux Game Book. 2023-03-20.
  53. Web site: NBlood, an open source port of the classic FPS 'Blood' using EDuke32 . GamingOnLinux . Liam Dawe . 2020-08-15.
  54. Web site: Redneck series (with Rednukem engine). The Linux Game Book. 2023-03-20.
  55. Web site: Duke Nukem 3D (with Rednukem engine). The Linux Game Book. 2023-03-20.
  56. Web site: Exhumed/PowerSlave can now be played easily with a cross-platform game engine . GamingOnLinux . Liam Dawe . 2022-03-19.
  57. Web site: Raze - a new open source fork of EDuke32 backed by GZDoom tech . GamingOnLinux . Liam Dawe . 2020-08-15.
  58. Web site: PS Vita Release: jfblood-vita (Blood port). Wololo.net. TheGuardian. 2022-11-17. 2024-05-15.
  59. Web site: Tarason . Domonic . 9 March 2018 . Ken Silverman's long-lost BUILD2 engine released . 23 June 2018 . . 1.
  60. Web site: Wawro . Alex . 9 March 2018 . Now you can muck around with the Build Engine successor: Build2 . 23 June 2018 . . 1.
  61. Web site: BUILD2 Demo and Tools. advsys.net. 2019-08-22.