# How to restrict the rendered color gamut to a specific palette (indexed color)?

**URL:** <https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236>\
**Category:** Rendering\
**Tags:** Render, Post-Processing, Color-Grading, unreal-engine, Rendering, question\
**Created:** [September 12, 2016, 8:00pm UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236 "2016-09-12T20:00:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediochrea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mediochrea/32/464734_2.png) [@mediochrea](https://forums.unrealengine.com/u/mediochrea)\
**Post date:** [September 12, 2016, 8:00pm UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/1 "2016-09-12T20:00:30Z")

</div>

To illustrate, I want to transform this

 ![106703-highresscreenshot00000.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/0/1805794e3d1505cdcfb7e7ab7d754f4c26eda5ca.png)

into this (emulated in Photoshop using indexed color mode)

 ![106704-highresscreenshot00002.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/3/dd3af372ae86e51492c4b90ba25231c929d1cb69.png)

The colors are restricted to this color palette:

![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/4/a46a1dc1a22aa7850efe11fbf58387098741e538.png)

Tried using a LUT, it’s close but still not quite what I need.

 ![106706-highresscreenshot00004.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/c/58ca74d7bd246a0c14192c900caa93be78c09cd0.png)

Any help or ideas would be very much appreciated!

---

<div class="post-metadata">

**Author:** ![i-ribeiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-ribeiro](https://forums.unrealengine.com/u/i-ribeiro)\
**Post date:** [August 22, 2019, 5:18pm UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/2 "2019-08-22T17:18:47Z")

</div>

You can try setting up a post-process material as such:

 ![285583-colordepth.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/6/ea61433759bbc1e3dd15d638f66e3a8d3124a3bf.png)

Forces the scene colors into a limited palette which you could then adjust manually.

---

<div class="post-metadata">

**Author:** ![mediochrea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mediochrea/32/464734_2.png) [@mediochrea](https://forums.unrealengine.com/u/mediochrea)\
**Post date:** [August 29, 2019, 3:24pm UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/3 "2019-08-29T15:24:26Z")

</div>

This works really well, thanks a lot!

---

<div class="post-metadata">

**Author:** ![i-ribeiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-ribeiro](https://forums.unrealengine.com/u/i-ribeiro)\
**Post date:** [September 2, 2019, 12:24am UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/4 "2019-09-02T00:24:29Z")

</div>

Glad I could help. Good luck with your project.

---

<div class="post-metadata">

**Author:** ![Marchigeorge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marchigeorge](https://forums.unrealengine.com/u/Marchigeorge)\
**Post date:** [February 23, 2024, 6:19am UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/5 "2024-02-23T06:19:19Z")

</div>

What is color depth plugged in to? How do I choose my pallette?

---

<div class="post-metadata">

**Author:** ![Marchigeorge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marchigeorge](https://forums.unrealengine.com/u/Marchigeorge)\
**Post date:** [February 23, 2024, 6:31am UTC](https://forums.unrealengine.com/t/how-to-restrict-the-rendered-color-gamut-to-a-specific-palette-indexed-color/370236/6 "2024-02-23T06:31:52Z")

</div>

Hey, What is color depth plugged in to? How do I choose my pallette?
