# how to add color variation in quixel trees

**URL:** <https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750>\
**Category:** Quixel Megascans\
**Tags:** unreal-engine, fab\
**Created:** [April 16, 2024, 2:30am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750 "2024-04-16T02:30:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 2:30am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/1 "2024-04-16T02:30:55Z")

</div>

I have a scene with quite a bit of foliage, but i was wondering if there is an easy way to control the foliage of specific trees so that there is a randomness in the materials as well?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 16, 2024, 8:27am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/2 "2024-04-16T08:27:44Z")

</div>

The material node

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/0/070eedf809735a251ce36152787923af1847267f.png)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/2/d327afdb2ebcdc5c437cd8ec4dd9f2e076c3f69d.jpeg "Per-Instance Random | 5-Minute Materials [UE4/UE5]") ](https://www.youtube.com/watch?v=GVjnc66-JO8)

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 10:03am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/3 "2024-04-16T10:03:46Z")

</div>

Im so sorry if this comes off as dumb but will that make a color change on each and every foliage asset? Cause i dont wanna use the color gradient on the global foliage actor, i have realised it kinda messes up a lot of stuff…Is there a more updated/recent video for the application on this…?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 16, 2024, 10:05am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/4 "2024-04-16T10:05:43Z")

</div>

Yes, each instance gets its own color. There’s nothing to it, just vary the color with

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/a/48a74c074c859267939f8ff65df30a2a9307425c.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/3/993dc2d7a5315f523b2c500d5fbfe75d3664c709.jpeg)

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 10:20am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/5 "2024-04-16T10:20:06Z")

</div>

Woah and this works with MASS foliage like world building level trees and stuff too?

Also, can you control it in the tree’s parameters?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 16, 2024, 10:24am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/6 "2024-04-16T10:24:41Z")

</div>

Foliage is foliage, no? 🙂

It’s a material parameter, so any instanced object with that material, has it.

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 10:26am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/7 "2024-04-16T10:26:02Z")

</div>

Hmm…

Im still trynna find the one master material for the leaves right now tbh ☹

All i can see as the master material is just this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/b/57bf9d9d721d9369d41169e191472e82a6a383cf.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 16, 2024, 10:28am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/8 "2024-04-16T10:28:36Z")

</div>

Try double clicking this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/d/40d0944d082601ecb9e52f599bba8153df6f8452.png)

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 10:31am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/9 "2024-04-16T10:31:36Z")

</div>

I think since i added two different packs, im getting two of those now hehe…

But i shall brb whilst trying the variation thingy…

Just as a confirmation, im gonna make a lerp 3 color, connect by base texture and 2 more colors, make the world pivot+add in the alpha and connect them to the base color…

Hopefully this works 🙂

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 16, 2024, 10:36am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/10 "2024-04-16T10:36:05Z")

</div>

Wait umm quick question thoug. Should i just connect a scalar parameter by multiplying the interp node so tha i get the power to change colors?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 16, 2024, 10:39am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/11 "2024-04-16T10:39:12Z")

</div>

You do it just like I did above, except one input of the lerp is the base texture, the other is the base texture \* a color.

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 17, 2024, 3:10am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/12 "2024-04-17T03:10:45Z")

</div>

Thankss, i got through!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 17, 2024, 7:24am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/13 "2024-04-17T07:24:21Z")

</div>

Very good 🕶

---

<div class="post-metadata">

**Author:** ![barrybro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barrybro](https://forums.unrealengine.com/u/barrybro)\
**Post date:** [April 18, 2024, 7:31am UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/14 "2024-04-18T07:31:51Z")

</div>

Please consider taking a look at this ☹

> [@Foliage whilst rendering gets flickering on it](https://forums.unrealengine.com/t/foliage-whilst-rendering-gets-flickering-on-it/1809238):
>
> Soo, as you can see here…For some reason my renders/ foliage get this wierd color change out of no where…Any suggestions on how to fix it\>? [image] [image] As you can see, the same tree there suddenly upgrades and voila has color to it

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 13, 2024, 4:48pm UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/15 "2024-05-13T16:48:44Z")

</div>

I did look at it, I don’t have an answer, I’m afraid.

I think it might be something to do with shadow distance and the directional light, but I’m not sure where that’s set now with Lumen…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 12, 2024, 4:49pm UTC](https://forums.unrealengine.com/t/how-to-add-color-variation-in-quixel-trees/1805750/16 "2024-06-12T16:49:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
