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.27k stars 77 forks source link

Ability to setup viewport options for the preview #418

Open Soremwar opened 2 weeks ago

Soremwar commented 2 weeks ago

Project Type

2D, Editor

Feature Description

Viewport settings should be configurable for the preview tab or inherit these from project settings, otherwise the preview won't match the visual of the game

Use Cases

When working with pixel art games, the default filter will turn everything into a blurry mess

(Optional) Proposed Solution

No response

ramokz commented 2 weeks ago

Could you share what specific viewport or project settings you're thinking of?

Soremwar commented 2 weeks ago

Texture filter for canvas items, setting it to nearest specifically

ramokz commented 2 weeks ago

Would you be able to share a small project with a sample scene, so I can see if a potential feature implementation works?

Soremwar commented 2 weeks ago

I created a reproduction based on examples/example_scenes/2D-4.3/2d_example_scene.tscn, since it's a perfect example

reproduction.zip

Only change made to project defaults was the texture filter on project settings from linear to nearest

If texture filter on the scene node is set to inherit, the scene is sharp, the preview is blurry

image

If manually set, the preview will match the scene in both cases

image