GoldSrc:mirv_movie_separate_hud - advancedfx/advancedfx GitHub Wiki

Syntax

mirv_movie_separate_hud 0|1|2

  • Default: 0

  • 0 : no separation

  • 1 : separate HUD stream + HUD alpha stream

  • 2 : separate HUD stream only

When being separated none of the other streams should contain the HUD.

Solving hudalpha stream problems

In some cases the hudalpha stream might be empty (completely white). This is due the OpenGL window's frame buffer not having bit planes reserved for the alpha component. There are 2 different methods than can help solving this problem:

Method 1: launch options (recommended)

Make HLAE explicitly request alpha bit planes from the window system buffer::

Tick "Force 8 bit alpha channel" in the advanced settings in the launch dialogue.

Method 2: Render Target FBO

In case you have a card that support the EXT_framebuffer_object (see GoldSrc:Render Settings), using this target should solve the problem too.

Compositing

General

The hudalpha stream is used to to blend a black layer above the game footage. The hudcolor stream is drawn additive on-top of all.

Sony Vegas

  • 1st layer: hudcolor, composite mode: Add
  • 2nd layer: hudalpha, effect: invert, composite mode: Multiply
  • other layers: game footage etc. goes here

Also see Compositing in Vegas Pro.

Mathematical equation

(per pixel)

C - hudcolor
A - hudalpha
S - Source (other footage)
T - Target (composited image)

T(C,A,S) = (1-A)*S +A*0 +C

Evaluation from left to right. Keep in mind that operations in the clamped RGB space are neither distributive nor commutative.

See also

⚠️ **GitHub.com Fallback** ⚠️