OpenGL: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
'''OpenGL''' is a cross-platform 3D graphics API, which is used by the hardware renderers of {{gldsrc|1}} and {{idtech2|1}}, as well as one {{src2|1}} game ({{dota2|1}}). It is also used on {{Src|1}} engine, for systems that doesn't support [[Direct3D]] ({{mac|1}} and {{linux|1}}), and for [[GLView]]. | '''OpenGL''' is a cross-platform 3D graphics API, which is used by the hardware renderers of {{gldsrc|1}} and {{idtech2|1}}, as well as one {{src2|1}} game ({{dota2|1}}). It is also used on {{Src|1}} engine, for systems that doesn't support [[Direct3D]] ({{mac|1}} and {{linux|1}}), and for [[GLView]]. | ||
OpenGL was later superseded by [[Vulkan]], released in 2016. OpenGL | OpenGL was later superseded by [[Vulkan]], released in 2016. OpenGL was discontinued in 2017, having reached version 4.6. | ||
== {{idtech2|name}} (GLQuake) == | =={{idtech2|name}} (GLQuake)== | ||
{{todo|{{quake2|4}} has additional stuff that goldsrc uses}} | {{todo|{{quake2|4}} has additional stuff that goldsrc uses}} | ||
{{idtech2|4}} (GLQuake) uses [[OpenGL]] version 1.0. | {{idtech2|4}} (GLQuake) uses [[OpenGL]] version 1.0. | ||
Line 17: | Line 17: | ||
*'''32-bit color''' | *'''32-bit color''' | ||
== GoldSrc == | ==GoldSrc== | ||
{{gldsrc|4}} uses [[OpenGL]] version 1.0 which is same version as using the {{idtech2|4}} (GLQuake). | {{gldsrc|4}} uses [[OpenGL]] version 1.0 which is same version as using the {{idtech2|4}} (GLQuake). | ||
{{Confirm|According to PCGW, it mentions that HL uses OpenGL 2.1 (with latest version). Confirm if Mac or Linux version use any other version of OpenGL such as 2.1 or 1.x like Windows.}} | {{Confirm|According to PCGW, it mentions that HL uses OpenGL 2.1 (with latest version). Confirm if Mac or Linux version use any other version of OpenGL such as 2.1 or 1.x like Windows.}} | ||
Line 28: | Line 28: | ||
* '''[[Detail textures (GoldSrc)|Detail textures]]''' (since 2004)<!-- DoD 1.2 and CZero --> | * '''[[Detail textures (GoldSrc)|Detail textures]]''' (since 2004)<!-- DoD 1.2 and CZero --> | ||
* '''Dynamic Shadows''' ({{cmd|r_shadows}}; removed in 2003 Steam update, but re-added in 25th Anniversary update) | * '''Dynamic Shadows''' ({{cmd|r_shadows}}; removed in 2003 Steam update, but re-added in 25th Anniversary update) | ||
=====Since 2013 SteamPipe Update ===== | =====Since 2013 SteamPipe Update===== | ||
* '''FBO renderer''' - A new method of rendering the game, which allows MSAA to work with GoldSrc engine. This also allows the game to run on fullscreen in a borderless window. | * '''FBO renderer''' - A new method of rendering the game, which allows MSAA to work with GoldSrc engine. This also allows the game to run on fullscreen in a borderless window. | ||
* '''MSAA [[anti-aliasing]]''' - GoldSrc now natively performs 4x MSAA, reducing the amount of jagged edges/staircase effect on the geometry. This is automatically enabled when using the FBO renderer, unless the {{code|-nomsaa}} [[ | * '''MSAA [[anti-aliasing]]''' - GoldSrc now natively performs 4x MSAA, reducing the amount of jagged edges/staircase effect on the geometry. This is automatically enabled when using the FBO renderer, unless the {{code|-nomsaa}} [[command-line option]] is used. | ||
=== Svengine === | ===Svengine=== | ||
{{Svengine|1}} uses OpenGL 1.x with some 3.x features. | {{Svengine|1}} uses OpenGL 1.x with some 3.x features. | ||
== Source == | ==Source== | ||
In {{src|4}}, [[OpenGL]] uses [[ToGL]] to convert [[ | In {{src|4}}, [[OpenGL]] uses [[ToGL]] to convert [[DirectX Versions|DirectX]] shaders to [[OpenGL]] for {{mac|3}} and {{Linux|3}} and uses OpenGL version 2.1 which is similar to Direct3D 9.0c. Additionally, {{hammer|3}} (on Mac/Linux)<!-- in Windows, RTSS reports it as DX9 --> uses OpenGL to render the 2D and 3D viewports. | ||
== Source 2 == | ==Source 2== | ||
{{Dota2|4}} is the only Source 2 game which | {{Dota2|4}} is the only Source 2 game which supports OpenGL. It uses OpenGL version 2.1. | ||
OpenGL support for Dota 2 | OpenGL support for Dota 2 was dropped with the November 15th, 2021 update for Windows, and later Mac/Linux, with the optional OpenGL DLC for Windows completely emptied. | ||
===[[ | ===[[DirectX Versions|Dxlevel 92]]=== | ||
[[ | [[DirectX Versions|Dxlevel 92]] is Source's [[OpenGL]] equivalent to [[DirectX Versions|DirectX 9 Shader Model 3]] (Dx9.0c) | ||
====Features==== | ====Features==== | ||
Line 58: | Line 58: | ||
* Motion Blur | * Motion Blur | ||
== See also == | ==See also== | ||
* [[Direct3D]] | * [[Direct3D]] | ||
* [[Vulkan]] | * [[Vulkan]] |
Revision as of 04:53, 10 July 2024





OpenGL is a cross-platform 3D graphics API, which is used by the hardware renderers of GoldSrc and id Tech 2, as well as one Source 2 game (Dota 2). It is also used on Source engine, for systems that doesn't support Direct3D (macOS and Linux), and for GLView.
OpenGL was later superseded by Vulkan, released in 2016. OpenGL was discontinued in 2017, having reached version 4.6.
id Tech 2 (GLQuake)

id Tech 2 (GLQuake) uses OpenGL version 1.0.


Features
- Experimental Reflections
- Translucent Water
- Dynamic Shadows

- Texture Filtering
- 32-bit color
GoldSrc
GoldSrc uses OpenGL version 1.0 which is same version as using the
id Tech 2 (GLQuake).



Features
- Colored lighting - Quake simply had monotone lighting
- Translucent and transparent textures - Glass can now be used in maps
- Water waves
- Texture Filtering - like GLQuake
- Detail textures (since 2004)
- Dynamic Shadows (r_shadows; removed in 2003 Steam update, but re-added in 25th Anniversary update)
Since 2013 SteamPipe Update
- FBO renderer - A new method of rendering the game, which allows MSAA to work with GoldSrc engine. This also allows the game to run on fullscreen in a borderless window.
- MSAA anti-aliasing - GoldSrc now natively performs 4x MSAA, reducing the amount of jagged edges/staircase effect on the geometry. This is automatically enabled when using the FBO renderer, unless the -nomsaa command-line option is used.
Svengine
Svengine uses OpenGL 1.x with some 3.x features.
Source
In Source, OpenGL uses ToGL to convert DirectX shaders to OpenGL for macOS and Linux and uses OpenGL version 2.1 which is similar to Direct3D 9.0c. Additionally, Hammer (on Mac/Linux) uses OpenGL to render the 2D and 3D viewports.
Source 2
Dota 2 is the only Source 2 game which supports OpenGL. It uses OpenGL version 2.1.
OpenGL support for Dota 2 was dropped with the November 15th, 2021 update for Windows, and later Mac/Linux, with the optional OpenGL DLC for Windows completely emptied.
Dxlevel 92
Dxlevel 92 is Source's OpenGL equivalent to DirectX 9 Shader Model 3 (Dx9.0c)
Features
- Lightwarp support
- High dynamic range rendering (enabled by default)
- Refractions with the use of a bump-map
- High-quality reflective water (used frequently)
- Softer edge dynamic shadows
- Normal-mapped lighting on models
- Improved-quality specular effects
- Phong shading
- Color Correction
- Motion Blur