Setting up a 3D minimap (Godot 4/C#)

Let’s see how film our scene from two angles at once to give players a top-down and more abstract representation of the level!

Mina Pêcheux
CodeX

--

Plunging your players into a strange virtual world can sometimes have them lose their bearings for a while… which is why a lot of games offer a minimap that gives a bird’s-eye view of the scene and helps people understand the overall structure of the level.

So in this tutorial, let’s see how to make such a minimap in Godot :)

By the end of this article, you’ll know how to use a second Camera3D node in one of your 3D scenes to film the level from a specific angle, and how to use Godot’s viewport tools to repaste the view of this camera on the screen in a particular spot!

Note that in this tutorial, I’m going to start from the little dungeon-kinda level we made in this previous episode of the series, where we discussed how to attach a 3D camera to our hero in an RPG- like fashion, without any wall clipping or collisions.

--

--

Mina Pêcheux
CodeX

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)