← Back

ofxGpuLutCube

github.com/moebiussurfing/ofxGpuLutCube · @moebiussurfing
OF 0.11 Graphics Shaders Video/Camera

openFrameworks addon to apply LUT filters live from standard .cube files using a GPU shader.

13 0 Last commit 4y ago Created 6y ago

README

ofxGpuLutCube



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/

Screenshots



Alt text Alt text Alt text Alt text Alt text

Usage



ofApp.h

#include "ofxGpuLutCube.h"

ofxGpuLutCube GpuLutCube;

ofApp.cpp

//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();


Features



Tested system



  • OF 0.11
  • Visual Studio 2017


About



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

TODO:



PLEASE FEEL FREE TO ADD MODIFICATIONS/ISSUES/FEATURES AND TO SEND ME PULL REQUESTS

License

MIT License.

Get this addon

HTTPS
SSH