Jump to content
kiryha

Lens Distortion in COP

Recommended Posts

Can't wrap my head how to setup Deform COP and Deform Plane to replicate lens distortion. Any thoughts?
COP_lensDistort_01.thumb.PNG.f743c8c135ccbd4f08e065cc6c506712.PNG

Share this post


Link to post
Share on other sites

 

Hello, Mark!
I did not understand what you meant... There is no gradient mode in Deform COP. If you meant Gradient COP, it's not obvious how to leverage it as well.

Share this post


Link to post
Share on other sites

Yes, I use this option (and scale U, V = 1, 1), but get something that I can't understand how it's working to be able to build a proper deform plane.
At a high level, I see that Deform pushes each pixel along U and V according to deform plane values, but the result is not the same that I can expect to get from radial ramp.

COP_lensDistort_02.thumb.PNG.6b2bdb44bba150dff4784aafb0002f80.PNG

Share this post


Link to post
Share on other sites

I literally copy/pasted code from ldpk (classic model - described in section 2.4.3 of their pdf), so naturally credits goes to science-d-visions guys. 

VOP distorts C and A planes, but also exports distortion to uv plane which can be used in DeformCOP (see example). Untested, I might did something stupid. 

 

hth,

skk.

ldpk_classic_3de_mixed_distortion.hipnc

  • Like 1

Share this post


Link to post
Share on other sites

That's exactly what I was looking for, thanks, Szymon!

Is there a way to apply this distortion during rendering time (not in COPs), as a lens shader maybe?


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×