Do we need/ want a better lens distortion workflow in flame?

@cnoellert @AdamArcher
What is mocha doing to solve the distortion?

Is it using the track that it does or does it need the lens grid?

We are now relying almost entirely on 3DE camera solves from outside vendors. Hence my frustration and limited ability to change the delivery.

Having a better understanding of the lens grid tool and the 3DE node in Nuke hasn’t changed the fact that Flame has to jump hoops :small_red_triangle: to protect all of the pixels.

I’ll check my OFX plug-in as this says it is only available in the standalone to export a stmap. Though you could possibly undistort in one Mocha Pro node then redistort in another but not sure if you can resize the image so you don’t drop off the undistorted bits as I have not tested it.

https://www.google.com.au/search?q=lens+distortion+in+mocha+pro&client=safari&hl=en-au&ei=YahSZIKuEdrChwOsv4j4BA&oq=lens+distin+mocha+pro&gs_lcp=ChNtb2JpbGUtZ3dzLXdpei1zZXJwEAEYADIKCCEQoAEQwwQQCjoICAAQogQQsAM6BQgAEKIEOgYIABAHEB46CAgAEAcQHhAPOgYIABAIEB46CAghEKABEMMESgQIQRgBUIkYWPxBYOVNaABwAHgAgAG7AYgBmSKSAQQwLjI4mAEAoAEByAEEwAEB&sclient=mobile-gws-wiz-serp#kpvalbx=_mahSZLKNKoPAhwPkqJXQCw_39

Watch the video on my link above. Mocha has a lens menu and you can either auto calculate it or draw lines.

As mentioned earlier, I’ve never used it myself as I’ve had Nuke available and know how to do it in that but this looks usable or worth testing at the very least.

1 Like

I also believe Syntheyes can create stmaps as well. I don’t have that myself right now but it would be a very cost effective solution if it works.

Syntheyes can indeed calculate distortion and write out STMaps

2 Likes

I still think Flame should be able to do this natively.

4 Likes

100% agree there!

1 Like

I threw together a quick archive of your lens grid undistorted in Mocha, output the STMAPS and setup a batch with all three as inputs. Mocha has these two STMAP output types, minimum and equal. I’ve used minimum in the past but I included both in the batch and showed where equal fails. Had I been doing this for real I might have spent a little more time carefully choosing my lines for the calibration but I kinda just blazed through. I included the mocha file for you to dissect as well.

All of that can be found here →

https://www.dropbox.com/s/sfm6t5068c61obz/lensDistortMocha.zip?dl=0

4 Likes

Terrific. Thank you, Chris.

1 Like

So, you can undistort and redistort via the plugin’s various render mode outputs but, it’s internally using the equivalent of the “equal size” STMAP output that will crop the input image so it’s a non-starter. Better to go through stand-alone and use the “minimum size” STMAP output and avoid heartache.

Yep, this is the way.

1 Like

Late to the party, but ST maps and DasGrain are the two main reasons we have to go into Nuke during comp. Someone has done a feature request for ST maps, I’d encourage everyone to give it an upvote on the Autodesk website

https://feedback.autodesk.com/project/feedback/view.html?cap=5afe6c845cb3447ab36ccbd7f0688f84&uf=72945c1628534611a04cdc64a20e4fcc

3 Likes

upvoted!

1 Like

Upvoted

1 Like