question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for 1D LUTs

See original GitHub issue

For three-filmic, I needed a small 1D “shaper” LUT in addition to the larger 3D LUT. The 1D version is really simple, implemented here as LUT1DEffect.ts. Would you be interested in having support for 1D LUTs in this repository? If so, I’d be happy to make a PR. Should it be part of LUTEffect, or separate the two as (for example) LUT1DEffect and LUT3DEffect?

Related — I found that LUTCubeLoader does not currently support 1D .cube LUTs. That’d be pretty easy to add as well, if we’re interested. I wasn’t sure why LUTCubeLoader is forked from the three.js version though — is there an important difference between the two? For bandwidth reasons, I’m planning to eventually switch three-filmic from plaintex .cube LUTs to compressed .ktx2 data textures.

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
donmccurdycommented, Sep 1, 2022

Just as FYI, more details on the KTX2 LUT workflow described above —

https://www.donmccurdy.com/2022/08/31/compressing-luts-with-ktx2/

1reaction
donmccurdycommented, May 25, 2022

Related PRs to three.js:

In tests far, a 130kb .ktx2 file can represent the same 3D LUT (at same precision) as a 880kb .cube file, and it’s much faster to parse. That’s without even using KTX2’s support for Zstandard compression, which could reduce it further. So I may just skip on trying to do any big changes to the three.js or pmndrs LUTCubeLoader and LUT3dlLoader classes at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1D vs 3D LUTs - Affinity Spotlight
Whereas a 1D LUT contains explicit input and output values based on the given bit depth (e.g. 1024 values for 10-bit), a typical...
Read more >
The Essential Guide to LUTs - Frame.io Insider
Everything you need to know about using LUTs, including their creative benefits, technical limitations, and workflow tips and tricks.
Read more >
LUTs Explained! 1D vs 3D LUT? - YouTube
Support me on Patreon! https://www.patreon.com/zyproductions Patron who made this video possible: Martin Ouellette ______ Royalty-free music ...
Read more >
1D vs 3D Luts – The Colorists' Perspective - Mixing Light
A 3D LUT places color and luma in a 3D space (often referred to as a cube) that's much more representative of how...
Read more >
LUTs: The Ultimate Guide to Editing Like a Pro - LWKS
A 1D LUT approximates the capabilities of the curves filter in Photoshop. It can't be used to turn, say, red into green, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found