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.

Feature Request: Add support for 3DLUT color grading

See original GitHub issue

I see that there’s been some work done in the past in #15360 and @greggman has put together a nice article on the topic here. It’s not entirely clear to me why the previous PR was closed but I wanted to bring this up as a nice addition to three.js. The utility has been better explained in the two links above but 3DLUTs are great for controlling the look and feel of a scene.

3DLUTs are supported in a variety of 3d engines and video editing software include Unity, Unreal Engine, and Babylonjs. There are also a couple existing file formats for them including .cube and .3dl (though 3dl looks relatively undocumented).

These formats are available online and can also be created in tools like Photoshop and would enable more artistic control over the look of the final scene.

I figure that just like gamma correction there could be a postprocessing effect and WebGLRenderer support that adds the LUT application to the end of the built in shaders:

const lut = new LUTLoader().load( '../path/to/lut.3dl' );
renderer.colorLUT3D = lut;

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
greggmancommented, May 26, 2020

If you were going to add this to three.js I’d expect you’d add LUTLoader.js to examples/jsm/loaders and otherwise it’s just a post processing effect so you’d add LUTPass.js to examples/jsm/postprocessing

1reaction
AlexDanielcommented, Oct 18, 2020

Ah, by the way, I’d like to note that not all LUTs are in weird formats, some are just images. For example, see HALD CLUTs. The beauty of these formats is that you can apply any color operation on identity luts using the software of your choice.

obs-studio is using this format, which is more “readable” than HALD CLUTs, but I still cannot figure out where it originates and what it actually is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[color correction] Add 3D LUT correction - Feature Requests
Hello, Currently, the color correction proposed by hyperion is a 1D correction by matrix transformation. Matrix transformation is ideal for ...
Read more >
3D LUT node for color correction - Vuo
A node that is able to take a pre-made 3D LUT for colour correction. ... 'make 3D LUT' generator node to facilitate custom...
Read more >
How to Apply a Color Grading LUT in 13 Different Programs
Go to Layer > New Adjustment Layer > 3D LUT. In the dialog box that opens, select Load LUT. Browse to find and...
Read more >
Color Grading: What are LUTs and How to Apply Them ...
Not all LUTs are used in post production. Some LUTs help you make sure your monitoring equipment gives you the information you need...
Read more >
3D LUT Creator - official site
Color correction in 3D LUT Creator is made by bending the grid tied to the color plane containing saturation and hue. The use...
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