Отдельный стрим для интерфейса в 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 black
mirv_streams edit hudBlack worldTexturesAction black
mirv_streams edit hudBlack skyBoxTexturesAction black
mirv_streams edit hudBlack staticPropTexturesAction black
mirv_streams edit hudBlack cableAction black
mirv_streams edit hudBlack playerModelsAction black
mirv_streams edit hudBlack weaponModelsAction black
mirv_streams edit hudBlack statTrakAction black
mirv_streams edit hudBlack shellModelsAction black
mirv_streams edit hudBlack otherModelsAction black
mirv_streams edit hudBlack decalTexturesAction black
mirv_streams edit hudBlack effectsAction black
mirv_streams edit hudBlack shellParticleAction black
mirv_streams edit hudBlack otherParticleAction black
mirv_streams edit hudBlack stickerAction black
mirv_streams edit hudBlack errorMaterialAction black
mirv_streams edit hudBlack otherAction black

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

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

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

Сортировка: