UVwarp 32 | Lossless lens-distortion

Hi Guys,

My image is losing a lot of details once Undistort my plates using UVwrap32. I created the UV in Nuke 32 bits. Actually I’ve been using this workflow for a long time but I’ve never felt this weird loss of detail. Maybe it has always happened and I realised it just now. I am working on 6K images now.

I find Lens distortion a pain in the ass. Is there any lossless lens-distortion workflow around the market that can help me??

Thank you guys and have a nice week ahead,

1 Like

At the moment, I could be wrong, but I think you’re always going get some softening from the undistort round trip. That said, I have found action to get slightly better results than the matchbox. Also Nuke, as you probably my know, has different filters that might get a different result that works better. And doing resizes in log can avoid those horrible little negative pixels that get introduced by certain filters.

Also check this out. If it’s the @cnoellert setup I’m thinking of it’s pretty foolproof.

2 Likes

Undistorting a plate and then redistorting has and will likely continue to always add softening. Try to distort the CG instead of undistort the live action.

2 Likes

Thank you Randy…

1 Like

Cool John. Thank you man. Got your archive here.

yes every filter hit is “bad”.

The correct way to work with lensdistortion is to keep the original plate and instead of undistorting, adding distortion to all elements/cgrender instead - this is however a more cumbersome way.

I have made some pipeline tools that would distort 3D renders right after they have been rendered on the farm to simplify this workflow a bit (using nuke and UVmaps).

but yea, thats the way I would go but then chances are you dont have time and renderpower for X amount if lensdistortion nodes all over the place for all the elements and actions and stuff, even in nuke this is pretty confusing.

A little hack/workaround goes the following:

-undistort/denoise plate
-do your work
-redistort/renoise

  • difference original plate over comp result

  • use difference result(use histogram or somethint to greate a nice matte) as a matte to merge comp over original plate. Or if you keep it in mind getting a clean matte for all the things you have changed/added should be possible, just keep a second matte pipe around where you just keep
    merging all the alphas.

  • now most of the image should be original plate only the elements you changed will have a filter hit, so most likely stuff you have added like 3D renders so that doesnt really matter(as we usually have to blur the cg renders anyhow to fit the blurry lenses…).

does that make sense , I hope it does :slight_smile: I had to really become good at not touching the plate where I wasnt supposed to due to clients rejecting stuff with filter hits…

3 Likes

If you happen to be using 3d Equalizer for tracking, then it can export a matchbox shader for flame that handles the un-distort, re-distort as nodes. Still will have some softening… but very little. It’s by far the best workflow I’ve used in Flame for this. UV’s and StMaps are a pain in the ass, I agree.

5 Likes

I am still waiting for someone to give me one of these.

Hope you and the family are well @justinbromley

1 Like

@PlaceYourBetts yep all good thanks. You allowed to get a take away coffee yet?

1 Like

Midnight tonight :wink:

Just a FYI for anyone who has never used it, you need to load the batch setup, not just the matchbox. The batch setup will include the nodes to pad the image along with the correct values for the distortion/un-distortion node. Made that mistake before and was wondering why nothing was working.

Makes total sense in retrospect but I thought I’d share to save anyone else that moment of confusion.

3 Likes

Yes it does require the inevitable 3 rounds of trial and error with the 3d tracking artist. Also can fuck with your brain if the plates used for tracking are not the same (as in aspect ratio) as the plates you grabbed into your system… ah the joys…

But once working… it’s a good thing.

That sounds like a great workflow. I’m going to need a bunch of camera tracks over the next few weeks, and I’ve asked my vendor if they could supply a matchbox shader & batch setup, but they had no idea what I was talking about. Where can I find more info on this or is there a button or plugin I can point them to?
Thanks!

Nevermind. Found it here:

3 Likes