Diversions
 Pixel Joint Forum : The Lounge : Diversions
Message Icon Topic: Auto-Dither Post-Process Shader Post Reply Post New Topic
Author Message
Bcadren
Commander
Commander
Avatar

Joined: 07 June 2013
Online Status: Offline
Posts: 53
Quote Bcadren Replybullet Topic: Auto-Dither Post-Process Shader
    Posted: 08 June 2013 at 6:00am
I'm working on a color limiting auto-dither post-process shader for the Unity game engine. My original intention was to make it create NES Colored images; though thus far that has proven too expensive to do live (it could auto-perform postprocess for video but the algorithm as I wrote it was too inefficient for live for game.) I have completed it two color modes and three variation modes. Black and White (literally a two colored shader) and Spartan (red, blue, green and black); named after this piece which gave me the idea. The variation modes being noise/static, rotational and scanline.

Based on this still (or actually the 3D model that produces the still using a normal shader):



Spartan Scanline Mode

Showing only that preview so far because I think it's the most impressive of the modes I've completed (static and rotational modes are too chaotic for anything other than video art). The number n the middle is the current scanline width, which can be any value desired. Love some thoughts on it. Advice about how to get more colors into the dithering equations without killing my system or thoughts on how to make it more 'sprite like'; as that's really the intention make 3D art look like sprite art during use (and able to do all calculations live so that it could display a 3D game this way); similar to how a toon shader makes the shadows in a game look more cartoony or the shaders used in paper man made the 3D art almost look handdrawn. Also on a more complex object:



Edited by Bcadren - 09 June 2013 at 11:06pm
IP IP Logged
surt
Commander
Commander
Avatar

Joined: 30 December 2015
Online Status: Offline
Posts: 413
Quote surt Replybullet Posted: 08 June 2013 at 6:43am
Originally posted by Bcadren

My original intention was to make it create NES Colored images; though thus far that has proven too expensive to do live
Unless I'm misunderstanding you, shouldn't it be trivial to pre-compute all the grunt work (source colour to destination dither pattern and colours) and dump it into a LUT? Then it should cost just about nothing extra to draw.

For more pixeliness I'd probably precede this with some threshold/posterize or use a toon shader, then pixel sharp outlines.

Edited by surt - 08 June 2013 at 6:43am
IP IP Logged
Bcadren
Commander
Commander
Avatar

Joined: 07 June 2013
Online Status: Offline
Posts: 53
Quote Bcadren Replybullet Posted: 08 June 2013 at 7:32am
I don't think Unity LUT's can do dithering...can try though I'm not actually sure how to make the lookup textures it uses. And simply reducing the palette does posterize quite a bit; to do more I'd either have to edit default toon shader or write my own posterization effect. Pixel outlining is probably a good idea though I'm not exactly sure how to code that in I know the Toonshader pencil-like outline uses mesh interface code to extrude it off the mesh. Btw; JUST pairing it down to NES colors does this: (left = original; middle = 254x240 (NES resolution); right = NES Colors). Apologies for the anti-aliasing; it's the image host and I already deleted the original.

IP IP Logged
personalgame
Seaman
Seaman


Joined: 10 June 2013
Online Status: Offline
Posts: 1
Quote personalgame Replybullet Posted: 10 July 2013 at 11:26pm

Because this will protect your benefit if you want to get a refund when there is something unexpected happened in the process of trading Diablo 3 gold. While a scam site will ask you transfer cash directly. Absolutely, anyone who wants to buy Diablo 3 wil stat regarding Living take, and you may get the value is significantly below with all the stat regarding Living take. This kind of gun under I obtained that of them costing only 10 thousand buy diablo 3 gold not too long ago. That is fantastic about my own Monk. more about Buy D3 Gold at http://www.diablo4shop.com/

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum