• 16
• 15
• 12
• 9
• 10

# scaling textures nicely to HD...Im a programmer so be gentle

This topic is 1766 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, Im currently on a project that is a sequel and also a port. The previous format had their textures scaled by a factor of 2x when ported for the prequel, so if the original .png had a 128 x 128 size, the new one for the HD counterpart got scaled up to 256 x 256.

No-one on my team seems to have a clue how the textures were scaled up last time, Ive had some experience mucking around on GIMP and paint.net so I know the basics of such packages.

However, I cannot scale these images to 256 x 256 and make them look good. Ive been using gimp and tried both linear and cubic filtering but the colors get too fuzzy.  The textures are profile shots for dialog in a jrpg, and obviously in an anime style  so their hair and skin has highlights and thats where most of the noticable ugliness comes from.

Does anyone recommend a method to retain visual clarity when scaling to 2x the size?

##### Share on other sites

Ive heard about 2xSaIhq2xhq3x and hq4x filtering algorithms, are there any plugins or standalone apps that exist that can be used? Do they support .png transparency?

##### Share on other sites
There are no algorithmic methods for upscaling that universally look good - it's a fundamental imposibility, because all scaling algormithms fundamentally have to "invent" new information to fill in the added bandwidth provided by the higher resolution. Every scaling algorithm is a compromise. In particular, all extant upscaling algorithms have significant issues with large curves, arbitrary curves, and lines of arbitrary slope.

Really good upscaling requires an artist to manually add in new detail.

##### Share on other sites

Probably the simplest way to improve the visual would be upscaling with whatever method you think looks best and then using shaperning filters to make it look more crisp. In Photoshop or GIMP this is called "Unsharp Mask".

Next time you need different sizes for the same texture, try doing the opposite: start creating high-res material that you downscale to whatever you want.

##### Share on other sites

I`ve heard about 2xSaIhq2xhq3x and hq4x filtering algorithms, are there any plugins or standalone apps that exist that can be used?

Google, fifth searchresult using "hq4x filter" as keyword, brings up c source code for the filter