Page 1 of 1

Bilinear graphics option

PostPosted: Wednesday, 25th October 2017, 06:25
by alastair
Problem

The tiles in crawl can be quite small and hard to see, especially with higher resolution monitors, or small screens. The solution offered to fix this seems to be the "tile_cell_pixels" command, but this option makes the graphics look crazy when not kept at the default size.

Steps to replicate

• Open init.txt in your settings folder
• Type this in a line: tile_cell_pixels = 48
• Run the game to see the tiles at 150% their normal size

Observation

Notice the strange patterns on the items, the corpse, the player. It looks jagged!
Image

Expected Result

It would be nice if it applied bilinear scaling, rather than nearest neighbour, to provide a more pleasing appearance. Here is a mockup using bilinear scaling with a graphics program:
Image

This is not part of the request, but just to show that there are other nice scaling algorithms that look quite nice. This example from http://waifu2x.udp.jp/
Image

Another one for fun, so smooth and crisp even when scaled up!
Image

Re: Bilinear graphics option

PostPosted: Wednesday, 25th October 2017, 15:11
by Implojin
There is already an option to enable bilinear filtering in DCSS, add this line to your rcfile:

tile_filter_scaling = true

I agree that it would be neat to get something like HQ2X/HQ4X available, though.

Re: Bilinear graphics option

PostPosted: Thursday, 26th October 2017, 00:00
by alastair
oh thank you! Yeah it would be amazing to have those options too, if they're possible to do in the engine.