教程】CSGO视频教程:分离游戏画面和HUD(After Effects 与 Vegas Pro)

这是最后一页

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

上一页 1 2 3 

2016/12/10 --- 作者: Barabulyko

关键词: , , , , , ,