[UE 5]Movie Render Quene & HighResolutionScreenshot 透明通道渲染
系統(tǒng)設(shè)置部分
1 打開渲染通道系統(tǒng)設(shè)置
Project Setting? - Rendering? - Postpressing - Custom Depth-Stencil Pass (Enable with Stencil) & Enable alpha channel support in post processing (experimental(Allow through tonemapper)

打開插件 -?Movie?Render?Quene
Sequence?渲染透明通道 - 具體設(shè)置
1 將需要被渲染的實(shí)體加入?Layer?窗口

2?在輸出渲染設(shè)置中?
選擇?EXR?或?PNG?序列格式
Deferred?Rendering?選擇?Accumulator?includes?alpha?打勾
在?stencil?Clips?Layers?中?添加?剛才創(chuàng)建的?Layer?圖層
EXR?與?PNG?的區(qū)別在于?EXR?內(nèi)嵌通道,PNG通道單獨(dú)文件,但EXR需要設(shè)置色彩空間,PNG更方便AE使用。

截圖指定對象 - 透明通道設(shè)置
在?Level?Editor?中?找到需要截圖對象的 Details?面板
找到?Render? in?Depth?Pass?選項(xiàng),打勾。
找到?Render?CustomDepth?Pass?選項(xiàng),打勾。
備注:有一定機(jī)率需要關(guān)閉?Render?in?Main?Pass?選項(xiàng)才能成功。
備注:多個(gè)對象可以手動(dòng)調(diào)節(jié)前后關(guān)系,通過?CustomDepth?Stencil?Value 。


在?High?Resolution?Screenshot?面板中?勾選?Use?Custom?Depth?as?Mask?選項(xiàng),即可輸出。

其它筆記
Custom?Depth?通道預(yù)覽選項(xiàng)可以幫助檢查通道的前后關(guān)系

Nanite?會導(dǎo)致?透明通道失效,2023年03月24日,因此如果出現(xiàn)問題,建議關(guān)閉?Nanite。
這位作者經(jīng)驗(yàn)非常深入,建議學(xué)習(xí) -?https://zhuanlan.zhihu.com/p/336951678