Simple Portal-like game implementation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hazer_hazer

Hi, i’m just trying to create something like Portal game(nothing complex). And i’m confused with Viewports and Camera working. Can you at least just say: is it possible to get image from non-“own world” camera and put to Viewport or Sprite. Maybe that’s too grandiose?

:bust_in_silhouette: Reply From: johnygames

You might want to check this out: Viewports — Godot Engine (3.1) documentation in English

The idea is that you grab what’s in the viewport as a texture and then you apply it to any object you want. I haven’t tried that myself, but it should work.