Code Monkey home page Code Monkey logo

godot_little_camera_preview's Introduction

Little Camera Preview

A Godot editor plugin that shows a picture-in-picture style preview when selecting a 2D or 3D camera.

Install via the Asset Library, or download from Itch.io (and pay me a buck, or not).

Screenshot of little camera preview

Installation

If you've downloaded this manually, do the following:

  • Ensure you're using Godot 4.2 or above
  • Find the addons folder in your project files, or create it if it doesn't exist yet.
  • Move the folder addons/anthonyec.camera_preview to your project's addons folder.
  • Enable Little Camera Preview under Project > Project Settings > Plugins

Licence

Licensed under the MIT license, see LICENSE for more information.

godot_little_camera_preview's People

Contributors

anthonyec avatar thomas-schmall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

godot_little_camera_preview's Issues

Doesnt work correctly for portrait window

Godot Version 4.2.1.stable.mono
I tried using the addon with a portrait game, and scalates the image when traying to.
It happens to me with any portrait value. The error starts when the viewport height value is greater than the viewport width value.
image
image

The nearest Camera

My game is composed of a bunch of scenes within other scenes (as it should be done in Godot), and my camera is also a scene, so I can never click on it because the main node of the camera scene is not of camera type. It would be interesting for the addon to detect nodes that are scenes and search for cameras wherever you click (optionally) following the node tree inward.

Adjust bottom left camera position in the viewport to not obstruct transforms information.

In the Image 1 below I'd like to suggest to set the bottom left view for the camera up so when you dock the camera to the left side the information at the bottom left corner (visible in the Image 1 below) can be still viewed. The transforms info is particularly useful when rotating stuff around even with camera visible as well as moving objects around.

In the Image 2 you can see that there's a status box with information about the scene/current view which is also often useful which makes the right side not the best option if you want to view the camera, the transforms info and the box at the same time.
All this could be resolved by moving the left docking position several pixesl up.

Image 1:
image
Image 2:
image

I hope me description makes sense, otherwise it's a really cool plugin ;).

EDIT:
I suggest the margin's Y value to be set to 40 for both 2D and 3D.

Add support for Phantom Camera addon

The idea was mentioned on Reddit about integrating with Phantom Camera. Seems like it'd be useful to have basic viewport previews of the PCam nodes, even if it didn't have the fancy guide overlay.

Currently the code expects either a Camera2D or Camera3D node, so that would probably need to change to something more generic like Node2D and Node3D.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.