OpenXcom Forum

OpenXcom => Suggestions => Topic started by: ncuxonaT on November 12, 2015, 06:55:51 pm

Title: External upscaled sprites
Post by: ncuxonaT on November 12, 2015, 06:55:51 pm
Hi!
I've found great 2x upscaler, but unfortunately it's impossible to use it as shader/postfilter. I can upscale sprites as separate images and save them in png format.
I wonder if it possible to load sprites from external png files?
Examples:
(https://www.dropbox.com/s/nbv6fi44ltyj4zu/xcom_0_die.gif?dl=1)(https://www.dropbox.com/s/va6z7ompidets65/xcom_0_rotation.gif?dl=1)(https://www.dropbox.com/s/2dlatlwrsy1d7y2/xcom_0_rotation_f.gif?dl=1)(https://www.dropbox.com/s/azujb0olpy2b9rl/xcom_1_die.gif?dl=1)(https://www.dropbox.com/s/97tqkiyyhdjim76/xcom_1_rotation.gif?dl=1)(https://www.dropbox.com/s/zdaxbt2c4ueou12/xcom_2_die.gif?dl=1)(https://www.dropbox.com/s/1up6lu7olavi906/xcom_2_rotation.gif?dl=1)(https://www.dropbox.com/s/gfjgp82x4x1wnty/zombie_mutation.gif?dl=1)(https://www.dropbox.com/s/1ybkbuaat1k35qd/zombie_rotation.gif?dl=1)(https://www.dropbox.com/s/88sd66mu3s5q86p/zombie_walk1.gif?dl=1)(https://www.dropbox.com/s/1x1rsszs2q3j4go/ethereal_die.gif?dl=1)(https://www.dropbox.com/s/xbs4rv1zlpyw66r/ethereal_rotation.gif?dl=1)(https://www.dropbox.com/s/05mnolj8goivcg4/ethereal_walk1.gif?dl=1)(https://www.dropbox.com/s/ygej0w9t28qf77c/sectoid_die.gif?dl=1)(https://www.dropbox.com/s/90r5mny26qnjrto/sectoid_rotation.gif?dl=1)(https://www.dropbox.com/s/dt3ti764ht7rl09/muton_die.gif?dl=1)
(https://www.dropbox.com/s/gbvr6c2coppucmb/bigobs.png?dl=1)
Title: Re: External upscaled sprites
Post by: mrxian on November 12, 2015, 11:01:06 pm
Damnit, the body armored trooper is spinning in the wrong direction.
Title: Re: External upscaled sprites
Post by: ncuxonaT on November 12, 2015, 11:36:53 pm
Fixed
Title: Re: External upscaled sprites
Post by: DracoGriffin on November 12, 2015, 11:42:21 pm
I would love to see how you're doing this. :X

But not sure how with a .png sprite sheet.
Title: Re: External upscaled sprites
Post by: ncuxonaT on November 13, 2015, 12:01:45 am
Here it is (https://dl.dropboxusercontent.com/u/107372210/openxcom/pir_1_rotation.gif)
Title: Re: External upscaled sprites
Post by: SupSuper on November 13, 2015, 01:32:57 am
Looks like Waifu2x (https://waifu2x.udp.jp/).

You can't import upscaled sprites into OpenXcom though.
Title: Re: External upscaled sprites
Post by: Dioxine on November 13, 2015, 08:51:43 am
I fail to see the purpose, there's already over a dozen various blur filters built-in into the OXCom, that do the exact same thing on-the-fly... Maybe if someone made *actual* hi-res gfx, but that's an insane amount of work :)
Title: Re: External upscaled sprites
Post by: ncuxonaT on November 13, 2015, 06:36:13 pm
That's right, it is Waifu. Usually Waifu gives better result than built-in blur filters. Here's comparison Waifu vs xBR:
(https://dl.dropboxusercontent.com/u/107372210/openxcom/xcom_0_rotation_comparison.gif)(https://dl.dropboxusercontent.com/u/107372210/openxcom/ethereal_rotation_comparison.gif)(https://dl.dropboxusercontent.com/u/107372210/openxcom/zombie_rotation_comparison.gif)
Title: Re: External upscaled sprites
Post by: Warboy1982 on November 13, 2015, 07:32:13 pm
well the good news is that replacing sprites is easy, the bad news is unless it can be turned into a real-time filter, you'd have to make a fairly extensive rewrite to the graphics core to support externally upscaled sprites.
Title: Re: External upscaled sprites
Post by: ncuxonaT on March 29, 2016, 09:43:12 pm
Sharp
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/bigobs.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/ethereal_rotation.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/sectoid_rotation.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/xc0_rotation_sharp.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/xcom_1_rotation.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/xcom_2_rotation.png)
(https://dl.dropboxusercontent.com/u/107372210/openxcom/sharp/zombie_rotation.png)
Title: Re: External upscaled sprites
Post by: Dioxine on April 01, 2016, 10:24:20 am
Still looks krappy, but at least it's noticeably better than any in-game blur filter now.