# Painting texture based on alpha issue

**URL:** <https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [June 12, 2020, 6:15pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673 "2020-06-12T18:15:05Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 12, 2020, 6:15pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/1 "2020-06-12T18:15:05Z")

</div>

Hi everyone,  
I’m trying to paint a texture based on value 0/255 where 0 is the first color and 255 is the second one. But it doesn’t work properly, this is my set up. Any advice please?

 ![2020-06-12.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/f/8f83510d2415fb3d4f85bc6cc6bca6f97e6c9d0b.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:** [June 12, 2020, 6:37pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/2 "2020-06-12T18:37:24Z")

</div>

> [@anonymous\_user\_a9cbb2561](#):
>
> Hi everyone,  
> I’m trying to paint a texture based on value 0/255 where 0 is the first color and 255 is the second one. But it doesn’t work properly, this is my set up. Any advice please?
> 
> ![2020-06-12.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/f/8f83510d2415fb3d4f85bc6cc6bca6f97e6c9d0b.jpeg)

The bit that’s showing works fine:

 ![lerp.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/d/9d5f0d049435d172cdb93846cfe33fe9407bdd88.jpeg)

What’s the problem?

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 12, 2020, 8:03pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/3 "2020-06-12T20:03:37Z")

</div>

Ok I’m gonna show you more about it.  
As you can see the picture the alpha area are right but the filled area are wrong. I need to paint only the non alpha area using 2 colors where the white contains the first color data and the almost black the second color data.  
How can I do that?

 ![2020-06-12 (2).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/5/d598366affaadfa327614e6ea0eb4fb6b8c05079.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:** [June 12, 2020, 8:21pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/4 "2020-06-12T20:21:44Z")

</div>

> [@anonymous\_user\_a9cbb2561](#):
>
> Ok I’m gonna show you more about it.  
> As you can see the picture the alpha area are right but the filled area are wrong. I need to paint only the non alpha area using 2 colors where the white contains the first color data and the almost black the second color data.  
> How can I do that?
> 
> ![2020-06-12 (2).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/5/d598366affaadfa327614e6ea0eb4fb6b8c05079.jpeg)

Ok, so like mask area A, and then within A, mask again?

Like this?:

 ![double lerp.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/b/2b0efbb339428329ca62dc7291e353509da4e5b1.jpeg)

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 12, 2020, 8:55pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/5 "2020-06-12T20:55:35Z")

</div>

Buddy it does work but not using the translucent material so it’s coming problematic because it doesn’t blend.  
This is a particle material.

---

<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:** [June 12, 2020, 9:21pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/6 "2020-06-12T21:21:21Z")

</div>

> [@anonymous\_user\_a9cbb2561](#):
>
> Buddy it does work but not using the translucent material so it’s coming problematic because it doesn’t blend.  
> This is a particle material.

 ![trans.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/a/da71fa656638cc399cea07a1e0e770031e5d4ed5.jpeg)

Is there another setting I’m missing?

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 12, 2020, 9:30pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/7 "2020-06-12T21:30:39Z")

</div>

no just the translucent material. Then as you can see I’m using a mask texture for the opacity

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [June 13, 2020, 9:15am UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/8 "2020-06-13T09:15:25Z")

</div>

are you sure that you aren’t just seeing the inside of the sphere or something similar?  
Since it is a transparent material, I would use the plane mesh to debug 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:** [June 13, 2020, 9:37am UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/9 "2020-06-13T09:37:41Z")

</div>

> [@](#):
>
> are you sure that you aren’t just seeing the inside of the sphere or something similar?  
> Since it is a transparent material, I would use the plane mesh to debug it…

I think it’s set to additive as well, which wont help…

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 13, 2020, 11:34am UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/10 "2020-06-13T11:34:40Z")

</div>

I’ve tried using additive and translucent and the problem still persist.  
I mean only the first color works. The second one doesnt paint nothing

---

<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:** [June 13, 2020, 12:14pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/11 "2020-06-13T12:14:21Z")

</div>

> [@anonymous\_user\_a9cbb2561](#):
>
> I’ve tried using additive and translucent and the problem still persist.  
> I mean only the first color works. The second one doesnt paint nothing

I think you need it in masked…

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 13, 2020, 12:52pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/12 "2020-06-13T12:52:38Z")

</div>

I need what? The second color? But how can I do that please?  
Ceause I’m trying everything…

---

<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:** [June 14, 2020, 8:58am UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/13 "2020-06-14T08:58:30Z")

</div>

> [@anonymous\_user\_a9cbb2561](#):
>
> I need what? The second color? But how can I do that please?  
> Ceause I’m trying everything…

Like this:

 ![mat.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/b/9ba87a7d79758f57e2b410126d3f3ef61efb8513.jpeg)

See, it’s ‘masked, translucent, unlit’.

One texture is lerping between pink and purple, the other texture is used to create the opacity.

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 14, 2020, 12:17pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/14 "2020-06-14T12:17:07Z")

</div>

I’m trying to work on it… nice solution buddy but material has to be Translucent otherwise doesn’t blend particles in Niagara

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 14, 2020, 1:17pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/15 "2020-06-14T13:17:38Z")

</div>

I got it! 🙂  
Thanks guys… finally I 've found the best way for Niagara…

 ![2020-06-14.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/9/99ced980325e95fa7647cf4cdd0d0a57affaafcd.jpeg)

---

<div class="post-metadata">

**Author:** ![K\_Storm\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_storm_studio/32/760100_2.png) [@K\_Storm\_Studio](https://forums.unrealengine.com/u/K_Storm_Studio)\
**Post date:** [June 14, 2020, 1:18pm UTC](https://forums.unrealengine.com/t/painting-texture-based-on-alpha-issue/145673/16 "2020-06-14T13:18:36Z")

</div>

It is still previewing but it works even on particle system Niagara. Now I have a lot of work to do in Niagara
