newxog_global

From Valve Developer Community
Revision as of 06:06, 5 April 2024 by MyGamepedia (talk | contribs) (I'll add issues later.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
newxog_global in bm_c4a1b.
Xog global.png

newxog_global is a point available in Black Mesa Black Mesa. Xog (short for Xen Fog) is Screenspace Fog, very flexible new fog system that replaces Source's legacy fog. The new xog can be configured on the fly with instant results ingame, it can change over time with I/O, and it can vary in density and color based on height. Along with its tons of options, is that it became (sort of) the preferred way for level designers to do color corrections in the xen part of the game instead of the old color correction entity provided by Source Engine. Uses radial fog instead of deprecated planar/z fog. On top of 3 colors for blending, it support both 1D and cubemap gradient textures. The game also have console-based Xog Editor which can select and edit almost every property of any xog entity.

Icon-Important.pngImportant:This entity doesn't affects optimization, this entity for visual effects only. Combine with env_fog_controller.
Warning.pngWarning:Xog use expensive gbuffer, that means that with this entity your scene rendering at least 5 times, which makes your level very expensive, considering that XenEngine uses 32-bit architecture and DirectX 9 rendering. In large quantities, xog entities can greatly heat up your computer and also cause large FPS drops (depending on difficulty of your map and how your area open). Use wisely.

Black Mesa Represented by class CNewXogGlobal.

Black Mesa Level Creation

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Enabled (Enabled) <choices>
Enable/Disable this Entity.

Determines is this entity enabled or disabled on spawn.

  • 0: Enabled
  • 1: Disabled
Xog Type (xogtype) <choices>
Determines global xog type. Global - render xog in world space only. GlobalWithSky - render xog in world space and applies to skybox. SkyOnly - applies to 2D skybox only.
  • 0:0: Global
  • 1:1: GlobalWithSky
  • 2:2: SkyOnly
Examples


Icon-Important.pngImportant:You can have only one GlobalWithSky or Global with SkyOnly (separately as well) in your level. Otherwise, game will crash on map launch with this engine error message.


skyColor (skycolor) <color255>
Xog color in 2D skybox.
Examples


skyBlendFactor (skyblendfactor) <float>
Xog intensity in skybox. This is a float value from 0.0 to 1.0.
Examples


Color Mode (colormode) <choices>
Determines color mode. With StaticColor it will use color from colorBottom and colorTop, doesn't affects color in skybox. With 1DGradTexture, color will depends on texture from Grad Texture, doesn't affects color in skybox.
  • 0:0: StaticColor
  • 1:1: 1DGradTexture
  • 2:2: CubeGradTexture
Examples


Grad Texture (texname) <string>
Grad texture to use.

Grad texture uses .vtf file and not .vmt. Works only if Color Mode value is 1DGradTexture.

colorTop will use texture itself to render, colorBottom will use main color of chosen texture to render.

htZColStart will set texture position. htZColEnd will scale texture.

htZStart will set main color start position, htZEnd will scale main color.

With Global and GlobalWithSky xog type, it will be applied only in world space. With SkyOnly, it will be applied in skybox. If you want to have it for world space and sky together - you can use 2 entities as workaround, first xog will use Global type, second will use SkyOnly type.

Confirm:Special gradient textures should be used.
Confirm:Is it used in Black Mesa Black Mesa campaign ?
Example of how it works with Global and GlobalWithSky.


Example of how it works with SkyOnly.


colorTop (colortop) <color255>
Xog top color.
Examples


colorBottom (colorbottom) <color255>
Xog bottom color.
Note.pngNote:Top and bottom colors blending in xog center, for example with red and green colors the center of xog will be yellow.
Examples


distStart (diststart) <float>
distStart

Xog start draw distance.

Examples


distEnd (distend) <float>
distEnd

Xog end draw distance.

Examples


distDensity (distdensity) <float>
distDensity

Density of xog entity, only values from 0 to 1 works.

Examples


opacityOffsetTop (opacityoffsettop) <float>
opacityOffsetTop

Offsets top color of xog.

Examples


opacityOffsetBottom (opacityoffsetbottom) <float>
opacityOffsetBottom

Offsets bottom color of xog.

Examples


htZStart (htzstart) <float>
htZStart

Height that xog starts rendering at.

Examples


htZEnd (htzend) <float>
htZEnd

Height that xog stops rendering at.

Examples


htZColStart (htzcolstart) <float>
htZColStart

Height that xog color starts rendering at. Results depend on htZColEnd value.

Examples


htZColEnd (htzcolend) <float>
htZColEnd

Height that xog color stops rendering at. Results depend on htZColStart value.

Examples


noise1ScrollSpeed (noise1scrollspeed) <vector>
Layer one, speed at which noise moves trough xog volume (X Y Z).
Examples


noise1Tiling (noise1tiling) <vector>
Layer one, tiling speed at which noise moves trough xog volume (X Y Z).
Examples


noise2ScrollSpeed (noise2scrollspeed) <vector>
Layer two, speed at which noise moves trough xog volume (X Y Z).
Examples


noise2Tiling (noise2tiling) <vector>
Layer two, tiling speed at which noise moves trough xog volume (X Y Z).
Examples


noiseContrast (noisecontrast) <float>
Contrast of xog.
Examples


noiseMultiplier (noisemultiplier) <float>
Multiplier of xog.
Examples


RadiusX (radiusz) <float>
RadiusX
RadiusY (radiusy) <float>
RadiusY
RadiusZ (radiusz) <float>
RadiusZ
Confirm:Are RadiusX, RadiusY and RadiusZ a deprecated properties ? These seems to be non functional, there is also no information in xogscripts.cfg. The same have env_cascade_volume.
skyColorTop (skycolortop) <color255> !FGD Obsolete
Deprecated.
Xog top color in skybox. Can be found in .vmf files of some xen levels.
skyColorBottom (skycolorbottom) <color255> !FGD Obsolete
Deprecated.
Xog bottom color in skybox. Can be found in .vmf files of some xen levels.
gtZColStart (gtzcolstart) <color255> !FGD Obsolete
Deprecated.
gtZColStart. Can be found in .vmf files of some xen levels.
gtZColEnd (gtzcolend) <color255> !FGD Obsolete
Deprecated.
gtZColEnd. Can be found in .vmf files of some xen levels.

Inputs

TurnOn <void>
Turn the xog on.
TurnOff <void>
Turn the xog off.
Toggle <void>
Toggle the xog current state.


Outputs

See also