kiryha Posted November 29, 2018 Share Posted November 29, 2018 Can't wrap my head how to setup Deform COP and Deform Plane to replicate lens distortion. Any thoughts? Quote Link to comment Share on other sites More sharing options...
malexander Posted November 29, 2018 Share Posted November 29, 2018 Try "Gradient" mode. It's a lot more forgiving. Quote Link to comment Share on other sites More sharing options...
kiryha Posted November 30, 2018 Author Share Posted November 30, 2018 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. Quote Link to comment Share on other sites More sharing options...
malexander Posted November 30, 2018 Share Posted November 30, 2018 Deform parameter: Shift by UV Gradient. Quote Link to comment Share on other sites More sharing options...
kiryha Posted November 30, 2018 Author Share Posted November 30, 2018 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. Quote Link to comment Share on other sites More sharing options...
symek Posted December 1, 2018 Share Posted December 1, 2018 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 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted December 4, 2018 Author Share Posted December 4, 2018 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? Quote Link to comment Share on other sites More sharing options...
Nicholas Ralabate Posted April 6, 2019 Share Posted April 6, 2019 Yeah! This company sells such a shader for Mantra: https://www.keller.io/houldpk/ And here is an example on writing your own lens shaders: http://mattebb.com/blog/weblog/houdini-fisheye-camera/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.