Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the Filter flag and Linear Interpolation option in ViewportContainer #1467

Open
vitorbalbio opened this issue Sep 6, 2020 · 3 comments

Comments

@vitorbalbio
Copy link

vitorbalbio commented Sep 6, 2020

Describe the project you are working on:
Space Tactical RPG https://twitter.com/ZeroPointGame

Describe the problem or limitation you are having in your project:
Currently ViewportContainers don't have a way to set the interpolation filter what makes it limited to 3D applications.

The usual workaround is to use TextureRects instead as a ViewportContainer but it's not a perfect replacement and there's no point in not expose this property.

On top of it pointing the TextureRect to the same Viewport that is set in the ViewportContainer you can setup their Filter flag what while not be considered a bug (They are the same texture at the end) only shows how much simpler it would be if only this property was exposed in the ViewportContainer directly.

godot windows tools 64_Pnvvcnc5gX
godot windows tools 64_NJBlkXiQNs

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Expose the Filter flag in the ViewportContainer would just fix this.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Just a bool in the ViewportContainer inspector.
ApplicationFrameHost_cgLBD1M3eH

If this enhancement will not be used often, can it be worked around with a few lines of script?:
I can't be workarounded by code. It's not exposed in GDScript/C# either.

Is there a reason why this should be core and not an add-on in the asset library?:
It's a Core Feature of the engine.

@Calinou Calinou changed the title Expose the filter flag and Linear Interpolation option in ViewportContainers. Expose the Filter flag and Linear Interpolation option in ViewportContainer Sep 6, 2020
@KoBeWi
Copy link
Member

KoBeWi commented Sep 6, 2020

This is likely already resolved in 4.0, because texture flags are set per each CanvasItem (so ViewportContainers too).

@vitorbalbio
Copy link
Author

vitorbalbio commented Sep 6, 2020

This is likely already resolved in 4.0, because texture flags are set per each CanvasItem (so ViewportContainers too).

That's great to know but see that every single project currently in development can't use it and many never will so a solution for the current problem is yet needed if feasible.

@clayjohn
Copy link
Member

clayjohn commented May 24, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants