Scaling 2x beta 0.4 (source code)

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Scaling 2x beta 0.4 (source code)

Postby RaVeN-05 » Wed Nov 14, 2012 11:01 am

Last edited by RaVeN-05 on Fri Nov 13, 2015 7:07 am, edited 3 times in total.
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.3

Postby Blox » Wed Nov 14, 2012 11:33 am

I can't really get it to work, but it would be grand if you could make it accept input - and output the exact same file in the same location, except with "2x" after it. (Eg. Octosir.bmp turns into Octosir2x.bmp)
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Scaling 2x beta 0.3

Postby RaVeN-05 » Wed Nov 14, 2012 3:30 pm

oh sorry it need bmp 24 bit in same folder where sed2s.exe placed
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.3

Postby RaVeN-05 » Fri Jul 05, 2013 6:21 am

User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.3

Postby albiongeck » Fri Jul 05, 2013 9:43 am

Looks like a substantial improvement over the old version, nice and sharp. Will there be an option to convert to 8 bit, either as sprites or raw data?
Lots of other questions:
    what license are you eventually going to release it under?
    Also what language is it written in?
    Will it be open source?
    Will it support 8 bit input with palette as a separate file?
I did think of writing one of these myself but I could potentially see my project being bundled with this or recommending it as a download.
Last edited by albiongeck on Fri Jul 05, 2013 12:24 pm, edited 4 times in total.
albiongeck
 
Joined: 16 Mar 2012

Re: Scaling 2x beta 0.3

Postby Blox » Fri Jul 05, 2013 9:51 am

I like how the palettization artifacts are smoothed out, which is very nice for when you actually have to make up your own details afterwards.
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Scaling 2x beta 0.4

Postby RaVeN-05 » Mon Sep 23, 2013 7:02 am

Update!
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.4

Postby RaVeN-05 » Tue Sep 24, 2013 8:36 am

Also this work for textures not just for sprites.
Look at first post for download and examples.
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.4

Postby Blox » Tue Sep 24, 2013 3:06 pm

It's getting better, and at the moment it does provide a pretty good base to draw on;
Image
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Scaling 2x beta 0.4

Postby Blox » Tue Oct 08, 2013 5:42 am

Hm, why does it shift the hue of the image and leave blue/yellow artifacts?
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Scaling 2x beta 0.4

Postby RaVeN-05 » Tue Oct 08, 2013 5:57 am

I am sorry this is bug, still in my app, its happen on some sizes of image, if its non power of two, for example if image is 511x511 whis bug will happen.
When image is 512x512 or 512x256, 64x128 it should work good.
or expand in paint image to ceil size, like this if you have 279 expand it to 300, should work.
I know i need fix it.
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.4

Postby Blox » Tue Oct 08, 2013 6:03 am

The big problem is that it still happens on images that actually are a power of two (64x64).
(The images are intentionally hue-shifted so as to avoid the hue shifting post-scaling, but they still get the yellow/blue haloes.)
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Scaling 2x beta 0.4

Postby RaVeN-05 » Tue Oct 08, 2013 8:17 am

Well i am will fix it in next release, try also resave bmp with other editor

http://heretics-hexens.ucoz.com/temp/1.zip i am done it for you.

The reading algorithm of BMP incomplete
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.4

Postby RaVeN-05 » Fri Nov 13, 2015 7:06 am

i am releasing source code.
source code is ugly and there is many duplicates and other older versions, it need to be rewritten.
it will be awesome if my dream come to real to use it in realtime 2xscaler in gzdoom/zandronum/doomsday or/and other games.
http://heretics-hexens.ucoz.com/temp/img/sed2x-resed2x-v0.5-source-code.7z
the last versions in
.\itsteporg2\winapi\sed2x4\
.\itsteporg2\winapi\restorecolors-sed2x\
its written in cpp console application, no winapi a mess of directories while i am studying in Computer Academy "It Step".
there is some features targeting to 0.5 but incomplete, unfinished.
User avatar
RaVeN-05
Heretic's & HeXen's fan
 
Joined: 28 Dec 2009
Location: Ukraine

Re: Scaling 2x beta 0.4 (source code)

Postby Gez » Fri Nov 13, 2015 7:19 am

There's no licensing info, so the default assumption is "all rights reserved" meaning that pretty much nobody can legally do anything with it.

If you want it to be used in GZDoom, it should be under a compatible license, like LGPL or BSD three-point. If you're the sole author of the code, you can do that easily; if it's based on work by other people you'll need their agreement to change the licensing.
Gez
 
 
 
Joined: 06 Jul 2007

Next

Return to Editing (Archive)

Who is online

Users browsing this forum: Awario [RSS] and 4 guests