Отдельный стрим для интерфейса в CS:GO (After Effects)

Отдельная благодарность Germany ripieces
twitter.com/dtugend

Скачать cfg: mmhud.cfg

mirv_streams add normal main
mirv_streams add baseFx hudBlack
mirv_streams add baseFx hudWhite

mirv_streams edit main drawHud 0
mirv_streams edit hudBlack drawHud 1
mirv_streams edit hudWhite drawHud 1

mirv_streams edit hudBlack clientEffectTexturesAction noDraw
mirv_streams edit hudBlack worldTexturesAction noDraw
mirv_streams edit hudBlack skyBoxTexturesAction black
mirv_streams edit hudBlack staticPropTexturesAction noDraw
mirv_streams edit hudBlack cableAction noDraw
mirv_streams edit hudBlack playerModelsAction noDraw
mirv_streams edit hudBlack weaponModelsAction noDraw
mirv_streams edit hudBlack statTrakAction noDraw
mirv_streams edit hudBlack shellModelsAction noDraw
mirv_streams edit hudBlack otherModelsAction noDraw
mirv_streams edit hudBlack decalTexturesAction noDraw
mirv_streams edit hudBlack effectsAction noDraw
mirv_streams edit hudBlack shellParticleAction noDraw
mirv_streams edit hudBlack otherParticleAction noDraw
mirv_streams edit hudBlack stickerAction noDraw
mirv_streams edit hudBlack errorMaterialAction noDraw
mirv_streams edit hudBlack otherAction noDraw

mirv_streams edit hudWhite clientEffectTexturesAction noDraw
mirv_streams edit hudWhite worldTexturesAction noDraw
mirv_streams edit hudWhite skyBoxTexturesAction white
mirv_streams edit hudWhite staticPropTexturesAction noDraw
mirv_streams edit hudWhite cableAction noDraw
mirv_streams edit hudWhite playerModelsAction noDraw
mirv_streams edit hudWhite weaponModelsAction noDraw
mirv_streams edit hudWhite statTrakAction noDraw
mirv_streams edit hudWhite shellModelsAction noDraw
mirv_streams edit hudWhite otherModelsAction noDraw
mirv_streams edit hudWhite decalTexturesAction noDraw
mirv_streams edit hudWhite effectsAction noDraw
mirv_streams edit hudWhite shellParticleAction noDraw
mirv_streams edit hudWhite otherParticleAction noDraw
mirv_streams edit hudWhite stickerAction noDraw
mirv_streams edit hudWhite errorMaterialAction noDraw
mirv_streams edit hudWhite otherAction noDraw

Всякие математические штуки, стоящие за режимами наложения и стримами:

mmhud.txt v3

Variable names / description:

game - original colour output by game on screen (with HUD)
a - original alpha used by game for HUD)

hud - original game HUD colour

bg - "main" stream, original game background (everything drawn without HUD)

hudBlack - "hudBlack" stream
hudWhite - "hudWhite" stream

vegas - Output in Sony Vegas.

aeMain - The composition with bg stream, which you probably mainly will want to edit and add effects.
aeGame - Output in Adobe After Effects.

Forumlae:
Don't forget that we are in _clamped_ RGB space, so you need to take extra care when manipulating the formulae!

game = a * hud + (1-a) * bg

hudWhite = a * hud + (1-a) * 1
hudBlack = a * hud + (1-a) * 0

vegas = ((hudWhite - hudBlack)) * bg +(1-(hudWhite - hudBlack)) * 0 + hudBlack
= (1-a) * bg + a * hud
= game

aeMain = bg
aeGame = (hudWhite-hudBlack) * aeMain + (1-(hudWhite-hudBlack)) * 0 + hudBlack
= (1-a) * bg + a * hud
= game



Автор: ZZ Barabulyko

Сортировка: