For rendering lens distorted images, I installed POV-Ray 3.6.1 and then apply the patch provided by Clemens Rabe.
- building environment
sudo apt-get install build-essentials
- supporting libraries
The following supporting libraries are needed. In case missing or older version, the configure script link the libraries provided in POV-Ray.
- source code
For my case, official file, povlinux-3.6.1.tar.bz2, didn’t work. Search povray-3.6.1.tar.bz2 and uncompress it.
tar xfj povray-3.6.1.tar.bz2
Download from Clemens Rabe’s website and apply patch. The following command is called from a directory that contains a directory /povray-3.6.1/ and the patch file.
patch -p0 < ./povray-3.6.1_LenseDistortion.patch
/configure COMPILED_BY=”your name <email@address>”
sudo make install
phew… installation seems to be completed. For quick check, I rendered a sphere with black background. Tomorrow, I will check the lens distortion effect!!