A little yeah - it works enough that you can see all the different kernel shapes that you get from actual lens designs (in the “Spot diagram” tab) but it needs a bunch more work to be useful as a plugin… it’s kinda slow and doesn’t have Z-depth input yet. I need to re-organise the UI code but once it’s less confusing I’ll put it on github and anyone else is welcome to help out ![]()
Looks great @lewis
Thanks for sharing. What have you written it in?
Holy cow! Will that also simulate lens flares, the caustic pattern suggests that you can utilize it somehow…
@lewis That’s so cool! It’s too early for Christmas…must be my birthday!!
that’s just why i’m here… i’m thinking why do i have to pixel spread my depth pass… i’m gonna go search that on logik
three years after you’re just relevant!!
Obviously the only relevant response is to stop making cat videos, or worse, cat movies…
Thanks all, that was an instructive found!
Heheheh Great idea!! I’ll start a petition!!
Hey, @johnt , I know it’s a long time ago - but do you still have the source material for this (renders and depth maps)?
Have you ever noticed that Autodesk Depth of field node clips values at 1?
If you’re talking about depth values then yes. It expects normalized values. There is a matchbox that ships with Flame called depth normalizer for this purpose.
you should really use my defocus node I made it works with real cameras and plug in the Z depth pass in metric and you can rack defocus and camera breathe . So far I am really pleased with it. It works on 27.2
@Ryland i actually mean the front - I plugged something in and the luma values over 1 were clipped. I thought it might have been a dodgy node but it kept happening so I ditched it. Tried something else.
@space_monkey billy I really want to. Really want to. However you just said it was made for flame 2027.2 so that scuppered that. I’ve built a couple of ones myself. One in matchbox and one OFX. Matchbox is ok (nowt special) and the OFX needs a bit more work. Matchbox attached in case anyone wants to play with it. The only thing going for it is that you can put a kernel in. Maybe it’s just the dodgy zdepth that makes me not like the matchbox. Feel free to play, finesse the vibe etc.
Polydefocus_v14.zip (23.9 KB)
what version of flame you running? you could try and download my version but some of the functionality would be limited since it relies on python hooks that aren’t available in earlier versions. The only two you would need is Defocus and Z depth then set it to metric. The defocus is all done in Lin and does the conversion in node so the highlights works correctly.
Just checked the DoF node in 2027.2 and it’s working fine with values over 1, for whatever that is worth.
Found the issue - zdepth passes must not be accidentally down rez’d to 8 bit.
the amount of times I find myself wondering why my color corrects aren’t working only to discover I’ve got an 8-bit image as the source is many. Haha.
@johnt Have you played with the OpenDefocus OFX at all?
Hi @kyleobley its on the list for sure! Thanks.