Jump to content

[GUIDE] Upscaling textures with AI


Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/24/22
  • Last Seen:  

After seeing many posts and several servers using upscaled textures I decided to start looking into ways of doing and automating it. 

We will need two different tools for this

  1. Upscayl (free AI image upscaler)
  2. Irfanview (image tool that allows bulk conversion between formats)

Before starting with the guide itself, a few notes:

  • Upscayl doesn't allow using BMP images, so every texture we want to change will need to follow the following process:
    • Convert BMP to JPEG -> Upscale in Upscayl -> Convert JPEG to BMP
  • The results are by no means perfect, and some of the texture might not look perfect in game, specially when two textures go together, but it's a good starting point.

Now for the guide itself:

1 - Extract textures from GRF

I will not explain how to do this. You can use a tool like GRF editor to extract the textures from the official GRF's.

2 - Bulk convert BMP to JPEG with Irfanview

tutorial_1.png.82e2a7f861980562112ec52aa1dc18b4.png   In Irfanview load the folder containing the BMP files and click on Add All. Select the output as JPEG, choose the output folder and click Start Batch when ready.

3 - Upscale images with Upscayl

tutorial_2.png.c3d6828acadea9c0f73b4bf75fbea7f5.png 

  1. Select Batch Upscayl and select the folder with the JPEG files generated in the previous step.
  2. Select which model we want to use. At the time of writing there are 6 different models, so I recommend to start playing around with it with a single image to see the results before doing a bath upscale.
  3. Select the scale. This is very important. RO textures are usually 256x256. Upscayl supports up to 16x! (4096x4096). The more resolution the best results, however, not only will this take longer to generate images, they will also weight way too much. I recommend leaving it as 2x
  4. Select the output folder.
  5. Upscayl! This can take a while depending on your PC, the settings you have chosen and the number of textures. At the end of the process you should have all the new upscaled JPEG textures in the folder you selected.

Below is an example of an upscaled texture using the digital art model (this is a screenshot taken directly from the program, once converted it won't have the watermark)

tutorial_3.thumb.png.ee5e7d9b1b9290d241921bc2c72a40b8.png

Below is an example of an upscaled texture using the ultramix balanced model (this is a screenshot taken directly from the program, once converted it won't have the watermark)

tutorial_4.thumb.png.0baae44f1133ad1692748e8e0636a0a5.png

4 - Bulk convert JPEG to BMP with Irfanview

In Irfanview load the folder containing the JPEG files and click on Add All. Select the output as BMP, choose the output folder and click Start Batch when ready.

5 - Put new texture in your data folder or GRF

Put the newly generated BMP images in your data folder or GRF, start your server and give it a try!

Edited by Iamanewbiehere
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   20
  • Joined:  04/21/13
  • Last Seen:  

A free tool I've used several times to upscale various game textures and stuff (mainly out of curiosity) is Chainner. It works well with NVIDIA GPU slightly less so with AMD/ATI GPU.
It's not particularly easy nor particularly hard to use either but it's different to say the least !
 

I wouldn't recommend converting to JPEG before upscaling, you want to have the least amount of artifacts before doing AI uspcaling. (JPEG compression creates artifacts and image noise)

PNG always preferred as it has losless compression.

Edited by eleriaqueen
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...