Source (game engine)

From Wikipedia, the free encyclopedia
  (Redirected from Valve Hammer Editor)
Jump to navigation Jump to search

Source
Source engine logo and wordmark.svg
Developer(s)Valve
Initial releaseJune 2004; 16 years ago (2004-06)
Written inC++
Middleware
PredecessorGoldSrc
SuccessorSource 2
LicenseProprietary

Source is a 3D game engine developed by Valve. It debuted as the successor to GoldSrc with Half-Life: Source in June 2004, followed shortly by Half-Life 2 in November, and has been in active development since. Source does not have a concise version numbering scheme; instead, it is designed in constant incremental updates. The engine began to be phased out by the late 2010s, with Source 2 succeeding it.

History[edit]

Source distantly originates from the GoldSrc engine, itself a heavily modified version of John Carmack's Quake engine with some code from the Quake II engine. Carmack commented on his blog in 2004 that "there are still bits of early Quake code in Half-Life 2".[1] Valve employee Erik Johnson explained the engine's nomenclature on the Valve Developer Community:[2]

When we were getting very close to releasing Half-Life (less than a week or so), we found there were already some projects that we needed to start working on, but we couldn't risk checking in code to the shipping version of the game. At that point we forked off the code in VSS to be both /$Goldsrc and /$Src. Over the next few years, we used these terms internally as "Goldsource" and "Source". At least initially, the Goldsrc branch of code referred to the codebase that was currently released, and Src referred to the next set of more risky technology that we were working on. When it came down to show Half-Life 2 for the first time at E3, it was part of our internal communication to refer to the "Source" engine vs. the "Goldsource" engine, and the name stuck.

Source was developed part-by-part from this fork onwards, slowly replacing GoldSrc in Valve's internal projects[3] and, in part, explaining the reasons behind its unusually modular nature. Valve's development of Source since has been a mixture of licensed middleware and in-house-developed code. Among others, Source uses Bink Video for video playback.[4]

Modularity and notable upgrades[edit]

Source was created to evolve incrementally with new technology, as opposed to the backward compatibility-breaking "version jumps" of its competitors. Different systems within Source are represented by separate modules which can be updated independently. With Steam, Valve can distribute these updates automatically among its many users. In practice, however, there have been occasional breaks in this chain of compatibility. The release of Half-Life 2: Episode One and The Orange Box both introduced new versions of the engine that could not be used to run older games or mods without the developers performing upgrades to code and, in some cases, content.[5] Both cases required markedly less work to update its version than competing engines.

Source 2006[edit]

A screenshot of Half-Life 2: Episode One. The high dynamic range rendering and Phong shading effects are evident.

The Source 2006 branch was the term used for Valve's games using technology that culminated with the release of Half-Life 2: Episode One. HDR rendering and color correction were first implemented in 2005 using Day of Defeat: Source, which required the engine's shaders to be rewritten.[6] The former, along with developer commentary tracks, were showcased in Half-Life 2: Lost Coast. Episode One introduced Phong shading and other smaller features. Since the transition to Steam Pipe, this branch was made deprecated and is now used for backward compatibility with older mods.[citation needed] Image-based rendering technology had been in development for Half-Life 2,[7] but was cut from the engine before its release. It was mentioned again by Gabe Newell in 2006 as a piece of technology he would like to add to Source to implement support for much larger scenes that are impossible with strictly polygonal objects.[8]

Source 2007[edit]

The Source 2007 branch represented a full upgrade of the Source engine for the release of The Orange Box. An artist-driven, threaded particle system replaced previously hard-coded effects for all of the games within.[citation needed] An in-process tools framework was created to support it, which also supported the initial builds of Source Filmmaker. In addition, the facial animation system was made hardware-accelerated on modern video cards for "feature film and broadcast television" quality.[9] The release of The Orange Box on multiple platforms allowed for a large code refactoring, which let the Source engine take advantage of multiple CPU cores.[10] However, support on the PC was experimental and unstable[11] until the release of Left 4 Dead.[12] Multiprocessor support was later backported to Team Fortress 2 and Day of Defeat: Source.[13] Valve created the Xbox 360 release of The Orange Box in-house, and support for the console is fully integrated into the main engine codeline. It includes asset converters, cross-platform play and Xbox Live integration.[14] Program code can be ported from PC to Xbox 360 simply by recompiling it.[15] The PlayStation 3 release was outsourced to Electronic Arts, and was plagued with issues throughout the process. Gabe Newell cited these issues when criticizing the console during the release of The Orange Box.[16]

Left 4 Dead branch[edit]

