cameramanben / LUTCalc

Web App for generating 1D and 3D Lookup Tables (LUTs) for video cameras that shoot log gammas.
http://www.lutcalc.net
GNU General Public License v2.0
246 stars 50 forks source link

Save LUTs as a texture #12

Open Daykod opened 5 years ago

Daykod commented 5 years ago

My use case is for color grading HDR games for OBS, but it might be nice for game devs using unreal engine or unity. They expect something like https://docs.unrealengine.com/portals/0/images/Engine/Rendering/PostProcessEffects/UsingLUTs/RGBTable16x1.png whereas OBS expects: original

Entropy512 commented 5 years ago

A viable workaround which I've used for Sony S-Log2 input to OBS is to take the OBS identity LUT texture and apply a cube LUT to it using ffmpeg's lut3d filters

In the long term I'm hoping to look into the feasibility of direct texture LUT export support as a level 16 Hald CLUT has much finer resolution (256x256x256 cube, or 4096x4096 texture) than any of the cube LUTs support. (I'm hoping to implement OpenCL Hald LUT support in ffmpeg in the next month or two.)

The OBS LUT format is different from the typical Hald CLUT, I'm not sure what the rationale for that was.

monokee commented 6 months ago

I made a free LUT converter that can output different texture formats here: https://www.color.io/free-online-lut-converter Output -> Select Format -> PNG Textures