ramokz / phantom-camera

👻🎥 Control the movement and dynamically tween 2D & 3D cameras. Built for Godot 4. Inspired by Cinemachine.
https://phantom-camera.dev/
MIT License
2.18k stars 72 forks source link

Add a Picture-in-picture preview mode #186

Closed Tarek-Hasan closed 8 months ago

Tarek-Hasan commented 8 months ago

Project Type

2D, 3D

Feature Description

Please add a Picture-in-picture preview mode, which is available in other game engines like, Unity and Unreal Engine.

screenshot

Use Cases

With this feature, getting a camera preview will not take up too much display area.

Importance

Medium - the feature would unlock new possibilities, but it's not a showstopper

Usage

All the time - the feature can be very useful for a varity of different projects

(Optional) Proposed Solution

Similar feature for godot is provided by a standalone addon called, Little Camera Preview. You may look into it.

ramokz commented 8 months ago

Not entirely sure what the ask is?

The Little Camera Preview already works nicely out of the box, as it just shows the currently selected Camera3D / Camera2D from the scene tree, and am not keen on replicating their addon for ethical reasons.

The only two things I can see that would make it integrate better would be to A) show the dead zone guides and B) allow for the preview to update when selecting a PCam3D or PCam2D node, but that's something even this plugin's Viewfinder doesn't do, so that's a new (and separate) suggestion in itself. But think the latter option isn't ideal since PCams are not cameras, so you would either need to teleport a Camera to it when you select it or instantiate a new Camera. Neither of which are ideal. This is also the intent behind the Priority Override, so that would solve that issue.

JamesMWestbrook commented 8 months ago

Yep the little camera plugin works. Youll have the option to pin it, and itll still work correctly off the Phantom Camera

ramokz commented 8 months ago

In addition to what was mentioned above, seeing how there was a recent tweet from the author of Little Camera Preview being remade in C++ with a suggestion of it being added to the main editor.

Am inclined to close this, as I don't see there being much value recreating the functionality when the other plugin exists and might become native to Godot itself in the future.