There was some thread about 128x128px sprites in OTC and also some about neural network that increase images resolution 'like human' (draw like human), but I could not find it, so I created new.
------------------------------------
I decided to test how fast it is and how does it look like.
1. Can we render resized image with neural network in real time in OTC? No.
Neural network is too slow to generate image in real time. We can't add it to OTC as part of 'rendering'.
It takes around 1 second to increase quality of 1 HD image on modern PC.
2. Can we resize items in Tibia.spr and render high resolution sprites in OTC? Yes.
2.0 What I've done.
Spent around 2 hours on neural network (NN) installation - GitHub - nagadomi/waifu2x: Image Super-Resolution for Anime-Style Art and all libraries it requires.
"waifu2x" is neural network that resize images to 2 times bigger images. I learnt how to do this by 'watching' resized anime (japan comics) images.
I resized all Tibia 8.60 sprites (32x32) to 64x64.
Then I took resized 64x64 images 'as base images' and resized it to 128x128.
2.1 How long it took?
I ran it on [email protected] with GF 1050 using CUDA (graphic card).
Resize of 11000 images from 32x32 to 64x64 took around 4 minutes. Then it took around 3 minutes to run PHP script that clean images from 'pink' background.
Resize of 11000 images from 64x64 to 128x128 took around 9 minutes. Then it took around 3 minutes to run PHP script that clean images from 'pink' background.
2.2 RESULTS
I made website where you can compare by yourself 'how it looks like' (11000 images):
EDIT:
I added images generated by NN learned on Tibia images and fixed 'Anime' version (removed 'pink transparent color').
http://vpn.skalski.pro/items_nn_anime.htm
1) NN learned using Anime images data vs simple resize
2) NN learned using Tibia images data vs simple resize
3) NN learned using Anime vs using Tibia images data
I think that 'Anime' images look better. On some images made by NN learned by Tibia images are some artifacts.
You can compare it by yourself on page '3' with Tibia vs. Anime images.
2.3 TODO / plans
- Write/find some filter that will reduce black border width and fix all items borders which are not smooth
- Rewrite some parts of OTC to make it:
- - - load sprites with configurable size (32, 64, 128, 256)
- - - load sprites from .png files (not .spr file), it will be slow, but good for development stage
What do you think about it?
Does these images look good?
Is it time for 4K Tibia?
Worth to continue work on it? (Anyone interested in OTC programming with me?)
------------------------------------
I decided to test how fast it is and how does it look like.
1. Can we render resized image with neural network in real time in OTC? No.
Neural network is too slow to generate image in real time. We can't add it to OTC as part of 'rendering'.
It takes around 1 second to increase quality of 1 HD image on modern PC.
2. Can we resize items in Tibia.spr and render high resolution sprites in OTC? Yes.
2.0 What I've done.
Spent around 2 hours on neural network (NN) installation - GitHub - nagadomi/waifu2x: Image Super-Resolution for Anime-Style Art and all libraries it requires.
"waifu2x" is neural network that resize images to 2 times bigger images. I learnt how to do this by 'watching' resized anime (japan comics) images.
I resized all Tibia 8.60 sprites (32x32) to 64x64.
Then I took resized 64x64 images 'as base images' and resized it to 128x128.
2.1 How long it took?
I ran it on [email protected] with GF 1050 using CUDA (graphic card).
Resize of 11000 images from 32x32 to 64x64 took around 4 minutes. Then it took around 3 minutes to run PHP script that clean images from 'pink' background.
Resize of 11000 images from 64x64 to 128x128 took around 9 minutes. Then it took around 3 minutes to run PHP script that clean images from 'pink' background.
2.2 RESULTS
I made website where you can compare by yourself 'how it looks like' (11000 images):
EDIT:
I added images generated by NN learned on Tibia images and fixed 'Anime' version (removed 'pink transparent color').
http://vpn.skalski.pro/items_nn_anime.htm
1) NN learned using Anime images data vs simple resize
2) NN learned using Tibia images data vs simple resize
3) NN learned using Anime vs using Tibia images data
I think that 'Anime' images look better. On some images made by NN learned by Tibia images are some artifacts.
You can compare it by yourself on page '3' with Tibia vs. Anime images.
2.3 TODO / plans
- Write/find some filter that will reduce black border width and fix all items borders which are not smooth
- Rewrite some parts of OTC to make it:
- - - load sprites with configurable size (32, 64, 128, 256)
- - - load sprites from .png files (not .spr file), it will be slow, but good for development stage
What do you think about it?
Does these images look good?
Is it time for 4K Tibia?
Worth to continue work on it? (Anyone interested in OTC programming with me?)
Last edited: