Hacker News new | ask | show | jobs
by lukan 1 day ago
"Extract positioning/actions from the video"

How would one even start doing it? Especially in a pixelated video?

The very best I would hope for this way, would be a very rough approximation. Unless one specially trains a model for this task. Or am I missing something?

2 comments

With "structure fron motion", you could reconstruct a model of the level geometry. Then you could find a best-fit position compared to the actual level geometry, and that gives you the path of the camera through the level. With some reverse engineering you could read the position, velocity, etc. of the character from RAM and program a PID controller to play inputs to match the computed camera path.

It would be quite a significant undertaking.

Sounds like a lot of programming indeed.

For doing manually, I recall seeing the CS "door stuck" clip get remade, mentioned by 3klik, but that's also an ungodly amount of manual tracing.

Upscaling does sound the most approachable method.

The geometry is already available, as well as all movement physics. It is probably much easier than upscaling real world footage.
The geometry of the level is avaiable as well as the physic of the game in general. But everything else, all the positions, events, actions, .. you get from where?
You'll get it from the original pixelated footage, if I haven't overlooked anything.
And how? Those are just pixels. You use a algorithm or a model to get coordinates out of pixels? Both do not seem trivial to me.
It's not unheard of for video game speedrunners to reverse engineer a game to the point that the internal state of the random number generator can be inferred based solely on what's on screen, and then to manipulate the state of that random number generator using valid game inputs to cause a "lucky" random event that saves time.

Reconstructing object positions based on the rendered frames wouldn't even be impressive.

If the goal is simply to upscale a video, I think this sounds overkill and a big project on its own.
Not trivial, but should be easier than upscaling pixels from real world footage, where you don't have access to all of those things listed.