2xSaI and other filters

Discussion of tools and resources for game developers

Post » Sun May 03, 2009 4:16 pm

It would be nice then to see if someone can design a pixel shader to do it.

On that topic, is there any pixel shader that already is in construct that makes low res images look nicer and more smooth?
B
24
S
6
G
6
Posts: 255
Reputation: 3,649

Post » Sun May 03, 2009 4:19 pm

That'd be "crispify" effect.
B
6
S
3
G
6
Posts: 219
Reputation: 3,013

Post » Sun May 03, 2009 6:54 pm

I like how HQ2x looks but since it blends the edges of pixels with the background it is really only useful as a realtime filter.

Or you could just place all of your sprites on a black background... but that leaves them with a thick outline (which doesn't always look bad, depending on what style you're going for).
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Sun May 03, 2009 10:18 pm

These filters are run on source images to bump the resolution.

They're slow and they don't make sense if you've already scaled the source material (as neighboring pixels will change so will inferred slope), so it's not a good idea to implement them as a shader.

That said, they ARE a nice thing to have. Perhaps as an action? (duplicate frame/animation resolution with 2xSaI, etc) or better yet in the IDE?
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon May 04, 2009 12:08 am

As I said before, this would probably be fast implemented as a shader, but I haven't seen any shader implementations of this anywhere. Do they exist? There's no point doing it in software since transferring data between VRAM and system RAM for CPU drawing is really slow.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon May 04, 2009 7:48 am

Googling for 2xSai, shader and dx9 returned this very thread.

Anyway, if you omit dx9, you'll find some shader attempts on Pete's board, ngemu and dosbox sites. All require PS3.0, I am afraid, but I haven't checked thoroughly. Here is one, some might be PS2.0:
http://www.si-gamer.net/gulikoza/dosbox.html
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat May 16, 2009 4:18 am

[quote="Mipey":2kin3na3]Here is one, some might be PS2.0:
http://www.si-gamer.net/gulikoza/dosbox.html[/quote:2kin3na3]

Awww... I looked at the HQ2x file and apparently it requires vertex shaders.

Damn.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri Aug 07, 2009 6:42 pm

Okey, old thread, but i formatted my pc and lost the filters
and Hq2x and others cannot be download anymore because the page is down, does anyone have them stored?
D:

EDIT:
Forget it, already found them :P
B
2
G
3
Posts: 25
Reputation: 900

Previous

Return to Tools and Resources

Who is online

Users browsing this forum: 99Instances2Go and 1 guest