The Left 4 Dead branch was a complete overhaul of the Source engine through the development of the Left 4 Dead series. Multiprocessor support was further expanded, allowing for features like split screen multiplayer, additional post-processing effects, event scripting with Squirrel, and the highly-dynamic AI Director. The menu interface was re-implemented with a new layout designed to be more console-oriented. This branch later fueled the releases of Alien Swarm and Portal 2, the former released with source code outlining many of the changes made since the branch began. Portal 2, in addition, served as the result of Valve taking the problem of porting to PlayStation 3 in-house, and in combination with Steamworks integration creating what they called "the best console version of the game".[17]

OS X, Linux, and Android support[edit]

In April 2010, Valve released all of their major Source games on OS X, coinciding with the release of the Steam client on the same platform. Valve announced that all their future games would be released simultaneously for Windows and Mac.[18][19] The first of Valve's games to support Linux was Team Fortress 2, the port released in October 2012 along with the closed beta of the Linux version of Steam. Both the OS X and Linux ports of the engine take advantage of OpenGL and are powered by Simple DirectMedia Layer.[20] During the process of porting, Valve rearranged most of the games released up to The Orange Box into separate, but parallel "singleplayer" and "multiplayer" branches. The game code to these branches was made public to mod developers in 2013, and they serve as the current stable release of Source designated for mods. Support for Valve's internal Steam Pipe distribution system as well as the Oculus Rift are included.[21] In May 2014, Nvidia released ports of Portal and Half-Life 2 to their Tegra 4-based Android handheld game console Nvidia Shield.[22]

Tools and resources[edit]

Source SDK[edit]

The launcher menu for Source SDK as of 2010

Source SDK is the software development kit for the Source engine, and contains many of the tools used by Valve to develop assets for their games. It comes with several command-line programs designed for special functions within the asset pipeline, as well as a few GUI-based programs designed for handling more complex functions. Source SDK was launched as a free standalone toolset through Steam, and required a Source game to be purchased on the same account. Since the release of Left 4 Dead in late 2008, Valve began releasing "Authoring Tools" for individual games, which constitute the same programs adapted for each game's engine build. After Team Fortress 2 became free-to-play, Source SDK was effectively made open to all Steam users. When some Source games were updated to Source 2013, the older Source SDKs were phased out. The three applications mentioned below are now included in the install of each game.

There are three applications packaged in the Source SDK: Hammer Editor, Model Viewer, and Face Poser. Hammer Editor, the engine's official level editor, uses rendering and compiling tools included in the SDK to create maps using the binary space partitioning (BSP) method. The tool was originally known as Worldcraft and was developed independently by Ben Morris before Valve acquired it.[23] The Model Viewer is a program that allows users to view models and can be used for a variety of different purposes, including development. Developers may use the program to view models and their corresponding animations, attachment points, bones, and so on. Face Poser is the tool used to access facial animations and choreography systems. This tool allows one to edit facial expressions, gestures and movements for characters, lip sync speech, and sequence expressions and other acting cues and preview what the scene will look like in the game engine.

Source Dedicated Server[edit]

The Source Dedicated Server (SRCDS) is a standalone launcher for the Source engine that runs multiplayer game sessions without requiring a client. It can be launched through Windows or Linux and can allow for custom levels and assets. Most third-party servers additionally run Metamod:Source and SourceMod, which together provide a framework on top of SRCDS for custom modification of gameplay on existing titles.[24][25]

Source Filmmaker[edit]

The Source Filmmaker (SFM) is a video capture and editing application that works from within the Source engine.[26] Developed by Valve, the tool was originally used to create movies for Day of Defeat: Source and Team Fortress 2. It was also used to create some trailers for Source Engine games. The software was released to the public in 2012.

Destinations Workshop Tools[edit]

In June 2016, Valve released the Destinations Workshop Tools, a set of free virtual reality (VR) creation tools running using the Source 2 SDK.[27]

Valve Developer Community[edit]

In June 2005, Valve opened the Valve Developer Community (VDC) wiki.[citation needed] VDC replaced Valve's static Source SDK documentation with a full MediaWiki-powered community site; within a matter of days Valve reported that "the number of useful articles nearly doubled". These new articles covered the previously undocumented Counter-Strike: Source bot, Valve's non-player character AI, advice for mod teams on setting up source control, and other articles.

Academic papers[edit]

Valve staff occasionally produce professional and/or academic papers for various events and publications, including SIGGRAPH, Game Developer Magazine and Game Developers Conference, explaining various aspects of Source engine's development.[28]

Games using Source[edit]

