Pixelation

General => General Discussion => Topic started by: Helm on December 30, 2012, 06:34:15 pm

Title: Help me with the next Cluster Study
Post by: Helm on December 30, 2012, 06:34:15 pm
I need someone who understands graphics filters well and can help us apply an HLSL filter from MAME to single images we draw, possibly write a very simple drag and drop utility that will output a filtered file from a raw file that anyone can use. I do not need this to be fancy, it can be hardcoded to just one filter at specific specs (something like this http://mybroadband.co.za/vb/showthread.php/447311-Mame-HLSL-Effects-The-way-Arcade-games-used-to-look!?s=84d6dc2d9196f7fc793bbfd6f296c809) that we can use as a reference for learning purposes.

If none of this makes sense to you, carry on. If you can help, please post here. We might not even need a coder, just someone who knows how to apply the MAME filter at specific specs in photoshop or any other similar program.
Title: Re: Help me with the next Cluster Study
Post by: ptoing on December 30, 2012, 07:17:45 pm
I can give this a go tomorrow, or PPD could probably do something like this. One problem with CPS stuff is that the aspect ratio is super weird and to get it to the proper scale you need to scale it up quite huge.
Title: Re: Help me with the next Cluster Study
Post by: Helm on December 30, 2012, 07:18:55 pm
I am fine with scale-up, as crt monitors were not tiny either. A healthy 3x is fine for a CPS1 game I'm working with. Worst case scenario people will have to step away from their monitors a meter more or whatever.
Title: Re: Help me with the next Cluster Study
Post by: ptoing on December 30, 2012, 07:20:37 pm
3x is not enough if you want to have the actual pixel ratio. CPS is something like 12:9 pixelratio scaled to 4:3. to get the actual 4:3 look with clean pixels you need to go MASSIVE. I can do the math in a bit.
Title: Re: Help me with the next Cluster Study
Post by: PixelPiledriver on December 30, 2012, 08:36:17 pm
I had a look at the MAME shaders.
Translating them into Unity could work.
Importing images and messing with the shader data in the editor is easy and realtime.
I'll give it a try.
You should still pursue other solutions just in case it explodes on me.
Title: Re: Help me with the next Cluster Study
Post by: Helm on December 30, 2012, 09:04:14 pm
Excellent, excellent!
Title: Re: Help me with the next Cluster Study
Post by: tim on December 31, 2012, 04:23:33 am
Just in case, an excellent article about CRT simulation :
http://filthypants.blogspot.fr/2011/05/more-emulator-pixel-shaders-crt-updated.html
And a second one :
http://filthypants.blogspot.fr/2012/07/customizing-cgwgs-crt-pixel-shader.html

Also, an online shader tester :
http://themaister.net/xmlview/index.html

Hope it helps.