Difference between revisions of "Source Engine"

From Team Fortress Wiki
Jump to: navigation, search
m
(Added Valve Official description)
Line 14: Line 14:
  
 
[[Category:Valve]]
 
[[Category:Valve]]
 +
 +
{{lang|Source}}
 +
{{GameHierarchy}} 
 +
 +
'''Source''' is a 3D game engine created by [[Valve]], it is the successor to [[GoldSource]].  Source has been used by [[Valve]], third-party Companies, and much like [[GoldSource]], has been used in countless community mods by people around the globe.
 +
 +
[[File:20180823234321 1.jpg|thumbnail|Screenshot in-game of Counter-Strike: Source, using the Source Engine.]]
 +
[[File:Csgo_de_inferno_sourcescreenshot.jpg|thumbnail|Screenshot taken in-game Counter-Strike: Global Offensive which currently uses a newer branch of the Source Engine.]]
 +
 +
== [[:Category:Programming|Renderer]] ==
 +
* Version 2.0 (and below) [[Pixel shader|Shaders]]
 +
* [[Bump mapping]] and [[Normal mapping]] on models and the world
 +
* Author [[Pixel shader|Shaders]] with [[HLSL]]
 +
* Cube and environment mapping
 +
** Cubemapping also supports Anisotropy {{CSGO add}}
 +
* [[$phong|Phong]] shading for models
 +
** Phong is also supported on world brushes {{CSGO add}}
 +
* Dynamic lights, vertex lighting and [[Vrad|light maps]], many light types including flickering, pulsing etc.
 +
* [[HDR]] and LDR lighting
 +
* Water with refraction, real-time world reflections and fresnel effects
 +