Year Title Developer(s) Publisher(s)
2004 Counter-Strike: Source Valve Valve
Half-Life 2
Vampire: The Masquerade – Bloodlines[29] Troika Games Activision
Half-Life 2: Deathmatch Valve Valve
Half-Life: Source
2005 Day of Defeat: Source
Half-Life 2: Lost Coast
2006 Half-Life Deathmatch: Source
Half-Life 2: Episode One
Garry's Mod Facepunch Studios
SiN Episodes Ritual Entertainment Ritual Entertainment
Dark Messiah of Might and Magic Arkane Studios Ubisoft
The Ship Outerlight Mindscape (EU), Merscom (NA)
Kuma\War Kuma Reality Games Kuma Reality Games
2007 Half-Life 2: Episode Two Valve Valve
Team Fortress 2
Portal
Dystopia Team Dystopia, Puny Human Puny Human
Insurgency: Modern Infantry Combat Insurgency Development Team New World Interactive
2008 Left 4 Dead Valve Valve
2009 Left 4 Dead 2
Zeno Clash[30] ACE Team Iceberg Interactive, Tripwire Interactive
NeoTokyo Studio Radi-8 NEOTOKYO[31]
2010 Bloody Good Time Outerlight Ubisoft
Vindictus devCAT Nexon
E.Y.E.: Divine Cybermancy Streum On Studio Streum On Studio
Alien Swarm Valve Valve
2011 Portal 2
No More Room in Hell No More Room in Hell Team Lever Games
Nuclear Dawn InterWave Studios Iceberg Interactive
Postal III Trashmasters, Running with Scissors Akella
Dino D-Day 800 North, Digital Ranch 800 North, Digital Ranch
2012 Dear Esther The Chinese Room Curve Digital
Counter-Strike: Global Offensive Valve, Hidden Path Entertainment Valve
Hybrid 5th Cell Microsoft Studios
2013 Tactical Intervention FIX Korea OGPlanet
The Stanley Parable Galactic Cafe Galactic Cafe
Dota 2[a] Valve Valve
2014 Blade Symphony Puny Human Puny Human
Consortium Interdimensional Games Interdimensional Games
Contagion Monochrome Monochrome
Insurgency New World Interactive New World Interactive
Aperture Tag Aperture Tag Team Aperture Tag Team
Fistful of Frags Fistful of Frags Team Fistful of Frags Team
2015 Portal Stories: Mel Prism Studios Prism Studios
The Beginner's Guide Everything Unlimited Everything Unlimited
2016 Infra Loiste Interactive Loiste Interactive
2017 Day of Infamy New World Interactive New World Interactive
2020 Black Mesa Crowbar Collective Crowbar Collective

Source 2[edit]

Source 2, the successor to Source, was announced by Valve at the Game Developers Conference in March 2015.[32] There, Valve stated that it would be free to use for developers, with support for the Vulkan graphical API, as well as using a new in-house physics engine called Rubikon.[33][34] In June 2015, Valve announced that Dota 2, originally made in the Source engine, would be ported over to Source 2 in an update called Dota 2 Reborn.[35][36] Reborn was first released to the public as an opt-in beta update that same month before officially replacing the original client in September 2015, making it the first game to use the engine.[37][38] Source 2 had succeeded the original engine by the late 2010s, with Valve releasing several games using it.

See also[edit]

Notes[edit]

  1. ^ Ported to Source 2 in 2015

