openFrameworks addon to apply LUT filters live from standard .cube files using a GPU shader.
MIT License
openFrameworks addon to apply LUT (Color Lookup Table) filters
with a GPU shader using standard .cube
files. (sizes 16, 32, 64)
All process is done live and fast into the GPU
It's faster than other alternatives that use the CPU.
(like the bundled openFrameworks\examples\graphics\lutFilterExample
)
Inspired from:
https://github.com/yasuhirohoshino/ofxGpuLut
that does the almost same GPU process but with special .png
files.
An useful Windows-only free app to batch convert and create LUT files: https://grossgrade.com/
#include "ofxGpuLutCube.h"
ofxGpuLutCube GpuLutCube;
//setup()
GpuLutCube.setup();
//update() or draw()
GpuLutCube.begin();
{
//draw and feed your scene here
}
GpuLutCube.end();
//draw()
GpuLutCube.draw();
//gui
GpuLutCube.drawGui();
//help
GpuLutCube.drawHelp();
//helper methods
GpuLutCube.loadNext();
GpuLutCube.loadPrevious();
GpuLutCube.loadLut(int i);
GpuLutCube.loadRandomize();
ofApp
with an ofParameterGroup
and an ofxGui
panelLUT index
.LUT name
./data/
files (291 .cube
files + shader files).(Remember to include /data
files!)Addon modifications by MoebiusSurfing https://github.com/moebiussurfing
Based on and using the code of HUBRIS: https://github.com/youandhubris/GPU-LUT-OpenFrameworks https://forum.openframeworks.cc/t/gpu-lut-photoshop/18070
BY HUBRIS [http://cargocollective.com/hubris] [http://github.com/youandhubris]
THANKS to @johanjohan: https://github.com/johanjohan to point me to this source here: https://github.com/yasuhirohoshino/ofxGpuLut/issues/3
pow2 snippet from @johanjohan.
THANKS to: https://github.com/yasuhirohoshino for the original https://github.com/yasuhirohoshino/ofxGpuLut
.cube
files browser system and thumbs maybe with ofxImGui
.PLEASE FEEL FREE TO ADD MODIFICATIONS/ISSUES/FEATURES AND TO SEND ME PULL REQUESTS
MIT License.