Texture rendering issues when rotating or resizing

Godot Version

4.2

Question

I’m facing a peculiar issue with texture rendering in Godot 4.2 when I try to rotate or resize the texture. I have attempted to address the problem by adjusting the filter and repeat fields in the texture section, but unfortunately, it hasn’t resolved the issue. Additionally, I experimented with changing the screen size, but that didn’t prove effective either.

Here are the relevant details:

Despite these efforts, the rendering problem persists. I suspect there might be something else affecting the rendering when rotation or resizing occurs.

Has anyone encountered a similar issue in Godot 4.2? Any insights, suggestions, or solutions would be greatly appreciated. Thank you!

[bug pic]-glitched texture

[not glitched texture pic]-how it should look like(normally)

can you also share the picture of the scene tree for this “character with sword”?
if it’s sprite2d, did you try to change the region thingy? because general rotating wont alter the texture resource looks like

image

did you do shader for rotating?

no, i just change the angle
image

interesting, did any of the parent node of this sword has their scale got altered?

scale no, but i change the angle in swordsprite and in node2d

if not, then you are actually need to follow tutorial how to make pixel perfect game in godot
one of these answers in Pixel Perfect in Godot - Godot Forums

there is this pixel perfect shader but i believe it’s in godot 3, you might want to apply it into your godot 4 see if it works

1 Like

thx, i will try it

tysm bro it helped me! But what ratio i should select?
image

i dont know which one worked for you, but it looks like the video one works for you
then just follow the tutorial video of it
else
try selectin one by one see if it works


This fixed my bug. But what if i head a 1000x696 resolution, how can i get rid off black bars on the top/bottom/right/left of the screen

expand selection should expand it to to fit the screen size
also combine it with canvas_item selection

1 Like

tysm <3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.