Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save LUTs as a texture #12

Open
Daykod opened this issue Mar 13, 2019 · 2 comments
Open

Save LUTs as a texture #12

Daykod opened this issue Mar 13, 2019 · 2 comments

Comments

@Daykod
Copy link

Daykod commented Mar 13, 2019

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
Copy link

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
Copy link

monokee commented Jan 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants