0 votes

Hello
i´m working on a 3d fiest person sokoban.
I have got a first person camera on the player:
First Person

And i have got a orthogonal top down camera, that i want to use as a mini-map:
Top Down

How can i use the seccond camere as a small map while playing on the firdt one

First idea:
Something like a HUD:
Top down camera downscaled to 1/4 of the window width and height embetted in one of the top corners on the game-window
Seccond idea:
A splitscreen:
Width divided in 1/4 and 3/4
First person camera in the bigger area, top down camera downscaled in the smaller one

in Engine by (75 points)

use
https://www.youtube.com/watch?v=YL-JVhfu8w4
add sprite and add sprite/texture ++ camera
you transfer the image of the camera to the sprite texture
If the game is for Android
it uses a lot of CPU
I suggest you cheat a little

it´s just for my self on my pc, because i like to play arround with this engine.

I thy the way on his video.
I downloaded his little sample and use it as reference to look into while working.

I have an issue:
how do i access the player-camera here, that is instanced through code in the level 1 scene,

edit:
i now found a way my self:

I took the first person camera and viewport out of the player and into the game-scene, where the topdown-stuff already is Than i made the player call a function for the camere in process, that sets position and rotation of the camera to the values of the player.

so i could connect both cameras exact the same way to their matching sprite-screens.

now everything is correct placed: fitted gamescreen

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.