View unanswered posts | View active topics It is currently Tue Oct 22, 2019 8:25 am



Reply to topic  [ 17 posts ] 
New filter that can create smooth contour lines from pixels 
Author Message
Hero of Time
User avatar

Joined: Fri Jul 30, 2004 2:49 am
Posts: 2646
Location: In front of the monitor
Reply with quote
Post New filter that can create smooth contour lines from pixels
http://www.extremetech.com/article2/0,2 ... 811,00.asp

I initially thought it was like the HQ filters, but it looks a bit different and more complex.

_________________
Try out CCleaner and other free software at Piriform
Image


Wed May 25, 2011 10:05 am
Profile WWW
Zealot
User avatar

Joined: Sat Jul 02, 2005 2:01 am
Posts: 1076
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Looks neat but the link to their site is down, so I couldn't see the other samples. The one thing I didn't like is that while it preserved the specular highlights, some lighting details got muddled.

_________________
Maybe these people were born without that part of their brain that lets you try different things to see if they work better. --Retsupurae


Wed May 25, 2011 2:12 pm
Profile WWW
Trooper
User avatar

Joined: Fri Aug 18, 2006 2:45 pm
Posts: 515
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
i can't download the .pdf for more info,
single sample provided on that site, is somehow hq10x?


Wed May 25, 2011 2:47 pm
Profile
Official tech support dood

Joined: Wed Jan 25, 2006 7:57 am
Posts: 2087
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
stupid slashdot effect. waiting for the server to come back up.

_________________
Why yes, my shift key *IS* broken.


Wed May 25, 2011 5:36 pm
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Code:
<diminish>  http://easy-iphone-unlocking.com/download/pixel.pdf
...
<diminish>  as usual, algo sucks with smooth color transitions
<itsblah>   diminish: another problem i heard about with the algorithm is that it's really slow
<diminish>  slowness is much less of an issue
<itsblah>   i mean on the order of taking seconds to render each sprite listed on a modern computer
<itsblah>   kinda makes it not good for including as a scaler in an emulator

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Wed May 25, 2011 7:00 pm
Profile
Hero of Time
User avatar

Joined: Fri Jul 30, 2004 2:49 am
Posts: 2646
Location: In front of the monitor
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Quote:
There are many avenues for future work. Obviously, it would be nice to optimize the performance of the algorithm so that it can be applied in real-time in an emulator.

There's still a chance it'll end up in an emulator some day. I just don't like what it does to eyes, especially on the Mario example at the end. As another backup, I have it uploaded to my MediaFire.

_________________
Try out CCleaner and other free software at Piriform
Image


Wed May 25, 2011 7:29 pm
Profile WWW
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
You're talking about optimising something that takes several seconds for one -sprite- to make it process a potentially 512x478 image in mere milliseconds ?

Complexity being found in those angle cases, I'll assume time taken increases proportionally with surface (it's possible it increases in a power of surface, instead. pretty likely, at that).
Let's imagine 1 second for 16x16, that's a massive 224 seconds for a lowres 256x224 snes single frame. Dropping that to 6 milliseconds to have time to emulate and blit... you're looking at a 38000x speedup.


Yea, not happening. Not with that algo, at least.

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Wed May 25, 2011 11:21 pm
Profile
Zealot
User avatar

Joined: Wed Jul 28, 2004 3:31 am
Posts: 1140
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Yes, but the people at TASVideos probably wouldn't mind getting random people's hopes up by using it on encodes of tool assisted speed runs. So not only would they be showing videos of normally impossible gameplay, they would be showing video scaling that would normally be impossible for a bank of supercomputers to render in realtime.


Thu May 26, 2011 12:27 am
Profile WWW
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Sure, postprocess all you want. We were talking of integrating it in emus for use as a realtime filter.

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Thu May 26, 2011 6:50 pm
Profile
New Member

Joined: Mon May 09, 2011 4:13 pm
Posts: 8
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Jararaca/Hylian has a shader series (xBR) that looks reasonably close to this that actually runs in real-time - well, on a technical level it might not compare, but it sure looks roughly similar -

He made a lot of screenshots of it here and posted them there - keep in mind that the PS3 emulators limit him to 5x scale - so he can't exactly try it in 16x scale and compare it directly against this non real-time filter.

http://psx-scene.com/forums/f190/new-sh ... ead-85873/

Also - I'm willing to bet something like deferred shading (with either a DX11 GPU or the PS3 with its 6 SPUs) could achieve a filter like this - crossing fingers here. It's what the Battlefield 3 devs are currently doing - there is a detailed PowerPoint presentation about it here -

http://www.slideshare.net/DICEStudio/sp ... ystation-3


Sat May 28, 2011 3:03 am
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
This xBR 2.2 looks very hq3x-ish in concept. Can we get the (in)famous MMX2 ramp as a test case ? When the ramp is shot all the way down, the pattern are pretty hard to get right without grabbing a large amount of pixels around the current one and slowing down to molasses.

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Sat May 28, 2011 9:05 am
Profile
New Member

Joined: Mon May 09, 2011 4:13 pm
Posts: 8
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Not sure if this is the ramp you mean, but I made a 1080p picture - shader 1 (pass 1) is 5xBR v2.1, shader 2 (pass 2) is Scale2xPlus. Scale is 5x/4x.

https://lh4.googleusercontent.com/-Fx6p5vwtqDk/TeOeqXE34HI/AAAAAAAABUQ/I5iVDOtOl4U/s1600/SNES9x%252520PS3_38.png


Mon May 30, 2011 2:46 pm
Profile
Zealot
User avatar

Joined: Sat Jul 02, 2005 2:01 am
Posts: 1076
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
I don't really like how that looks. Best filter to me would be nearest up to the largest integer scale factor that fills the space, then blurry scale (linear is probably good enough, but if something can be done for colors that don't blend well (red to green turning brown, instead of yellow) then that'd be good.) the rest of the way. You keep blocky pixels, but you don't get weird unevenly scaled pixels, which is especially bad with systems with oddly shaped pixels, like the SNES.

_________________
Maybe these people were born without that part of their brain that lets you try different things to see if they work better. --Retsupurae


Mon May 30, 2011 2:52 pm
Profile WWW
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
Squarepusher wrote:
Not sure if this is the ramp you mean

It is, and it suffers the same problem as hq*x. Short range scans cannot see the low-angle slope and break it up in jagged parts.

Also, the various edge artefacts look -really- close to hq*x (check the X under the hp gauge). I'm pretty sure that guy just reinvented a large amount of wheel.
Not to say it's useless, especially if it can scale to more than 4x (but then, iirc some doods have also already made a hqNx with shaders).

Oh well ^^;

Anyway to try with 2.2 ?

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Mon May 30, 2011 11:07 pm
Profile
Veteran
User avatar

Joined: Thu Jul 29, 2004 3:56 am
Posts: 844
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
The same happens with Jararaca's XBR shaders with the ramp in MMX2.

_________________
Yes I know that my grammar sucks!


Sun Jun 19, 2011 1:40 am
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5615
Location: PAL50, dood !
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
You'll save a lot of time by reporting stuff that does not behave like this instead, dood. :p

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Mon Jun 20, 2011 6:16 pm
Profile
Veteran
User avatar

Joined: Thu Jul 29, 2004 3:56 am
Posts: 844
Reply with quote
Post Re: New filter that can create smooth contour lines from pix
LOL I don't think that day will come before we get real old and cranky. I think this will be as far as shaders/filters can go...

_________________
Yes I know that my grammar sucks!


Tue Jun 21, 2011 12:27 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.