Precise zooming
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Precise zooming
Can I somehow zoom a game screen without blurring it?
Unit sprites are too small for me. I want to increase their size (x2 for example), but I do not want to see blurred pixelart.

Unit sprites are too small for me. I want to increase their size (x2 for example), but I do not want to see blurred pixelart.

Last edited by cKomuHKa on September 12th, 2014, 6:39 pm, edited 1 time in total.
Re: Precise zooming
No, you can't.cKomuHKa wrote:Can I somehow zoom a game screen whithout blurring it?
You can try a workaround, half your screen resolution and don't zoom.
Re: Precise zooming
If you are willing to recompile the game from source, you could probably turn off whatever aliasing it is doing, but it doesn't look like you can do that otherwise. Maybe we should add this to 1.14 as an advanced preference or something.
Re: Precise zooming
That would be great.iceiceice wrote:Maybe we should add this to 1.14 as an advanced preference or something.
Re: Precise zooming
+1 to user preference, and as a side note how does one turn the anti-aliasing off in the source?iceiceice wrote:If you are willing to recompile the game from source, you could probably turn off whatever aliasing it is doing, but it doesn't look like you can do that otherwise. Maybe we should add this to 1.14 as an advanced preference or something.
Re: Precise zooming
Let me emphasize that I use the word "probably" because I don't know for a fact that you can.
Edit: Okay, actually I got curious and decided to peek at the code and see if my educated guess was right. Turns it out was *not*, you probably cannot easily do this... so you might want to just forget I ever mentioned it
Spoiler:

Spoiler:
Last edited by iceiceice on September 12th, 2014, 11:22 pm, edited 1 time in total.
Reason: spoilered some speculations that turned out not to be accurate
Reason: spoilered some speculations that turned out not to be accurate
Re: Precise zooming
Okay, actually I had another idea about this and came back to it, one thing lead to another, I think I can tell you at least one way that seems to work now. No promises that it's really doing the right thing, but it seems to give that chunky, no blur feel.
It requires source code modifications, but they are quite small, just changing 3 lines. You can do it yourself, or I provide a patch file below (but you need to figure out how to use some tool to apply it then, so pick your poison.)
Edit: The patch is now moot, see next post.
It requires source code modifications, but they are quite small, just changing 3 lines. You can do it yourself, or I provide a patch file below (but you need to figure out how to use some tool to apply it then, so pick your poison.)
Edit: The patch is now moot, see next post.
patch
- Attachments
-
0001-Default-zoom-factor-x2-and-disable-bilinear-interpol.patch
- patch which disables interpolation in wesnoth rendering, for 1.12 branch
- (1.44 KiB) Downloaded 291 times
Re: Precise zooming
Update:
It was eventually decided that the blurry behavior when you zoom in is considered a bug. It has now been fixed, the above patch is no longer necessary, you will get results such as that by default instead.
Commit: https://github.com/wesnoth/wesnoth/comm ... a437a2920d
It was eventually decided that the blurry behavior when you zoom in is considered a bug. It has now been fixed, the above patch is no longer necessary, you will get results such as that by default instead.
Commit: https://github.com/wesnoth/wesnoth/comm ... a437a2920d