Death Egg's HD Sprite Project

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Re: Death Egg's HD Sprite Project

Postby Hyllian » Sun Mar 24, 2013 8:20 pm

Sp00kyFox wrote:hey hillian,
just wanted to ask if you're still looking into it. I guess an interpolated pixel of the result image is a weighted sum of colors of the original in your algorithm.
can't you just check if one of the components is transparent and then set the result to transparent?
the other idea would be to remove the transparent term in the sum and rescale the weights so that it only consists of non-transparent colors.


Hi. I've got mixed results for now. Here's a tentative:

https://anonfiles.com/file/968ace51f06f ... 7304996b03

It works like this: first convert your png file to 32bits. Choose the color to have alpha (any value different of 255). The rest of the sprite must have alpha = 255.

In this zip I made three execs: 2xBR-t, 4xBR-t and 2xBRh-v2-t. It doesn't touch transparencies, though they're not so accurate as the 3xBR I've used.

Usage:
2xBR-t <input 32bit png> <output png>
4xBR-t <input 32bit png> <output png>
2xBRh-v2-t <input 32bit png> <output png>

Now you don't need the 2 12 args.
Sorry, I hadn't time to make only one exec. So, there's one exec for each filter.
PS: I didn't have time to make a hybrid-v1 version yet.
Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Sun Mar 24, 2013 9:19 pm

thanks, this modification will definitely help.
test result looks good so far.

Image

I'm gonna make a new sprite package tomorrow.
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Death Egg » Sun Mar 24, 2013 9:22 pm

Oh, yeah, that does look a lot better.
User avatar
Death Egg
 
Joined: 14 Aug 2012

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Sun Mar 24, 2013 11:25 pm

@Hyllian
ok I took a closer look now at the scaled images (2xBRh-v2-t) and found here and there a few issues.
for the most part the transparency color is ignored but sometimes there is a little pixel which seems to be still affected by it.
see the following images, where I replaced RGB(0,255,255) with RGB(255,0,255) to make the problem visible (you probably have to zoom in):

Image Image

the two (not quite RGB-perfect) cyan pixels under the hell barons arm, the few ones between the archvile fingers and the green pixel at the left side of its hips.

here are the ones I used with transparency:
Image Image
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Hyllian » Mon Mar 25, 2013 4:53 am

Ok, that's a known issue. Try this fix to see if no other collateral effects happen:

https://anonfiles.com/file/3e3d59fe5e7a ... 65a751f77b

Screenshot:
Spoiler:
Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Mon Mar 25, 2013 10:00 am

hmm it seems worse. many more sprites have the problem now where before there were fine.
not gonna post new examples. to verify it, the archvile still has the green pixel at its hips (the ones between his fingers are gone though).

well I don't have the source, but could you explain why it is not trivial to fix (don't have to do in detail)? like I said, I thought one could just check if one of the terms in the weighted sums is transparent and just set the result to transparent or set the corresponding weight to 0 and rescale the others. on the other hand I'm just talking out of my ass without fully understanding the cg shader code in the first place.

in the worst case I have to go through all the sprites manually and fix the pixels, but it's still way better than the non transparent xBRh version.
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Hyllian » Mon Mar 25, 2013 10:44 am

The problem is: in the hybrid, I have to swap between algorithms (ReverseAA/xBR) depending on certain conditions. To filter a pixel using ReverseAA, the algorithm needs to "look" a region of radius 2 pixels, that is, all pixels in the image borders (distant a max of 2 pixels from there) only can be filtered by xBR, otherwise the transparent pixels (beyond image borders) will influence the result of ReverseAA (for example, those green shades of some examples posted in this thread).

I'm having problems in regions like fingers and small transparent spots or places where the width is smaller than 3 pixels, as you showed in your examples.

I need to think more about it tonight after work.

EDIT: it seems the same problems happen to the pure xBR-t versions...

EDIT: I know where's the problem. I'll fix it tonight, I hope so...
Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Hyllian » Mon Mar 25, 2013 3:17 pm

Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Mon Mar 25, 2013 6:07 pm

it's an improvement, not so many sprites with issues as before.
just wanna say that I appreciate you work and at this stadium there is still a manual correction necessary but it's not too much work.
I'm feelin kinda guilty that you're spending so much time on it ;)

if you still wanna look into it though, here are some pictures:

scaled:
Image Image
originals:
Image Image

the line of red pixels at the left side of the torsor from the baron.
the green pixel at the right side of the chaingunners head.
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Hyllian » Mon Mar 25, 2013 6:57 pm

This problem doesn't happen with this source: http://spriters-resource.com/pc_compute ... heet/27869

Scaled:
Image
Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Mon Mar 25, 2013 7:15 pm

hmm that is weird, I'm gonna check my work flow and report in later.
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Blox » Mon Mar 25, 2013 7:19 pm

What's happening on that sprite sheet?
Whatever it is, it's performing worse than bicubic restricted to the doom palette:
Spoiler:

And certainly much worse than just vanilla XBR.
Spoiler:
User avatar
Blox
I am Laziness Incarnate!
 
Joined: 22 Sep 2010
Location: Apathetic Limbo

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Tue Mar 26, 2013 1:53 am

@hyllian
nothing wrong with my workflow, it seems that the sprites from this site were poorly ripped.
I ripped it from the latest version of the doom2.wad and zoomed in to compare mine with the one from this site:

Spoiler:


@Blox
can't agree with you on that. bicubic is too blurry for pixelart upscaling and xBR has the same problem with fine shades like hqNX. it flattens those areas too much.
try and play for example mortal kombat or donkey kong country with xBR or hqNx, it's terrible. xBR-hybrid on the other hand seems like the real deal with good sharpness
while keeping the detail and shades of the original pixelart intact.
here I took two sprites (scaled and converted to doom palette) I think are good examples why xBRh is superior. well you can't go wrong with a cybies ass. guess the scalers:

Spoiler:
User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

Re: Death Egg's HD Sprite Project

Postby Hyllian » Tue Mar 26, 2013 5:04 am

Sp00kyFox wrote:@hyllian
nothing wrong with my workflow, it seems that the sprites from this site were poorly ripped.
I ripped it from the latest version of the doom2.wad and zoomed in to compare mine with the one from this site:

Ok, I`m not an expert in sprites, so I need to use some of your samples to fix bugs.

I'll look into that issue tonight.
Hyllian
 
Joined: 19 Mar 2013
Location: Brazil

Re: Death Egg's HD Sprite Project

Postby Sp00kyFox » Tue Mar 26, 2013 11:18 am

User avatar
Sp00kyFox
 
Joined: 19 Mar 2013

PreviousNext

Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 2 guests