Depth Of Field in Jitter

bareimage's icon

Hello, is this possible to achieve DOF effect in Jitter Open GL. I am looking for implementation that is fast for real time interactive presentation. Thanks a million

Pedro Santos's icon
bareimage's icon

Pedro, thank you! Your implementation of DOF is excellent! I am getting speeds of up to 45fps with real time animation. Thank you.

Jack Waldron's icon

Did you manage to get this working with video? Trying to create depth of field within a live video feed.

Pedro Santos's icon

That would be feasible but you would need to build or obtain some sort of depth mask...

Jack Waldron's icon

Okay, thanks for the feed back. I'll look into it

Jack Waldron's icon

Do have any advise on how I would go about doing this? I have never really done this kind of thing before.

MakePatchesNotWar's icon

What he is saying is that you cant create depth out of a 2d image. Without acces to depth information your only bet is to emulate it with a mask as Pedro suggests or use a kinect or similar device for the live feed...

MakePatchesNotWar's icon

Never mind, apparently it is possible...

wow mind blown...

https://www.youtube.com/watch?v=9BOdng9MpzU
https://www.youtube.com/watch?v=JtK4cTLlUko

Herr Markant's icon

If someone is interrested, i made a fake DOF for 2d video some days ago.

Max Patch
Copy patch and select New From Clipboard in Max.

aceslowman's icon

I am currently having some issues with Pedros example for DOF. It is *beautiful* when running on my Macbook, but on my Windows machine, the op.absdiff.jxs shader seems to be outputting something different... I'm curious if anyone has some guidance for getting this patch to run properly on both machines. Below are some reference images taken from identical patches on startup.

DOF on MacOS (Integrated Intel HD 4000)

DOF on Windows (NVIDIA GeForce GTX 1070)