Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Working on shaders.. how would you accomplish this effect?
Post Body

Here is the effect. We want cubes that are in the foreground to be out of focus and grainy (bottom right big blob). Also, random graininess seem undesirable so a fixed graininess is preferable. All other cubes should be in focus. I do have a DOF shader working but this is more than just DOF.

I have got a very nice Gaussian blur which covers most of it. But my noise shader is less than perfect since getting the distance params aren't perfect (adding noise seems to affect the entire scene). I am using the IrrLicht engine, but I'm not sure that's relevant. I am writing hlsl shaders. So far I have been sticking to pixel shaders but I am not sure that this is possible using a shader only.

So this is what I know I have. There may other resources that I have or could easily make. A distance buffer normalizing values at the camera to 0 and infinity to 1. A noise texture. A Scene buffer. A Blurred buffer (downsampled and Gaussian blurred).

Suggestions?

Author
Account Strength
100%
Account Age
16 years
Verified Email
Yes
Verified Flair
No
Total Karma
22,639
Link Karma
530
Comment Karma
22,051
Profile updated: 2 weeks ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
13 years ago