# I have created a mask based on the Z-axis of individual foliage particles and oriented according to their individual rotation angles. But its not happening.

**URL:** <https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080>\
**Category:** International\
**Tags:** Foliage-Tool, unreal-engine, mask, masked, Foliage, question\
**Created:** [February 8, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080 "2024-02-08T12:12:18Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/1 "2024-02-08T12:12:18Z")

</div>

I have created this simple mask. After Applying it to foliage mesh the mask is not rotating according to foliage particle axis. I have searched a lot but have not been able to find out the solution for this.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/1/bb1e5119050927e97e00ee6ce3ea39b802666721.jpeg)

---

<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:** [February 8, 2024, 12:15pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/2 "2024-02-08T12:15:21Z")

</div>

It’s because **all** the foliage is seen as **one** object. So the pivot point is the same for all pieces.

Haven’t tried it, but you might need something like

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/3/e23d97263852220fc1a4662baa62e035954a984a.png)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/3 "2024-02-08T13:05:14Z")

</div>

now its totaly black

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/c/ddcb085a87fd84a9f801b4eea70068fab3c58f7a.jpeg)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/4 "2024-02-08T13:12:58Z")

</div>

I have used various combinations of transform position node but none of them worked. 🤐

---

<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:** [February 8, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/5 "2024-02-08T13:16:49Z")

</div>

I will take a look…

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 1:21pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/6 "2024-02-08T13:21:06Z")

</div>

Yeah sure, I will be waiting for your reply!

---

<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:** [February 8, 2024, 1:21pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/7 "2024-02-08T13:21:48Z")

</div>

So I tried this mat

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/2/1024f8bb1919acf31e7f2ffd7c6090d2f10a9d8f.png)

and I get

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/b/dcba71992d3f1adcf25c578068b22e9628e44168.jpeg)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/8 "2024-02-08T13:25:18Z")

</div>

Can you please try to paint it with foliage on the curved surface so that we can figure out whether the mask is rotating with the object or not?

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 8, 2024, 1:34pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/9 "2024-02-08T13:34:42Z")

</div>

Tried this too U can see it’s not happening.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/5/e456a99d20b1d9adcdb117e4952922ac701c83c5.jpeg)

---

<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:** [February 8, 2024, 2:18pm UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/12 "2024-02-08T14:18:48Z")

</div>

Ok, this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/8/f583be32894ab3c69387a33d76b03877dabfb0a1.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/d/42df31bfe2d3a850ac5dcbeaea9b23d7eaf9d561.jpeg)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 9, 2024, 8:57am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/13 "2024-02-09T08:57:05Z")

</div>

For static mesh it’s working fine … but If you scatter this with foliage… it won’t work actually.

---

<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:** [February 9, 2024, 9:06am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/14 "2024-02-09T09:06:11Z")

</div>

This is foliage… ?

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 9, 2024, 9:40am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/15 "2024-02-09T09:40:18Z")

</div>

yes, the problem is in foliage. I scattered spheres using foliage. What I exactly want to do is by using this mask I want to create foliage grass material which can be 3 different colors like on top it’s green in the middle its slightly yellow and at the bottom its dark green.

---

<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:** [February 9, 2024, 9:48am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/16 "2024-02-09T09:48:33Z")

</div>

What I mean is, in my picture, it IS foliage 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/d/98decb0e6f94fd8b63c1badc8690d138045a61b2.jpeg)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 9, 2024, 9:51am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/17 "2024-02-09T09:51:15Z")

</div>

ohh… you saved me … thank you so much 🫠

---

<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:** [February 9, 2024, 9:52am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/18 "2024-02-09T09:52:25Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/f/4dfb22cc2617bba26f664488b2f82a70ca72d1d0.jpeg)

---

<div class="post-metadata">

**Author:** ![rohangulig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohangulig](https://forums.unrealengine.com/u/rohangulig)\
**Post date:** [February 9, 2024, 9:54am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/19 "2024-02-09T09:54:20Z")

</div>

Done Thank you !!!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/8/138b7d658fe4b26dc8e6e945a249729773adc8ac.jpeg)

---

<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:** [March 10, 2024, 9:55am UTC](https://forums.unrealengine.com/t/i-have-created-a-mask-based-on-the-z-axis-of-individual-foliage-particles-and-oriented-according-to-their-individual-rotation-angles-but-its-not-happening/1674080/20 "2024-03-10T09:55:12Z")

</div>

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