Nez blurry sprites

As you can see an entity with a sprite render component is noticeably blurry. This also happens with text UI. I am using Nez.MG38 project and have tried Batcher.UseFnaHalfPixelMatrix = true; and Core sampler state is set to point clamp but that doesn’t fix it.

image

This is also accompanied with not being able to set the window size using the constructor like so:

public Game()
	: base(1280, 720) { }

This might indicate a faulty installation of Nez but I wasn’t able to fix the issues… any help?

I don’t know what Nez is but this might help with the second part:

In mongame 3.8 you can no longer set the resolution in the constructor - you need to do it in Initialize().

e.g.
protected override void Initialize()
{
_graphics.PreferredBackBufferWidth = 1024;
_graphics.PreferredBackBufferHeight = 768;
_graphics.ApplyChanges();

}

1 Like

Sometimes it can be blurry if you don’t round your positions before drawing.