Free, Versatile Tools for Amateurs & Professionals in AR
Color LUTs (Lookup Textures) are tables of RGB color values. In Spark AR, you can use color LUTs to quickly create color gradation effects throughout the scene. Go through the article and create your color LUT effect.
Part 1. What are Luts in Spark AR used for?
To create a color filter effect in Spark AR , you need a color LUT in Spark AR.
To develop AR effects for mobile cameras, you can use the Mac and Windows augmented reality platform Spark AR Studio. Imagine it like Sketch or Photoshop for augmented reality. The color values of the camera texture are mapped to the x, y, and z coordinates of the location in the color LUT. This location contains a corresponding output color that is drawn over the scene to create a color gradient effect.
Part 2. How to use LUTs in Spark AR?
How to apply a color LUT to the whole scene in Spark AR:
Step1Add a color LUT to your project
In the Assets panel, click Add Asset.
Select Import, then Color LUT, and select your file from your computer.
When you import a color LUT, compression is always set to None, and filtering is set to Low by default.
Step2Apply to the whole scene
In the Assets panel, right-click the LUT color.
Select Actions and then Apply to Camera.
A patch graph is automatically set that applies a color LUT to the entire scene.
The color LUT patch graph
The patch graph that renders the color gradation effect looks like this:
To create the effect:
Fix Scene Render Pass renders cameraTexture0 and all objects in the scene that are children of the device. This creates the output texture.
ColorLUTShader looks up the RGBA values of this texture in the Tension color LUT array and converts them to a new green color. This will change the texture and create a gradient effect.
Finally, the Screen Output patch renders the green color.
Part 3. Free LUTs resource for Spark AR
Here are the best free LUTs resources for Spark AR:
Title: [New] Free, Versatile Tools for Amateurs & Professionals in AR