TresCom Forums
http://www.trescomforum.org/

Neural Network Texture up-scaling
http://www.trescomforum.org/viewtopic.php?f=6&t=11472
Page 4 of 5

Author:  darren_r_w [ Sun Jul 14, 2019 8:17 pm ]
Post subject:  Re: Neural Network Texture up-scaling

Just as a heads up, the texture up-scaling doesn't like anisotropic filtering in the mip maps, so make sure-

MipMapMode=1
and
TexFilterD3D=0

because texture filtering just ruins the inherent detail in the up-scale.
And of course, make sure the video options in the game have the texture render at maximum (and not high).

* update:
It also has a beneficial effect to hardware water that I have just noticed.

Author:  machf [ Mon Jul 15, 2019 4:58 am ]
Post subject:  Re: Neural Network Texture up-scaling

That's good to know... thanks!

Author:  Isolt [ Sat Jul 20, 2019 11:15 pm ]
Post subject:  Re: Neural Network Texture up-scaling

Draconisaurus wrote:
That does look pretty nice... At some point be sure to do Wu's pool sign, and the flood control building door.

Here is the flood gate.
I'm off overseas for a wedding for the next few weeks. Mostly done with V2, just need to merge them with their alpha layers and test them.
Spoiler: show
Attachment:
Sflooddor00t2B.png
Sflooddor00t2B.png [ 2.02 MiB | Viewed 9539 times ]

Author:  Draconisaurus [ Wed Jul 24, 2019 2:18 am ]
Post subject:  Re: Neural Network Texture up-scaling

Holy Crap lol, a telling more true than I would expect.

Author:  Isolt [ Tue Aug 13, 2019 11:28 am ]
Post subject:  Re: Neural Network Texture up-scaling

OK V2 is almost done, it's looking a lot better than V1!
I've tried darren's advice about "TexFilterD3D=0". It looks better but leaves the ground very pixilated, I think it's worth the trade off to a have the ground blurred.

Stock CE
Image

V2 Upscaled
Image

Stock CE
Image

V2 Upscaled
Image

Is there a better way to display these images then what I'm doing?
Spoiler: show
Attachment:
TPass022.BMP
TPass022.BMP [ 5.93 MiB | Viewed 9461 times ]

Spoiler: show
Attachment:
TPass003.BMP
TPass003.BMP [ 5.93 MiB | Viewed 9461 times ]

Spoiler: show
Attachment:
TPass026.BMP
TPass026.BMP [ 5.93 MiB | Viewed 9461 times ]

Spoiler: show
Attachment:
TPass008.BMP
TPass008.BMP [ 5.93 MiB | Viewed 9461 times ]

Author:  tatu [ Tue Aug 13, 2019 12:18 pm ]
Post subject:  Re: Neural Network Texture up-scaling

Looks good!

However, I personally dislike the palms on the upscale. At least not the greenish one (on the most right in the monorail image). It looks less transparent and more square, probably due to counting part of the opacity area as the texture itself.

Author:  machf [ Tue Aug 13, 2019 6:37 pm ]
Post subject:  Re: Neural Network Texture up-scaling

What happened to that sign at the monorail station...?

Author:  Isolt [ Tue Aug 13, 2019 10:29 pm ]
Post subject:  Re: Neural Network Texture up-scaling

tatu wrote:
Looks good!

However, I personally dislike the palms on the upscale. At least not the greenish one (on the most right in the monorail image). It looks less transparent and more square, probably due to counting part of the opacity area as the texture itself.

Hmm yeah I'll need to look at the alpha channel on those.

Machf - The sign was very low resolution and the text didn't upscale well. I added some texture to make it look more weathered rather then weirdly upscaled. The alternative would be to recreate it from scratch. Text had been the most problematic part of this, people know exactly what it should look like but the neural network doesn't. It can get away with a lot of leeway upscaling a wood texture, but get the text even slightly wrong and it's glaringly obvious.

CE
Spoiler: show
Attachment:
TPass025.BMP
TPass025.BMP [ 5.93 MiB | Viewed 9450 times ]


Upscaled
Spoiler: show
Attachment:
TPass006.BMP
TPass006.BMP [ 5.93 MiB | Viewed 9450 times ]


CE
Spoiler: show
Attachment:
TPass030.BMP
TPass030.BMP [ 5.93 MiB | Viewed 9450 times ]


Upscaled
Spoiler: show
Attachment:
TPass010.BMP
TPass010.BMP [ 5.93 MiB | Viewed 9450 times ]

Author:  Draconisaurus [ Mon Aug 19, 2019 8:22 pm ]
Post subject:  Re: Neural Network Texture up-scaling

I personally think your upscaling looks amazing. I am highly impressed that this is even possible.

Author:  Isolt [ Tue Aug 20, 2019 3:32 am ]
Post subject:  Re: Neural Network Texture up-scaling

Thanks Draconisaurus, I can't take any credit for the actual technology. I'm amazed it's possible as well!

V2 is up. It's 4x the original resolution so quite a large download (V1 was 2x).
I don't have any trouble loading it with my average hardware. If people want a smaller 2x version I can make one as well.
https://mega.nz/#!BSRhQaJS!v_GE3iS_L-oOQiSnXExq3RaHTeWd7KwBFCLzdvGSoTg

Any thoughts?

I'm particularly impressed with the truck, it was pretty low resolution to start with. There's also a screen shot of it in game a few posts above.
4x upscale no interpolation/4x neural network upscale
Attachment:
PTruck32t2.jpg
PTruck32t2.jpg [ 114.53 KiB | Viewed 9367 times ]

Author:  tatu [ Tue Aug 20, 2019 4:49 am ]
Post subject:  Re: Neural Network Texture up-scaling

It looks really good! Now it is too bad we can't do anything about the terrain textures!

Author:  Isolt [ Tue Aug 20, 2019 6:07 am ]
Post subject:  Re: Neural Network Texture up-scaling

tatu wrote:
It looks really good! Now it is too bad we can't do anything about the terrain textures!

I'm ready when the technology arrives!

Author:  machf [ Tue Aug 20, 2019 4:59 pm ]
Post subject:  Re: Neural Network Texture up-scaling

Let me know when it's available for download somewhere else than Mega...

Author:  tatu [ Tue Aug 20, 2019 6:00 pm ]
Post subject:  Re: Neural Network Texture up-scaling

machf wrote:
Let me know when it's available for download somewhere else than Mega...


Here you go: http://www.trescom.org/download/downloa ... es_V2.0.7z
I also repackaged it to a .7z file instead, reducing about 170MB :)

Author:  machf [ Tue Aug 20, 2019 6:08 pm ]
Post subject:  Re: Neural Network Texture up-scaling

Thank you. The way Mega handles downloads by storing them in the browser's cache conflicts with my cache settings...

Page 4 of 5 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/