** Water also supports [[Water_Shader#Flowmaps|flow maps]] {{L4D2 add}}
 +
* Advanced particle system that can emit sprites or models
 +
* Render-to-texture shadows allow for a large number of characters per scene
 +
* Occluder entities for visibility blocking
 +
* Indoor/Outdoor environments
 +
** Deformable terrain
 +
** [[3D Skybox|3D Skyboxes]] extend the horizon and add parallax on distant objects
 +
** Dynamically rendered organics (grass, trees, etc.)
 +
* Subdivision surfaces, diffuse & specular bump maps
 +
* Real-time radiosity lighting
 +
* Real-time [http://msdn.microsoft.com/en-us/library/windows/desktop/ee416307(v=vs.85).aspx cascaded shadowmapping] that comes from the Skybox {{CSGO add}}
 +
* Effects include but are not limited to: particles, beams, volumetric smoke, sparks, blood, environmental effects like fog and rain
 +
* Scalability
 +
** [[DirectX_Versions|DX8-DX9]] hardware supported (DX6-DX9 with modifications and fixed-function shaders)
 +
 +
== [[:Category:Material_System|Materials System]] ==
 +
 +
* Instead of traditional textures, '''Source''' defines sets of materials that specify what the object is made from and the texture used for that object. A material specifies how an object will fracture when broken, what it will sound like when broken or dragged across another surface, and what that object's mass and buoyancy are. This system is much more flexible than other texture only based systems
 +
* Materials can interact with objects or [[NPC]]s such as mud or ice for vehicles to slide/lose traction on
 +
 +
== [[Source Multiplayer Networking|Multiplayer Network Code]] ==
 +
* Time and gamer tested by millions of gamers around the world
 +
* Support for both [[Wikipedia:LAN|LAN]] based multiplayer and Internet based multiplayer games
 +
* Prediction analysis for interpolating collision/hit detection
 +
* Optimizations for high-latency, high-packet loss 56k connections
 +
 +
== [[:Category:Modeling|Advanced Characters]] ==
 +
* Detailed and believable characters
 +
* Realistic eyes
 +
** Focus on player/object, not simply parallel views
 +
** Proper eye bulge for realistic eye reflections
 +
* Simulated musculature provides outstanding emotions, speech and body language
 +
* [[:category:Choreography|Language independent speech]], characters can naturally speak in many languages
 +
* Skeletal/bone system for animation
 +
* Layered animation system can synthesize complex animations out of several pieces
 +
 +
== [[:Category:Physics|Physics]] ==
 +
* More responsive world with realistic interactions
 +
* Sounds & graphics follow from physics
 +
* AI characters can interact with physically simulated objects
 +
* Ropes/cables, machines, constraint systems, [[Wikipedia:Ragdoll physics|ragdoll physics]]
 +
* Can be controlled by level design
 +
* Kinematic animated bone followers
 +
* Custom procedural physics controllers
 +
* Vehicles
 +
** Wheels slip and skid
 +
** Realistic suspensions with springs on each wheel
 +
** Realistic leaning during acceleration/deceleration and turning
 +
** Individually tunable parameters such as horsepower, gearing, max speed, shift speed, tire material, tire friction, spring tension/dampening etc.
 +
** Multiple players in a vehicle in multiplayer
 +
** Hovercraft support for cheaper simulation
 +
 +
== [[:Category:AI|Advanced AI]] ==
 +
* [[Inputs_and_Outputs|I/O system]] allowing level designers to control [[:Category:AI|AI]]
 +
* Sophisticated navigation: characters that run, fly, jump, crouch, climb stairs and ladders, and burrow underground
 +
* AI senses things using sight, sound, and smell
 +
* [[ai_relationship|AI relationships]] determine friend/foe status of other entities
 +
* Battle AI allows squads of AI characters to operate together, know when to advance, retreat, lay cover fire, etc.
 +
 +
== [[:Category:Sound_System|Sound System]] ==
 +
* 7.1, 5.1 surround sound, 4 speaker surround
 +
* High-quality 3D spatialization
 +
* Custom software DSP
 +
* Automatic DSP based on environmental geometry
 +
* ADPCM decompression
 +
* 16-bit 44KHz, stereo wave data with all features
 +
* MP3 decompression (requires [http://www.radgametools.com/miles.htm Miles] license)
 +
* Support for audio streaming on any wave
 +
* Real-time wave file stitching
 +
* Pre-authored Doppler effect encoded waves
 +
* Pre-authored distance variant encoded waves
 +
* [[Commentary System|Commentary system]]
 +
 +
== [[:Category:VGUI|UI]] ==
 +
* '''Server browser''' - Displays all active game servers and allows a player to choose which one to participate on. Players can filter and sort server lists in order to speed up the display and selection of a server.
 +
* '''[[Vgui|VGUI]]''' - Valve's custom GUI interface mimics most of the Windows controls but is rendered using the '''Source''' engine for both in game and out of game uniform '''UI''' display. Some features:
 +
** Dynamic in-game [[HUD]] display
 +
** Many [[Wikipedia:Widget (computing)|widget]]s/controls (i.e. buttons, treeview, html control, ...)
 +
** Themes/custom visualization allowed
 +
** Platform independent
 +
** Localized texts (Unicode compliant)
 +
 +
== [[:Category:Programming|Programming]] ==
 +
* All code written in C/C++ using Visual Studio .NET 2003. Easily and quickly derive new entities from existing base classes
 +
* Internal context sensitive performance monitoring system
 +
* Graphics performance measurement tools built into the engine
 +
* Modular code design (via DLLs) allows swapping out of core components for easy upgrading or code replacement
 +
* [[Wikipedia:DirectX|DX9]] [[shader]]s all written in [[HLSL]]
 +
* [[VScript]] scripting system allows using external coding languages such as Squirrel and Lua in maps to create more complex systems {{L4D2 add}}
 +
 +
== [[:Category:Tools|Tools]] ==
 +
* [[Face Poser]]
 +
** Facial expression tool used to craft speech and emotions
 +
* [[Valve Hammer Editor]]
 +
** WYSIWYG World editor
 +
** Create world brushes
 +
** Terrain editor
 +
** Place detailed world models and AI NPCs
 +
** Set navigation points/paths for NPCs
 +
** Place triggers, clip brushes, logic etc.
 +
** Allows level designer to hook up I/O between entities to control AI within the game
 +
* [[Half-Life Model Viewer]]
 +
** Full model previewer
 +
** Rotate models in any direction
 +
** Setup hit boxes
 +
** View physics hull
 +
** View normals
 +
** Wireframe, shaded or textured view modes
 +
* Studiomdl
 +
** Model compiler
 +
* [[Vbsp]], [[Vrad]], [[Vvis]], [[Vmpi]]
 +
** Map compilation tools (bsp, lighting and visibility)
 +
** VMPI - distributed compilation tool allowing level compiles to be spread across many PCs greatly reducing compile times
 +
* Exporters
 +
** [[XSI]], Max and Maya .smd exporters for exporting 3D models
 +
 +
== Games On Source ==
 +
=== Valve ===
 +
Games made by Valve.
 +
* {{CSS}}[[Counter-Strike: Source]]
 +
* {{HL2}}[[Half-Life 2]]
 +
* {{HL2}}[[Half-Life 2: Deathmatch]]
 +
* {{Ep1}}[[Half-Life 2: Episode 1]]
 +
* {{Ep2}}[[Half-Life 2: Episode 2]]
 +
* {{HL2}}[[Half-Life 2: Lost Coast]]
 +
* {{HL1}}[[Half-Life: Source]]
 +
* {{HLDMS}}[[Half-Life Deathmatch: Source]]
 +
* {{Portal}}[[Portal]]
 +
* {{Tf2}}[[Team Fortress 2]]
 +
* {{DODS}}[[Day of Defeat: Source]]
 +
* {{L4d}}[[Left 4 Dead]]
 +
* {{L4d2}}[[Left 4 Dead 2]]
 +
* {{As}}[[Alien Swarm]]
 +
* {{Portal2}}[[Portal 2]]
 +
* {{Csgo}}[[Counter-Strike: Global Offensive]]
 +
=== Third-Party ===
 +
Games and mods made by third-party companies and mod teams.
 +
* {{Insurgency}}[[Insurgency]]
 +
* {{Bms}}[[Black Mesa: Source]]
 +
* {{INFRA}}[[INFRA]]
 +
* {{Doi}}[[Day of Infamy]]
 +
* {{Tsp}}[[The Stanley Parable]]
 +
* {{HL2}}[[The Ship]]
 +
* [[Blade Symphony]]
 +
* {{Con}}[[Contagion]]
 +
* {{Ddd}}[[Dino D-Day]]
 +
* {{Zc}}[[Zeno Clash]]
 +
* {{Dm}}[[Dark Messiah]]
 +
* [[The Beginner's Guide]]
 +
* {{Nd}}[[Nuclear Dawn]]
 +
* [[Double Action]]
 +
* [[Consortium]]
 +
* [[Revelations 2012]]
 +
* [[Divinia Chronicles]]
 +
* {{Sin}}[[SiN Episodes: Emergence]]
 +
* [[Vampire: The Masquerade]]
 +
* [[Lambda Wars]]
 +
* [[Bloody Good Time]]
 +
* [[Tactical Intervention]]
 +
* {{Dear Esther}}[[Dear Esther]]
 +
* [[Vindictus]]
 +
* [[Zombie Panic: Source]]
 +
* [[No More Room In Hell]]
 +
* {{HL2}}[[E.Y.E: Divine Cybermancy]]
 +
* [[Apex Legends]]
 +
* [[Infestus]]
 +
* [[G-String]]
 +
 +
* [[:Category:Source mods| Source mods]]
 +
 +
== See also ==
 +
* [[wikipedia:Source engine]]
 +
 +
 +
[[Category:Technical]]
 +
[[Category:Glossary]]

Revision as of 18:28, 8 June 2021

The Source Engine is a 3D video game engine developed by Valve for creating and developing video games. Several games and mods have been made using this engine, such as Team Fortress 2.

See also

Source Template:GameHierarchy

Source is a 3D game engine created by Valve, it is the successor to GoldSource. Source has been used by Valve, third-party Companies, and much like GoldSource, has been used in countless community mods by people around the globe.

File:20180823234321 1.jpg
Screenshot in-game of Counter-Strike: Source, using the Source Engine.
File:Csgo de inferno sourcescreenshot.jpg
Screenshot taken in-game Counter-Strike: Global Offensive which currently uses a newer branch of the Source Engine.

Renderer

  • Version 2.0 (and below) Shaders
  • Bump mapping and Normal mapping on models and the world
  • Author Shaders with HLSL
  • Cube and environment mapping
  • Phong shading for models
  • Dynamic lights, vertex lighting and light maps, many light types including flickering, pulsing etc.
  • HDR and LDR lighting
  • Water with refraction, real-time world reflections and fresnel effects
  • Advanced particle system that can emit sprites or models
  • Render-to-texture shadows allow for a large number of characters per scene
  • Occluder entities for visibility blocking
  • Indoor/Outdoor environments
    • Deformable terrain
    • 3D Skyboxes extend the horizon and add parallax on distant objects
    • Dynamically rendered organics (grass, trees, etc.)
  • Subdivision surfaces, diffuse & specular bump maps
  • Real-time radiosity lighting
  • Real-time cascaded shadowmapping that comes from the Skybox Template:CSGO add
  • Effects include but are not limited to: particles, beams, volumetric smoke, sparks, blood, environmental effects like fog and rain
  • Scalability
    • DX8-DX9 hardware supported (DX6-DX9 with modifications and fixed-function shaders)

Materials System

  • Instead of traditional textures, Source defines sets of materials that specify what the object is made from and the texture used for that object. A material specifies how an object will fracture when broken, what it will sound like when broken or dragged across another surface, and what that object's mass and buoyancy are. This system is much more flexible than other texture only based systems
  • Materials can interact with objects or NPCs such as mud or ice for vehicles to slide/lose traction on

Multiplayer Network Code

  • Time and gamer tested by millions of gamers around the world
  • Support for both LAN based multiplayer and Internet based multiplayer games
  • Prediction analysis for interpolating collision/hit detection
  • Optimizations for high-latency, high-packet loss 56k connections

Advanced Characters

  • Detailed and believable characters
  • Realistic eyes
    • Focus on player/object, not simply parallel views
    • Proper eye bulge for realistic eye reflections
  • Simulated musculature provides outstanding emotions, speech and body language
  • Language independent speech, characters can naturally speak in many languages
  • Skeletal/bone system for animation
  • Layered animation system can synthesize complex animations out of several pieces

Physics

  • More responsive world with realistic interactions
  • Sounds & graphics follow from physics
  • AI characters can interact with physically simulated objects
  • Ropes/cables, machines, constraint systems, ragdoll physics
  • Can be controlled by level design
  • Kinematic animated bone followers
  • Custom procedural physics controllers
  • Vehicles
    • Wheels slip and skid
    • Realistic suspensions with springs on each wheel
    • Realistic leaning during acceleration/deceleration and turning
    • Individually tunable parameters such as horsepower, gearing, max speed, shift speed, tire material, tire friction, spring tension/dampening etc.
    • Multiple players in a vehicle in multiplayer
    • Hovercraft support for cheaper simulation

Advanced AI

  • I/O system allowing level designers to control AI
  • Sophisticated navigation: characters that run, fly, jump, crouch, climb stairs and ladders, and burrow underground
  • AI senses things using sight, sound, and smell
  • AI relationships determine friend/foe status of other entities
  • Battle AI allows squads of AI characters to operate together, know when to advance, retreat, lay cover fire, etc.

Sound System

  • 7.1, 5.1 surround sound, 4 speaker surround
  • High-quality 3D spatialization
  • Custom software DSP
  • Automatic DSP based on environmental geometry
  • ADPCM decompression
  • 16-bit 44KHz, stereo wave data with all features
  • MP3 decompression (requires Miles license)
  • Support for audio streaming on any wave
  • Real-time wave file stitching
  • Pre-authored Doppler effect encoded waves
  • Pre-authored distance variant encoded waves
  • Commentary system

UI

  • Server browser - Displays all active game servers and allows a player to choose which one to participate on. Players can filter and sort server lists in order to speed up the display and selection of a server.
  • VGUI - Valve's custom GUI interface mimics most of the Windows controls but is rendered using the Source engine for both in game and out of game uniform UI display. Some features:
    • Dynamic in-game HUD display
    • Many widgets/controls (i.e. buttons, treeview, html control, ...)
    • Themes/custom visualization allowed
    • Platform independent
    • Localized texts (Unicode compliant)

Programming

  • All code written in C/C++ using Visual Studio .NET 2003. Easily and quickly derive new entities from existing base classes
  • Internal context sensitive performance monitoring system
  • Graphics performance measurement tools built into the engine
  • Modular code design (via DLLs) allows swapping out of core components for easy upgrading or code replacement
  • DX9 shaders all written in HLSL
  • VScript scripting system allows using external coding languages such as Squirrel and Lua in maps to create more complex systems Template:L4D2 add

Tools

  • Face Poser
    • Facial expression tool used to craft speech and emotions
  • Valve Hammer Editor
    • WYSIWYG World editor
    • Create world brushes
    • Terrain editor
    • Place detailed world models and AI NPCs
    • Set navigation points/paths for NPCs
    • Place triggers, clip brushes, logic etc.
    • Allows level designer to hook up I/O between entities to control AI within the game
  • Half-Life Model Viewer
    • Full model previewer
    • Rotate models in any direction
    • Setup hit boxes
    • View physics hull
    • View normals
    • Wireframe, shaded or textured view modes
  • Studiomdl
    • Model compiler
  • Vbsp, Vrad, Vvis, Vmpi
    • Map compilation tools (bsp, lighting and visibility)
    • VMPI - distributed compilation tool allowing level compiles to be spread across many PCs greatly reducing compile times
  • Exporters
    • XSI, Max and Maya .smd exporters for exporting 3D models

Games On Source

Valve

Games made by Valve.

[[{{{link}}}|      ]]
[[Image:{{{image}}}|150px|{{{link}}}]]

[[{{{link}}}|{{{link}}}]]

Portal

Third-Party

Games and mods made by third-party companies and mod teams.

See also