Upvote Upvoted 24 Downvote Downvoted
How to record depth
posted in Videos
1
#1
0 Frags +

Made in response to Is it possible to make ragdolls deterministic?
TLDR: Need to make demo always play the same so I can record in two passes.

That doesn't seem to be possible, but I've figured out how to record both normal image and depth at the same time in a single pass.

Basically, startmovie doesn't capture ReShade effects, so by using it together with a regular screen cap (which will capture ReShade), you can get there. The actual process is a bit more complicated so I went with GitHub for better formatting.

The guide on GitHub

Updates

[6. 2. 2021]

  • new ReShade shader
  • ditched SourceDemoRender, VDMs, startmovie
  • now two ways to record
  • output encoded with UTVideo - fixed color loss again

[7. 8. 2020]

  • fixed crash on startmovie

[5. 8. 2020]

  • fixed color loss during video processing
  • restructured the guide
  • fixed Steam messing up ReShade
Made in response to [url=https://www.teamfortress.tv/56415/is-it-possible-to-make-ragdolls-deterministic]Is it possible to make ragdolls deterministic?[/url]
TLDR: Need to make demo always play the same so I can record in two passes.

That doesn't seem to be possible, but I've figured out how to record both normal image and depth at the same time in a single pass.

Basically, [b]startmovie[/b] doesn't capture ReShade effects, so by using it together with a regular screen cap (which will capture ReShade), you can get there. The actual process is a bit more complicated so I went with GitHub for better formatting.

[url=https://github.com/jooonior/tf2-how-to-record-depth]The guide on GitHub[/url]


[u][b]Updates[/b][/u]

[6. 2. 2021]
[list]
[*] new ReShade shader
[*] ditched SourceDemoRender, VDMs, startmovie
[*] now two ways to record
[*] output encoded with UTVideo - fixed color loss again
[/list]
[7. 8. 2020]
[list]
[*] fixed crash on [i]startmovie[/i]
[/list]
[5. 8. 2020]
[list]
[*] fixed color loss during video processing
[*] restructured the guide
[*] fixed Steam messing up ReShade
[/list]
2
#2
6 Frags +

I was just lamenting about not being able to engine record w/ reshade in lawena a few days ago due to the former being a post process and then you make this guide

what a fucking legend

I was just lamenting about not being able to engine record w/ reshade in lawena a few days ago due to the former being a post process and then you make this guide

what a fucking legend
3
#3
0 Frags +

They updated the game and now TF2 will crash on launch if Steam isn't running (thanks guys), so you can't just close Steam as I say in the guide.
According to this article (section 1a) the solution appears to be to have Steam in offline mode. This is more of a temporary workaround until I find a better way to do it.

They updated the game and now TF2 will crash on launch if Steam isn't running (thanks guys), so you can't just close Steam as I say in the guide.
[s]According to [url=https://reshade.me/forum/troubleshooting/3293-common-issues-and-their-solutions]this article[/url] (section 1a) the solution appears to be to have Steam in offline mode. This is more of a temporary workaround until I find a better way to do it.[/s]
4
#4
8 Frags +

UPDATE 2020-12-01

ReShade disables depth effects when it detects network traffic to prevent ppl from using cheaty effects in multiplayer games (and game devs banning reshade bc of it). If you see the recording going black for no reason, this is what causes it.

An easy workaround is to unplug your Ethernet cable when recording, but that's kinda dumb. A better solution is to build ReShade from source yourself with the network check disabled (or dm me for it). This version can be considered a cheat, so you shouldn't use it when playing.

quote from ReShade forumsThe reason the depth buffer is disabled in online games is because it _can_ be abused and used to cheat, and you don't need a lot of imagination to understand how.

And the reason this is a bad thing is that if people use Reshade to cheat, it will be outright banned by online games both now and in the future. A very tiny minority of talentless cheaters will ruin it for everybody else.

You really _don't_ want to compile and distribute these, otherwise DE _will_ ban Reshade and then you won't be able to use sharpening, LUTs, anti-aliasing or any other Reshade feature at all. You'll be forced to play the game without Reshade and all that it offers -- and not just you, all the thousands of others using Reshade to improve the look of their game.

So please don't do it.
[b]UPDATE 2020-12-01[/b]

ReShade disables depth effects when it detects network traffic to prevent ppl from using cheaty effects in multiplayer games (and game devs banning reshade bc of it). If you see the recording going black for no reason, this is what causes it.

An easy workaround is to unplug your Ethernet cable when recording, but that's kinda dumb. A better solution is to build ReShade from source yourself with the network check disabled (or dm me for it). This version can be considered a cheat, so you shouldn't use it when playing.

[quote=quote from ReShade forums]The reason the depth buffer is disabled in online games is because it _can_ be abused and used to cheat, and you don't need a lot of imagination to understand how.

And the reason this is a bad thing is that if people use Reshade to cheat, it will be outright banned by online games both now and in the future. A very tiny minority of talentless cheaters will ruin it for everybody else.

You really _don't_ want to compile and distribute these, otherwise DE _will_ ban Reshade and then you won't be able to use sharpening, LUTs, anti-aliasing or any other Reshade feature at all. You'll be forced to play the game without Reshade and all that it offers -- and not just you, all the thousands of others using Reshade to improve the look of their game.

So please don't do it. [/quote]
5
#5
4 Frags +

bump bc big update, lots of improvements - faster, less crashes
trdr: custom shader that shows world and depth in split screen, so you just rec that

If anyone is doing it the old way, I suggest you read the new version:
https://github.com/jooonior/tf2-how-to-record-depth/

the old version still exists for the cavemen out there:
https://github.com/jooonior/tf2-how-to-record-depth/tree/v1

bump bc big update, lots of improvements - faster, less crashes
trdr: custom shader that shows world and depth in split screen, so you just rec that

If anyone is doing it the old way, I suggest you read the new version:
https://github.com/jooonior/tf2-how-to-record-depth/

the old version still exists for the cavemen out there:
https://github.com/jooonior/tf2-how-to-record-depth/tree/v1
6
#6
1 Frags +

Awesome guide, I was wondering if you could screenshot or upload your tl math preset in after effects for converting the rgb ramp to a black and white gradient (I'm assuming that's what your depth formula does). I kinda got it to work but its kinda scuffed so I was hoping you could share (; Keep up the good work

Awesome guide, I was wondering if you could screenshot or upload your tl math preset in after effects for converting the rgb ramp to a black and white gradient (I'm assuming that's what your depth formula does). I kinda got it to work but its kinda scuffed so I was hoping you could share (; Keep up the good work
Please sign in through STEAM to post a comment.