This shader will undistort and redistort footage according to the Syntheyes model. It's called SyLens after it's more powerful cousin, SyLens for Nuke.
Download and unpack the repository, then open a Terminal and cd into the directory where you have unpacked it. From there, run the installer shell script:
Since the matchbox directories are protected from non-admin users by default, copying will be done as sudo - so either run the installer as root or be ready to enter your password. On the Mac, your main user will be a sudoer by default. On Linux, your Flame/Smoke user will likely NOT be a sudoer so you will have to run the installer as root.
The installer script will copy the shader into all of the versions of the software that support Matchbox shaders. Once you grab a fresh Matchbox node the SyLens shader icon will show up in your Matchbox shaders list.
You will need to rerun the installer everytime you install an update for your IFFS applications (since every new install
creates a new
Dealing with overscan when removing distortion
On the right of the matchbox UI you have the Input size parameters. Set them manually to the pixel dimensions of the plate you feed to the shader. It's supposed to be autodetected but due to a nasty bug in the software you have to enter it by hand.
When you are undistorting images it sometimes produces oversize images. By default the overflow pixels will be simply cropped away, however if you expand the Canvas Resolution of your shader, you will see that the output will still be centered in your canvas. So, to recover the overflow pixels, expand your output until all the pixels are covered.
Remember that the undistorted plate will always have the same aspect ratio as the original.
Dealing with overscan when applying distortion
On the right of the matchbox UI you have the Input size parameters. Set them manually to the pixel dimensions of the plate you feed to the shader. It's supposed to be autodetected but due to a nasty bug in the software you have to enter it by hand. Feed the shader an oversize plate as input and simply reduce your Canvas Resolution in the settings. The shader will compute all the needed parameters and your output will match the distorted source.
Use in setups
Do not worry about always using the latest version of the shader - the shader you use will actually be copied to your setup so there is no problem versioning it.
Copyright (c) 2012 Julik Tarkhanov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.