You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For projects that use mainly pixel art assets, all previews are displayed blurry now.
Godot 3.5 to the left, and 4 alpha to the right.
Since the filter setting is now no longer stored with the imported resource, perhaps it could be solved via an editor setting.
Alternatively, perhaps it could use different filters based on texture resolution.
Steps to reproduce
In the FileSystem panel, double-click any low res pixel art sprite to preview it the inspecor
Notice it being blurry
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
My suggestion is to detect the image size and the rendered preview size, and use nearest-neighbor filtering if the scale factor is greater than or equal to 4.0. This is similar to what image editors such as GIMP do.
Alternatively, if drawing the image as large as possible isn't important, integer scaling can be forced and filtering can always be disabled. Either solution is good to me.
Calinou
changed the title
Texture preview filter regression
Texture preview in the editor always uses filtering, even for very low-resolution textures
Apr 11, 2022
A few extra areas to tack on so it doesn't get missed in testing juuuust in case!
The blurriness affects shaders that are pulling color from a sampler2D which is small in size, like say a pixel color palette in a color replacement shader because it pulls the color from the blurred image~ (Including global shader params)
Using edit region on pixel art is a bit of a "guess which pixel is the edge" game~ xD
Godot version
v4.0.alpha6.official [e4f0fc5]
System information
Ubuntu, Windows
Issue description
For projects that use mainly pixel art assets, all previews are displayed blurry now.
Godot 3.5 to the left, and 4 alpha to the right.
Since the filter setting is now no longer stored with the imported resource, perhaps it could be solved via an editor setting.
Alternatively, perhaps it could use different filters based on texture resolution.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: