This is an example Unity (2017.3.1f1) project that uses Google's Fluence plugin to render lightfields.
This repository does not have all the required files to work. Here's how to get it working:
- Install Welcome to Light Fields on Steam.
- Navigate to the install folder.
- Copy
WTLF_Data/Plugins/fluence_plugin.dllto theAssets/Pluginsfolder of the project. - Copy any .lf files you want to use in
WTLF_Data/StreamingAssets/Lightfieldsto theAssets/StreamingAssets/Lightfieldsfolder in the project. - In the
example.unityscene, create an empty gameobject and add the FluenceLightfield component to it (or use the existing Beach Condo Lightfield gameobject in the scene). - Set the Lightfield Path to which lightfield you want rendered. Make sure to include the Lightfields folder. Example:
Lightfields/Lightfield.lf. - Press Play!
This project is not meant to be a fully functioning plugin for Fluence. It's only an example of how to get it working. It's expected you make changes to it where you need to.