References[edit]

  1. ^ "Welcome, Q3 source, Graphics". John Carmack's Blog. 2004-12-31. Archived from the original on 2006-05-17.
  2. ^ Johnson, Erik (2005-09-01). "Talk:Erik Johnson". Valve Developer Community. Archived from the original on 2012-02-15. Retrieved 2007-08-15.
  3. ^ Hodgson, David (2004). Half-Life 2: Raising the Bar. Prima Games. ISBN 0-7615-4364-3.
  4. ^ O'Donnell, Ryan (July 19, 2004). "Counter-Strike: Source - Full-Screen E3 2004 Presentation". GameSpy. Archived from the original on March 4, 2016. Retrieved April 20, 2015.
  5. ^ "New Update Breaking New and Old Mods?". PlanetPhillip. Archived from the original on 2014-10-21. Retrieved 2014-10-17.
  6. ^ Valve. Half-Life 2: Lost Coast (PC). Chris Green: The Source engine supports a wide variety of shaders. The refraction shader on the window here requires us to copy the scene to a texture, refract it, and then apply it the window surface. To fully support HDR, every shader in the engine needed to be updated, so this refraction shader was improved to the support the full range of contrast.
  7. ^ "Interview with Gabe Newell". DriverHeaven.net. Archived from the original on June 28, 2009. Retrieved November 21, 2009.
  8. ^ "Valve Week". 1UP.com. Archived from the original on 2006-07-13. Retrieved 2006-07-14.
  9. ^ "Face-to-Face with TF2's Heavy". Steam news. 2007-05-14. Archived from the original on 2009-05-08. Retrieved 2010-04-25.
  10. ^ "Interview: Gabe Newell". PC Zone. 2006-09-11. Archived from the original on 2012-02-12. Retrieved 2006-09-20.
  11. ^ "Dual Core Performance". 2008-10-11. Archived from the original on 2012-03-14. Retrieved 2008-12-23.
  12. ^ Lombardi, Doug (2008-05-13). "PCGH interview about Left 4 Dead, part 2". Interviewer: Frank Stöwer. Retrieved 2008-12-23.[permanent dead link]
  13. ^ Nick, Breckon (2008-03-18). "Team Fortress 2 Update Adds Multicore Rendering". Archived from the original on 2009-06-16. Retrieved 2009-08-19.
  14. ^ "Source - Console Support". Valve. Archived from the original on 2009-08-13. Retrieved 2009-08-08.
  15. ^ "Joystiq interviews Doug Lombardi about Xbox 360 Source". Joystiq. 2006-10-17. Archived from the original on 2009-09-22. Retrieved 2009-08-08.
  16. ^ Yoon, Andrew (October 11, 2007). "Gabe Newell calls PS3 'waste of everybody's time'". Engadget. Archived from the original on July 3, 2015. Retrieved April 20, 2015.
  17. ^ "Portal 2: Pretty Much Every PS3 Question Answered (And That Cake Thing, Too)". Sony Computer Entertainment America. 2011-04-14. Archived from the original on 2011-09-02.
  18. ^ "Valve to Deliver Steam & Source on the Mac". Valve. 2010-03-08. Archived from the original on 2013-08-26. Retrieved 2010-03-08.
  19. ^ "Left 4 Dead 2, Team Fortress 2, Portal and Steam Coming to Mac in April". Kotaku. 2010-03-08. Archived from the original on 2012-02-15. Retrieved 2010-03-08.
  20. ^ "Simple DirectMedia Layer - Homepage". Archived from the original on April 21, 2018. Retrieved April 21, 2015.
  21. ^ "News - Source SDK 2013 Release". Steam. Archived from the original on April 8, 2015. Retrieved April 21, 2015.
  22. ^ "The Greatest PC Games of All-Time – 'Half-Life 2′ and 'Portal' – Now Available on SHIELD". Nvidia. 2014-05-12. Archived from the original on 2014-05-13. Retrieved 2014-05-12.
  23. ^ "Valve Press Release". Valve. Archived from the original on 2011-06-10. Retrieved 2010-05-12.
  24. ^ "MetaMod:S". Archived from the original on 2014-07-01.
  25. ^ "SourceMod". Archived from the original on 2014-06-01.
  26. ^ "Source Filmmaker". Archived from the original on 2013-04-02. Retrieved 2013-03-31.
  27. ^ Crecente, Brian. "Valve rolls out free VR creation tool for new destinations workshop". Polygon. Archived from the original on 2016-06-09. Retrieved 2016-06-09.
  28. ^ "Valve Publications". Archived from the original on November 1, 2017. Retrieved June 6, 2020.
  29. ^ "Vampire: The Masquerade - Bloodlines Designer Diary #3". GameSpot. December 16, 2003. Archived from the original on April 16, 2014. Retrieved January 4, 2015.
  30. ^ "Hieronymus: ACE Team Explain Zeno Clash II". Rock, Paper, Shotgun. June 7, 2012. Archived from the original on April 5, 2015. Retrieved January 4, 2015.
  31. ^ "NEOTOKYO on Steam". Retrieved 2020-03-07.
  32. ^ Kollar, Philip (2015-03-03). "Valve announces Source 2 engine, free for developers". Archived from the original on 2015-03-05. Retrieved 2015-03-03.
  33. ^ Mahardy, Mike (2015-03-03). "GDC 2015: Valve Announces Source 2 Engine". IGN. Archived from the original on 2015-03-04. Retrieved 2015-03-03.
  34. ^ Migdalskiy, Sergiy (March 2015). "Physics for Game Developers: Physics Optimization Strategies" (PDF). Game Developers Conference. Archived (PDF) from the original on March 4, 2016. Retrieved October 2, 2015.
  35. ^ Martin, Michael. "Valve Announces Dota 2 Reborn". IGN. Archived from the original on 2016-06-29. Retrieved 2016-07-10.
  36. ^ Macy, Seth. "Dota 2 Now Valve's First Ever Source 2 Game". IGN. Archived from the original on 2015-09-10. Retrieved 2015-09-09.
  37. ^ Livingston, Christopher (2015-06-12). "Valve announces Dota 2 Reborn, new engine coming". PC Gamer. Archived from the original on 2015-06-15. Retrieved 2015-06-13.
  38. ^ Macy, Seth. "Dota 2 Now Valve's First Ever Source 2 Game". IGN. Archived from the original on 2015-09-10. Retrieved 2015-09-09.