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

Adding a 3D LUT (.cube file) to a MTLTexture? #377

Open
2 tasks done
latenitefilms opened this issue Jan 13, 2024 · 0 comments
Open
2 tasks done

Adding a 3D LUT (.cube file) to a MTLTexture? #377

latenitefilms opened this issue Jan 13, 2024 · 0 comments

Comments

@latenitefilms
Copy link

Checklist

I am currently playing around with FxPlug - the effects engine for Apple's Final Cut Pro and Motion.

I am currently exploring if I can use MetalPetal to apply a 3D LUT (i.e. a .cube file) to a MTLTexture in Swift.

It looks like I might be able to use MTIColorLookupFilter() to apply a LUT - but it looks like it only accepts a LUT as a MTIImage - not a LUT file.

So I'd need to use something like CocoaLUT to convert the LUT file into an image. It looks like CocoaLUT can also generate Core Image Filters (VVLUT1DFilter / CIColorCube) from LUTs.

Have anyone played with using file-based LUTs with MetalPetal? Any words of wisdom?

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

1 participant