Pixelated 2D crosshair

Godot Version

4.41

Question

I made a Battlefield 6 like crosshair using width curves but instead of loading a smooth curve in full screen it's all pixelated.

This is how it looks when I run the game:

But when I’m in the editor it looks like this(completely fine):

Is there anyway I can fix this??

Dude both of them are pixelated, are they not?
Enable antialiasing, or just use a texture.

4 Likes

If your worried about smoothness of the crosshair I would just use a texture like rpahut said. Other than that there is not enough info for a fix. It might just be a math to rendering problem if you are making it from godot tools. But I have no idea how you would fix it.

I’m using compatibility renderer because my laptop is from 2012 and when I enable 2D Anti-Aliasing in project settings in the output tab it says:

WARNING: drivers/gles3/storage/texture_storage.cpp:2692 - 2D MSAA is not yet supported for GLES3.

But I’ll try to use a texture

IM STUPID. There is an option in the border category which literarily says ANTI-ALIASING *edit never mind it doesn’t work

Apparently, antialiasing on shapes is broken for everyone.

oh dang

Also, how do I use a texture to make a crosshair like this because I’m planning to make a dynamic crosshair so will that work and if so how?

Just paint the lines on a texture. Would it not work the same way you were going to use the lines?

I need to animate each individual line so no

Or maybe I’ll make a texture for each individual line. That might work

I’ll try to use a TextureRect node instead

I give up

try this, Crosshair Pack · Kenney

and change the crosshair size depending on speed or player input? (don’t know your codebase)

hey!

I think that’s just a screen resolution problem,since your laptop is from 2012 I think the resolution might be around 1366x768 soo I think that’s because of lower ppi(Pixel per Inch)

you can try making it larger or just keep it as it is.

What’s your window stretch mode?

I can’t do that because I am moving each line in a script.

Actually, my laptop is set to 3840x2160, so I don’t think that’s the problem

Disabled. Why?