Source (game engine)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Source Engine
Source engine logo
Non-photorealistic rendering in Team Fortress 2
Photorealistic character rendering in Left 4 Dead 2
From top to bottom: Source engine logo, Non-photorealistic rendering with Team Fortress 2, and photorealistic rendering in Left 4 Dead 2.
Developer(s) Valve Corporation
Stable release Build 5506 / 2013
Written in C++
Platform Microsoft Windows
OS X
Linux
PlayStation 3
PlayStation 4[citation needed]
Xbox
Xbox 360
Xbox One[citation needed]
Type Game engine
License Proprietary
Website source.valvesoftware.com

Source is a 3D video game engine developed by Valve Corporation. It debuted in June 2004 with Counter-Strike: Source, followed shortly by Half-Life 2, and has been in active development ever since. Source does not have a meaningful version numbering scheme; instead, it is designed in constant incremental updates.[1]

Source was created to power first-person shooters, but has also been used professionally to create role-playing, side-scroller, puzzle, MMORPG, top-down shooter and real-time strategy games.

Notable technology[edit]

These are some notable technologies (a full list of features can be found at Valve's Developer Feature List.):

Source Filmmaker[edit]

The Source Filmmaker (SFM) is a video capture and editing application that works from within the Source engine.[18] Developed by Valve, the tool was used to create movies for Team Fortress 2, the Left 4 Dead series, Portal 2, and more. Today, it is open for public use and download via the Steam client.

Modularity and notable upgrades[edit]

Screenshot of Half-Life 2: Episode One. The HDR and Phong shading effects are evident.

Source was created to evolve incrementally as technology moves onwards, as opposed to the backwards compatibility-breaking "version jumps" of its competitors. With Steam, Valve can distribute automatic updates with new versions of the engine among its many users.

In practice, 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.[citation needed] Both cases required markedly less work to update its version than competing engines. This was demonstrated in 2010, when Valve updated all of their core Source games to the latest engine build.[19]

Since Source's release in 2004, the following major architectural changes have been made:

High dynamic range rendering (2005, Day of Defeat: Source)
Simulation of a camera aperture and the ability to fake the effects of brightness values beyond computer monitors' actual range. Required all of the game's shaders to be rewritten.[20]
"Soft" particles (2007, The Orange Box)
An artist-driven, threaded particle system replaced previously hard-coded effects.[5]
Hardware facial animation (2007, The Orange Box)
Hardware accelerated on modern video cards for "feature film and broadcast television" quality.[6]
Multiprocessor support (2007, The Orange Box)
A large code refactoring allowed the Source engine to take advantage of multiple CPU cores on the PC, Xbox 360 and PlayStation 3.[21] On the PC, support was experimental and unstable[22] until the release of Left 4 Dead.[23] Multiprocessor support was later backported to Team Fortress 2 and Day of Defeat: Source.[24]
Xbox 360 support (2007, The Orange Box)
Valve created the Xbox 360 release of The Orange Box in-house, and support for the console, unlike support for the PlayStation 3, is fully integrated into the main engine codeline. It includes asset converters, cross-platform play and Xbox Live integration.[25] Program code can be ported from PC to Xbox 360 simply by recompiling it.[26]
Nuclear Dawn is a Source engine game from InterWave Studios that includes Mac support.
PlayStation 3 support (2007, The Orange Box)
Source first appeared on the PlayStation 3 in 2007, but with an engine port that was created externally and which was plagued with issues. Valve took the problem in-house for Portal 2, and in combination with Steamworks integration created what they called "the best console version of the game".[27]
Mac OS X support (2010, multiple games)
In April 2010 Valve released all of their major Source games on Mac OS X. All future Valve games will be released simultaneously for Windows and Mac.[28][29] Games will only use Direct3D on Windows and Xbox 360 while using OpenGL on the other platforms.
Linux support (2012, multiple games)
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.

Future technology[edit]

New authoring tools[edit]

As of May 2011, one of Valve's largest projects is the development of new content authoring tools for Source.[1] These will replace the current outdated tools, allowing content to be created faster and more efficiently. Studio head Gabe Newell has described the creation of content with the engine's current toolset as "very painful" and "sluggish".[30]

An in-process tools framework was created in 2007, and is currently used by the engine's particle editor and by Source Filmmaker.

In 2013, an update was released for Source SDK that allowed users to build OS X and Linux versions of their mods. Additionally, support was added for Valve's new Steampipe content distribution system as well as the Oculus Rift.[31]

Source 2 engine[edit]

In August 2012, the Valve fan site ValveTime speculated that Valve might be in development of a "Source 2" engine, based on coding from the Source Filmmaker that directed technology from the upcoming version.[32] Later that year, in November, Gabe Newell confirmed that a Source 2 engine is under development, and that Valve is "waiting for a game to roll it out with".[33][34]

On 27th January 2014, a Neogaf user known as 'crazy buttocks on a train' posted a leaked PowerPoint presentation showing multiple screenshots of the Source 2 engine. The screenshots show an updated version of the Plantation map from Left 4 Dead 2 with enhanced lighting and shadows, improved foliage, and higher quality models.[35]

Image-based rendering[edit]

Image-based rendering technology had been in development for Half-Life 2[36] 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.[37]

Origins[edit]

Screenshot from Zeno Clash, a third-party Source game.

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

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[40] and, in part, explaining the reasons behind its unusually modular nature. Valve's development of Source since has been a mixture of licensed middleware (Havok Physics, albeit heavily modified, and MP3 playback) and in-house-developed code.

Criticism[edit]

Toolset[edit]

The Source SDK tools are criticised for being outdated and difficult to use.[41][42][better source needed] A large number of the tools, including those for texture and model compilation, require varying levels of text-editor scripting from the user before they are executed at the command line; with sometimes lengthy console commands.[43] This obtuseness was cited by the University of London when they moved their exploration of professional architectural visualisation in computer games to Bethesda Softworks' Gamebryo-based Oblivion engine after a brief period with Source.[44] Third-party tools provide GUIs,[45] but are not supported by Valve.

The interface of Valve's Hammer Editor, the SDK's world-creation tool, has not changed significantly since its initial release for GoldSrc and the original Half-Life in 1998.

Valve Developer Community[edit]

On June 28, 2005, Valve opened the Valve Developer Community wiki. 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 (added by the bot's author, Mike Booth), Valve's NPC AI, advice for mod teams on setting up source control, and other articles.

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's development.[46]

See also[edit]

References[edit]

  1. ^ a b Crossley, Rob (May 12, 2011). "Valve on Source and studio culture". Develop Magazine. Retrieved August 14, 2011. "We have as many people working on our tools as we have working on a single project. So, about twenty to thirty core people." 
  2. ^ "Source Multiplayer Networking". Valve Developer Community. 2005-06-30. Retrieved 2008-07-20. 
  3. ^ "VPhysics". Valve Developer Community. Retrieved 2011-08-15. 
  4. ^ "Multi-Core in the Source Engine Core". Bit-tech. 2006-11-02. Retrieved 2006-11-02. 
  5. ^ a b "Source - Rendering System". Source Engine Brochure. Valve Corporation. Retrieved August 15, 2011. 
  6. ^ a b "Face-to-Face with TF2's Heavy". Steam news. 2007-05-14. Retrieved 2010-04-25. 
  7. ^ "$sequence". Valve Developer Community. 2007-09-08. Retrieved 2008-07-20. 
  8. ^ "$ikchain". Valve Developer Community. 2007-09-08. Retrieved 2008-07-20. 
  9. ^ Vlachos, Alex (July 28, 2010). "Water flow in Portal 2". Valve Corporation. 
  10. ^ "Valve's Developers community page for Bump Mapping". Valve Corporation. May 14, 2013. 
  11. ^ Vlachos, Alex (March 9, 2010). "Rendering Wounds in Left 4 Dead 2". Valve Corporation. 
  12. ^ "$distancealpha". Retrieved 2009-07-05. 
  13. ^ "Improved Alpha-Tested Magnification for Vector Textures and Special Effects". SIGGRAPH 2007. 2007-08-05. Retrieved 2008-05-20. 
  14. ^ "L4D2 VScripts". Valve Developer Community. Retrieved February 12, 2010. 
  15. ^ "Mod wizard complete". Valve Developer Community. 2008-02-24. Retrieved 2008-07-20. 
  16. ^ "VMPI". Valve Developer Community. Retrieved December 5, 2008. 
  17. ^ "Valve's New Game Announced, Detailed: Dota 2". GameInformer. October 13, 2010. Retrieved December 14, 2010. 
  18. ^ "Source Filmmaker". Source Filmmaker. Retrieved 31 March 2013. 
  19. ^ "Source 2009". Valve Developer Community. Retrieved 17 September 2010. 
  20. ^ Valve Corporation. 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." 
  21. ^ "Interview: Gabe Newell". PC Zone. 2006-09-11. Retrieved 2006-09-20. 
  22. ^ "Dual Core Performance". 2008-10-11. Retrieved 2008-12-23. 
  23. ^ Lombardi, Doug (2008-05-13). "PCGH interview about Left 4 Dead, part 2". Interviewer: Frank Stöwer. Retrieved 2008-12-23. 
  24. ^ Nick, Breckon (2008-03-18). "Team Fortress 2 Update Adds Multicore Rendering". Retrieved 2009-08-19. 
  25. ^ "Source - Console Support". Valve. Retrieved August 8, 2009. 
  26. ^ "Joystiq interviews Doug Lombardi about Xbox 360 Source". Joystiq. October 17, 2006. Retrieved August 8, 2009. 
  27. ^ "Portal 2: Pretty Much Every PS3 Question Answered (And That Cake Thing, Too)". Sony Computer Entertainment America. April 14, 2011. 
  28. ^ "Valve to Deliver Steam & Source on the Mac". Valve. 2010-03-08. Retrieved 2010-03-08. 
  29. ^ "Left 4 Dead 2, Team Fortress 2, Portal and Steam Coming to Mac in April". Kotaku. 2010-03-08. Retrieved 2010-03-08. 
  30. ^ "Steamcast #47". Steamcast. February 9, 2011. Retrieved August 14, 2011. "Oh yeah, we're spending a tremendous amount of time on tools right now. So, our current tools are... very painful, so we probably are spending more time on tools development now than anything else and when we’re ready to ship those I think everybody's life will get a lot better. Just way too hard to develop content right now, both for ourselves and for third-parties so we’re going to make enormously easier and simplify that process a lot." 
  31. ^ "Source SDK 2013 Release". Steam News. Valve Software. Retrieved 4 July 2013. 
  32. ^ -smash- (6 August, 2012). "EXCLUSIVE: Next-Gen Source 2 Engine Is In Development". 
  33. ^ "Gabe Newell confirms Source Engine 2 has been in development for a while, Valve are "waiting for a game to roll it out with"". PCGamesN. 11 December, 2012. Retrieved 15 February, 2013. 
  34. ^ "Possible proof of Source 2 and Left 4 Dead 3.". "Game Trailers". August 06, 2013. 
  35. ^ Omnomnick (27 January, 2014). "Source 2 Left 4 Dead 2 Prototype Screenshots Leaked". Retrieved 27 January, 2014. 
  36. ^ "Interview with Gabe Newell". DriverHeaven.net. Retrieved 2009-11-21. 
  37. ^ "Valve Week". 1UP.com. Retrieved 2006-07-14. 
  38. ^ "Welcome, Q3 source, Graphics". John Carmack's Blog. 2004-12-31. 
  39. ^ Erik Johnson (2005-09-01). "Talk:Erik Johnson". Valve Developer Community. Retrieved 2007-08-15. 
  40. ^ Hodgson, David (2004). Half-Life 2: Raising the Bar. Prima Games. ISBN 0-7615-4364-3. 
  41. ^ Neale Roberts (November 15, 2006). "Stuck Valve". Dirigible Development Diary. Archived from the original on 2007-12-27. Retrieved December 20, 2007. 
  42. ^ Neil Jedrzejewski (July 23, 2009). "Re: whats happening with this engine". hlcoders (official Valve mailing list). Retrieved July 29, 2009. 
  43. ^ "Vtex CLI use". Valve Developer Community. August 28, 2007. Retrieved July 21, 2008. 
  44. ^ "Half Life 0 Oblivion 1 - Half Life Update". Digital Urban. September 28, 2006. Retrieved December 20, 2007. 
  45. ^ "Category:Third Party Tools". Valve Developer Community. Retrieved October 20, 2007. 
  46. ^ "Valve Publications". Retrieved 25 September 2013. 

External links[edit]