Skip to content

jooonior/tf2-how-to-record-depth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Recording depth in TF2

This guide will go over how to capture the depth buffer when rendering out demos, which can be then used in movie making.
As far as I'm aware the only alternative way of doing this is porting demos to Source Film Maker.

TFTV thread

Table of Contents

Introduction

In TF2, things like character animations and ragdolls are influenced by RNG. This means that in order for your world and depth to line up, you have to record both at the same time, in a single pass.

I have modified the standard ReShade DisplayDepth shader to show both normal image and depth buffer side by side. This can then be recorded using game capture software. Some extra tricks are used to control the resolution and framerate of the footage.

Required Software

  • ReShade
  • Half-Life Advanced Effects
  • MSI Afterburner
  • Lagarith Lossless Video Codec
  • UT Video Video Codec
  • StatusSpec
  • ffmpeg

Some can be substituted, but I suggest you use these to avoid any unnecessary issues.

Notes

  • Lossless video takes up quite a bit of space. You'll probably want to have around 100 GB of free space to work with.

  • I edit in Premiere and After Effects. If you use something else, you may have to re-encode the footage to make it compatible.

  • If you have any suggestions on how to improve this process, please do share.

The Guide

  • Install and set up everything
  • Only have to do this the first time
  • How you actually record
  • More complex stuff
  • Need to know the basics first

Changelog

6. 2. 2021

  • Rewrote the guide
  • New ReShade shader
  • Ditched SourceDemoRender, VDMs, startmovie
  • Now two ways to record
  • Output encoded with UTVideo - fixed color loss again
  • ffmpeg and ffplay included in the download

7. 8. 2020

  • Fixed crash on startmovie

5. 8. 2020

  • Restructured the guide
  • Fixed color loss during video encoding
  • Fixed Steam messing up ReShade

3. 8. 2020

  • First release