Newxog volume: Difference between revisions
MyGamepedia (talk | contribs) |
MyGamepedia (talk | contribs) |
||
Line 22: | Line 22: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Enabled|intn=Enabled|Choices| | {{KV|Enabled|intn=Enabled|Choices| | ||
Determines is this entity enabled or disabled on spawn. | Determines is this entity enabled or disabled on spawn. | ||
*0: Enabled | *0: Enabled | ||
Line 28: | Line 28: | ||
}} | }} | ||
{{KV|Shape Type|intn=xogtype|Choices| | {{KV|Shape Type|intn=xogtype|Choices| | ||
Shape type to use. You can use [[Bounding_box|BBOX]] or [https://en.wikipedia.org/wiki/Ellipsoid Ellipsoid]. | |||
*0:0: LocalVolume BBOX | *0:0: LocalVolume BBOX | ||
*1:1: LocalVolume Ellipsoid | *1:1: LocalVolume Ellipsoid | ||
Line 40: | Line 40: | ||
}} | }} | ||
{{KV|colorMode|intn=colormode|Choices| | {{KV|colorMode|intn=colormode|Choices| | ||
This is [[FGD]] leftover from {{ent|newxog_global}}. This feature doesn't work for this entity.}} | |||
{{KV|Texture name Grad Texture|intn=texname|string| | |||
This is [[FGD]] leftover from {{ent|newxog_global}}. This feature doesn't work for this entity. | This is [[FGD]] leftover from {{ent|newxog_global}}. This feature doesn't work for this entity. | ||
}} | }} | ||
{{KV|colorTop|intn=colortop|color255| | {{KV|colorTop|intn=colortop|color255| | ||
Xog top color. This is the main color of xog that uses if <code>Enable Height Blend</code> | Xog top color. This is the main color of xog that uses if <code>Enable Height Blend</code> property is disabled. | ||
}} | }} | ||
{{expand|title=Examples| | {{expand|title=Examples| | ||
Line 90: | Line 86: | ||
</gallery> | </gallery> | ||
}} | }} | ||
}} | |hidetested=1}} | ||
{{KV|distEnd|intn=distend|float|distEnd | {{KV|distEnd|intn=distend|float|distEnd | ||
Xog end draw distance. | Xog end draw distance. | ||
Line 110: | Line 106: | ||
</gallery> | </gallery> | ||
}} | }} | ||
}} | |hidetested=1}} | ||
{{note|The difference in values of distStart and distEnd should be not too big, otherwise the fog will be unsmooth.}} | {{note|The difference in values of distStart and distEnd should be not too big, otherwise the fog will be unsmooth.}} | ||
{{KV|distDensity|intn=distdensity|float| | {{KV|distDensity|intn=distdensity|float| | ||
Density of xog entity, only values from 0 to 1 works. | Density of xog entity, only values from 0 to 1 works. | ||
}} | }} | ||
Line 122: | Line 118: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|opacityOffsetTop|intn=opacityoffsettop|float| | {{KV|opacityOffsetTop|intn=opacityoffsettop|float| | ||
Offsets top color of xog. | Offsets top color of xog. | ||
}} | }} | ||
Line 133: | Line 129: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|opacityOffsetBottom|intn=opacityoffsetbottom|float| | {{KV|opacityOffsetBottom|intn=opacityoffsetbottom|float| | ||
Offsets bottom color of xog. | Offsets bottom color of xog. | ||
}} | }} | ||
Line 144: | Line 140: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|htZStart|intn=htzstart|float| | {{KV|htZStart|intn=htzstart|float| | ||
Height that xog starts rendering at. | Height that xog starts rendering at. | ||
}} | }} | ||
Line 155: | Line 151: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|htZEnd|intn=htzend|float| | {{KV|htZEnd|intn=htzend|float| | ||
Height that xog stops rendering at. | Height that xog stops rendering at. | ||
}} | }} | ||
Line 166: | Line 162: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|htZColStart|intn=htzcolstart|float| | {{KV|htZColStart|intn=htzcolstart|float| | ||
Height that xog color starts rendering at. Results depend on <code>htZColEnd</code> value. | Height that xog color starts rendering at. Results depend on <code>htZColEnd</code> value. | ||
}} | }} | ||
Line 177: | Line 173: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|htZColEnd|intn=htzcolend|float| | {{KV|htZColEnd|intn=htzcolend|float| | ||
Height that xog color stops rendering at. Results depend on <code>htZColStart</code> value. | Height that xog color stops rendering at. Results depend on <code>htZColStart</code> value. | ||
}} | }} | ||
Line 189: | Line 185: | ||
}} | }} | ||
{{KV|noise1ScrollSpeed|intn=noise1scrollspeed|vector| | {{KV|noise1ScrollSpeed|intn=noise1scrollspeed|vector| | ||
Layer one, speed at which noise moves | Layer one, speed at which noise moves through xog volume (X Y Z). | ||
}} | }} | ||
{{expand|title=Examples| | {{expand|title=Examples| | ||
Line 200: | Line 196: | ||
}} | }} | ||
{{KV|noise1Tiling|intn=noise1tiling|vector| | {{KV|noise1Tiling|intn=noise1tiling|vector| | ||
Layer one, tiling speed at which noise moves | Layer one, tiling speed at which noise moves through xog volume (X Y Z). | ||
}} | }} | ||
{{expand|title=Examples| | {{expand|title=Examples| | ||
Line 211: | Line 207: | ||
}} | }} | ||
{{KV|noise2ScrollSpeed|intn=noise2scrollspeed|vector| | {{KV|noise2ScrollSpeed|intn=noise2scrollspeed|vector| | ||
Layer two, speed at which noise moves | Layer two, speed at which noise moves through xog volume (X Y Z). | ||
}} | }} | ||
{{expand|title=Examples| | {{expand|title=Examples| | ||
Line 254: | Line 250: | ||
</gallery> | </gallery> | ||
}} | }} | ||
{{KV|Enable Height Blend|intn=enablevol_height|choices| | {{KV|Enable Height Blend|intn=enablevol_height|choices| | ||
Determines bottom color and blending is disabled or enabled. | Determines bottom color and blending is disabled or enabled. | ||
*0: Disabled | *0: Disabled |
Revision as of 06:26, 26 October 2024


newxog_volume
is a point entity available in Black Mesa. This is volumetric xog (Xen Fog) (a. k. a. screenspace fog) brush entity that creates a fog transition, making spaces appear deeper than they are.


tools/tools_xogvolume
texture for your xog volumes to quickly distinguish them from triggers while level creation.


|

Represented by class
CNewXogVolume
.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Enabled (Enabled) <choices>
- Determines is this entity enabled or disabled on spawn.
- 0: Enabled
- 1: Disabled
- 0:0: LocalVolume BBOX
- 1:1: LocalVolume Ellipsoid
|
- colorMode (colormode) <choices>
- This is FGD leftover from newxog_global. This feature doesn't work for this entity.
- Texture name Grad Texture (texname) <string>
- This is FGD leftover from newxog_global. This feature doesn't work for this entity.
- colorTop (colortop) <color255>
- Xog top color. This is the main color of xog that uses if
Enable Height Blend
property is disabled.
|

- colorBottom (colorbottom) <color255>
- Xog bottom color. Requires enabled
Enable Height Blend
to be working.
|
- distStart (diststart) <float>
- distStart
Xog start draw distance.
|

|
- distEnd (distend) <float>
- distEnd
Xog end draw distance.
|

|

- distDensity (distdensity) <float>
- Density of xog entity, only values from 0 to 1 works.
|
- opacityOffsetTop (opacityoffsettop) <float>
- Offsets top color of xog.
|
- opacityOffsetBottom (opacityoffsetbottom) <float>
- Offsets bottom color of xog.
|
- htZStart (htzstart) <float>
- Height that xog starts rendering at.
|
- htZEnd (htzend) <float>
- Height that xog stops rendering at.
|
- htZColStart (htzcolstart) <float>
- Height that xog color starts rendering at. Results depend on
htZColEnd
value.
|
- htZColEnd (htzcolend) <float>
- Height that xog color stops rendering at. Results depend on
htZColStart
value.
|
- noise1ScrollSpeed (noise1scrollspeed) <vector>
- Layer one, speed at which noise moves through xog volume (X Y Z).
|
- noise1Tiling (noise1tiling) <vector>
- Layer one, tiling speed at which noise moves through xog volume (X Y Z).
|
- noise2ScrollSpeed (noise2scrollspeed) <vector>
- Layer two, speed at which noise moves through xog volume (X Y Z).
|
- noise2Tiling (noise2tiling) <vector>
- Layer two, tiling speed at which noise moves trough xog volume (X Y Z).
|
- noiseContrast (noisecontrast) <float>
- Contrast of xog.
|
- noiseMultiplier (noisemultiplier) <float>
- Multiplier of xog.
|
- Enable Height Blend (enablevol_height) <choices>
- Determines bottom color and blending is disabled or enabled.
- 0: Disabled
- 1: Enabled
|
Flags
|
Inputs
- TurnOn <void>
- Turn xog on.
- TurnOff <void>
- Turn xog off.
|
Outputs
|
Bugs/Limitations
Xog incorrect work with $translucent
Xog all time fully rendering through everything with material shader parameter $translucent. This happen because of game can't tell the depth of scene because of the transparency.
No $translucent. Behind the wall placed xog volume and some models with small room.
With $translucent. Now player see everything, but only what in xog.
Similar issue happen if use $alphatestreference incorrectly.
This problem also applies to brushes which not have $translucent, but which parented to brushes that have this parameter. Similar will happen if brush with $translucent is part of your brush entity. Same will happen if you use overlays/decals on brushes with $translucent.
Metal speaker is overlay that use $alphatest, but xog fully visible anyway, because overlay pasted on the transparency window.
This issues does not happen if replace LightmappedGeneric to ShatteredGlass or UnlitGeneric, so, you can use one of them for glass or transparency surfaces when it's needed.
In some cases use $alphatest if it'll give similar to $translucent resualts.
Xog incorrect work with $alphatestreference and $allowalphatocoverage
$alphatestreference is a material shader parameter that specifies the threshold alpha channel value at which the surface should be transparent instead of opaque, default "0.5". $allowalphatocoverage creates translucent steps based on alpha values. Both have one and same problems with gbuffer.
For examples used this texture with this alpha channel.
Here xog placed behind wall with the texture. We can see the circle part of that have alpha channel part which is invisible due to $alphatest, with enabled xog we see that the invisible part doesn't show through itself xog.
If use very low numbers you will see resualts like in the pictures.
You can't escape this problem, only minimize effect with $alphatestreference 0.1
or if paint alpha correct channel.
Motion blur blurring viewmodel xog layer
For some reason Motion blur
blurring viewmodel xog layer, you can notice this when you just rotate camera. This issue happen even if xog behind other objects.
Xog incorrect work with -tools
If you don't use Full Screen
- xog will incorrectly applying to screen.
Xog volume doesn't work with 3D Skybox
Don't use xog volumes in your 3D skyboxes, none of them will work at all.
Xog doesn't refract by refract shader and fully draw through
Unlike deferred lighting, xog doesn't refract by refract shader, also fully draw through.
If model with refraction behind wall with refraction - this cause issues like this.
Similar issue with cloak material shader parameter.
An example with npc_human_assassin.
See also
- Xog Editor - the console-based xog editor.
- newxog_global - global xog, similar to env_fog_controller.
- newxog_settings - entity that can change xog settings.
- env_fog_controller
- fog_volume
- Fog tutorial
- Fog Basics
- Dust, Fog, & Smoke
- Color Correction
- color_correction (entity)
- BlackMesa XenEngine: Part2 – How a Frame is Rendered (page from Black Mesa developer about how a frame rendered and xog.)
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as Xengine)