Hi all,
Is there a way to apply geometric distortion to the frame to be rendered?
Please help.
Thanks in advance.
Hi all,
Is there a way to apply geometric distortion to the frame to be rendered?
Please help.
Thanks in advance.
It sounds like what you’re looking for are image effects - effects applied to the rendered frame rather than to anything in the scene.
http://docs.unity3d.com/Documentation/Components/comp-ImageEffects.html
It’s absolutely possible to distort the image (for an example, see the fisheye effect). Only caveat is it’s a Unity Pro-only feature. If you’re willing to pay Unity (quite a bit of money) to use their product, then it’s pretty trivial ![]()
To Barrel Distortion you can use this script:
https://github.com/Wyris/Unity/tree/master/Barrel%20Distortion
Oh, thank you. I am using trial version at the moment, waiting for my company to pay for the license :) I think I'll be able to use the feature soon. Thanks for the tip!
– snake211I checked the page but it does not support my requirement. What I exactly need is distortion filters for lens correction purpose (barrel & pincushion). It seems that Unity3D does not have such filters, maybe yet.
– snake211@Snake211 - please don't post comments as an answer. Also, what Julien is suggesting is that Unity has a system for post-effects. The shaders and source code for this is part of the Pro package, so you could implement your own if something like the fisheye effect did not do what you need.
– Graham-Dunnett@snake211, Here's how you get the source code: http://docs.unity3d.com/Documentation/Manual/HOWTO-InstallStandardAssets.html
– Julien-Lynge