pouët.net

Bokeh DOF

category: code [glöplog]
+10scenepoints to las
added on the 2011-08-20 13:00:12 by ferris ferris
las: thanks for sharing, the bokeh idea kicks ass!
added on the 2011-08-20 19:06:36 by kbi kbi
Any idea on how to do that blur on an half res buffer?
added on the 2011-08-21 03:09:45 by xernobyl xernobyl
I've finally implemented it, and I have to say it's great. Looks awesome and it's fast enough.
added on the 2011-08-30 02:46:07 by xernobyl xernobyl
Screenshot or video capture please. :)
added on the 2011-08-30 05:56:58 by Zavie Zavie
-20 scenepoints for las, since we've already implemented this, and now everyone will. ;)
added on the 2011-08-30 11:12:28 by gloom gloom
Pic or didn't happen!
added on the 2011-08-30 11:25:55 by kbi kbi
We don't do pics - we do demos ;)
added on the 2011-08-30 11:37:34 by gloom gloom
Now now, Gloom. It's "first to release", not "first to implement". In other words, we need to hurry the fuck up.
added on the 2011-08-30 11:56:26 by kusma kusma
That you do ;)
added on the 2011-08-30 12:56:33 by ferris ferris
Zavie: What gloom said. And my code colored test scene doesn't really help the effect. Look at the screenshots in the presentation. It's the same thing with bad art.
added on the 2011-08-30 16:55:47 by xernobyl xernobyl
I hope you mean the test scene and not the demo :D
added on the 2011-08-30 17:22:29 by psonice psonice
The test scene, yes.
added on the 2011-08-30 18:12:20 by xernobyl xernobyl
We are on it too. It's awesome.
added on the 2011-08-30 22:59:57 by las las
It's a trap, 403.
added on the 2011-09-01 08:07:44 by kbi kbi
added on the 2011-09-02 22:43:22 by raer raer
slightly better
Impressive what 4 motion blurs do.
added on the 2011-09-06 21:58:38 by xernobyl xernobyl
very nice!
added on the 2011-09-06 23:04:42 by booster booster
xernobyl: nice! Still a few things wrong I think, but it's one of the nicest looking bokeh effects I've seen.

Couple of suggestions: 1. Have a range of z values where it's 'in focus', looks like it's just a fixed distance now - which means almost nothing is in focus, which is kind of nasty :D 2. Both light and dark parts are getting the bokeh effect. The light should have it, the dark shouldn't (or at least the light parts should overlay the dark parts, rather than mixing maybe). Can't remember how this is implemented so no idea how this can be achieved :)
added on the 2011-09-07 00:29:34 by psonice psonice
psonice: I don't get what you mean. Light behaves equally despite of it's intensity, as in all light blurs the same. The major problems it has on that video is mixing the low res and high res buffers, the bad coder art (everything is gray), and most the most important one: the bleeding.
added on the 2011-09-07 00:55:23 by xernobyl xernobyl
Light behaves the same, but black means no light, nothing to blur ;) Put it another way: light is additive. Black is 0, adding 0 to something doesn't change it. White on the other hand is 1. If you have white next to black, the white spreads into the black because there is something to add, but the black can't spread because there isn't any light to spread around.

If you look at the example photos showing bokeh, you see lots of white circles where there is a light/bright area, but never a black circle where there's a shadow, no?

I don't know, maybe what you have there is correct, but it looked like the blacks were behaving in the same way as the whites now and then. Do more tests, and look at lots of bokeh pictures (or play with an SLR if you have one), see if it works right.
added on the 2011-09-07 01:07:46 by psonice psonice
psonice. that's wrong. if you have a camera get a piece of white paper make a hole in the middle and take a photo (out of focus). You'll get a black circle. I'll try it now just to confirm.
added on the 2011-09-07 01:12:13 by xernobyl xernobyl
Or not... no battery.
added on the 2011-09-07 01:13:53 by xernobyl xernobyl
BB Image
added on the 2011-09-07 03:08:39 by xernobyl xernobyl

login