How to make a video camera system in godot 4

Godot Version

Godot 4.2

Question

How would you go about making a camera that the player can hold, and record with it. Capturing what the camera sees. And how would you save the footage for later viewing?

The “camera” would just be another camera node that pokes-out from the camera mesh - so it would point wherever the mesh gets pointed (say in your characters hand, or whatever).

The recording part would involve some kind of subviewport voodoo. Have not tried much of that lately, but look into: SubViewportContainer — Godot Engine (stable) documentation in English

thanks!

1 Like