# Alpha controbution -1 not working on GPU

**URL:** <https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588>\
**Category:** Issues\
**Tags:** gpu, rendering, render\
**Created:** [November 12, 2020, 12:22pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588 "2020-11-12T12:22:52Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrei\_lazar](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/andrei_lazar/32/15875_2.png) [@andrei\_lazar](https://forums.chaos.com/u/andrei_lazar)\
**Post date:** [November 12, 2020, 12:22pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/1 "2020-11-12T12:22:52Z")

</div>

I think this question was asked a lot in the last years since vray 3, Is this thing hard to implement, companies that Do online configurators with pre\*rendered CG assets rely heavily on this feature, and using GPU is the next logical thing in speeding up render time, I have to use 2 scenes one with CPU only where i can use this feature to make the alpha controbuion work and another one with GPU for rendering the asset. In vray 4 i wasn’t even able to get a proper matte on an shadow or reflection with CUDA. Do we need to wait until Vray 6 for this to happen? I have to resort to all type of gimmiks in order for it to work.

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [November 24, 2020, 2:59pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/2 "2020-11-24T14:59:27Z")

</div>

The feature is not yet supported on the GPU, I’m afraid - it isn’t trivial to implement.

---

<div class="post-metadata">

**Author:** ![fixeighted](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fixeighted/32/45854_2.png) [@fixeighted](https://forums.chaos.com/u/fixeighted)\
**Post date:** [January 10, 2021, 10:45am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/3 "2021-01-10T10:45:03Z")

</div>

I am so confused.  
If this supposedly isn’t supported on GPU and doesn’t work, as I thought until just now trying to find a workaround, then why does it also clearly work?  
This image is rendered using a dome light with an hdri, with cast shadows off as well as specular/diffuse/reflections also turned off.  
The floor is a plane set to alpha-1, with a wrapper also set to -1 (though that doesn’t make any difference on or off).  
It is still of course unusable in this case, as the window refractions are totally screwed, which is known about and seemingly unfixable, although it is ‘being looked at’ for more than 3 years now 🙂

 ![ALPHA.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/2/9269436ffe14470d0de726fc2719eb29a8f4f7b5.jpeg)

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [January 11, 2021, 12:38pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/4 "2021-01-11T12:38:37Z")

</div>

Pardon, I must have meant Alpha Contribution control (value 0) was not yet supported on V-Ray GPU. @andrei_lazar You should send the scene via the [contact form](https://www.chaosgroup.com/help/contact/support/scene) so we can take a look. Mention this thread in the message.

---

<div class="post-metadata">

**Author:** ![system](https://cdck-file-uploads-europe1.s3.dualstack.eu-west-1.amazonaws.com/chaossbx/original/1X/2e0d214c48d58c97ded58d7931e9566177aa5366.png) [@system](https://forums.chaos.com/u/system)\
**Post date:** [February 26, 2021, 10:20am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/5 "2021-02-26T10:20:27Z")

</div>

Hi,

Just checking that alpha contribution is still not yet supported by GPU? I am trying to use alpha contribution -1 and its not working ☹

---

<div class="post-metadata">

**Author:** ![fixeighted](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fixeighted/32/45854_2.png) [@fixeighted](https://forums.chaos.com/u/fixeighted)\
**Post date:** [February 26, 2021, 10:58am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/6 "2021-02-26T10:58:40Z")

</div>

-1 definitely works, here at least. If you have your scene objects we can solve it I’m sure 🙂

---

<div class="post-metadata">

**Author:** ![system](https://cdck-file-uploads-europe1.s3.dualstack.eu-west-1.amazonaws.com/chaossbx/original/1X/2e0d214c48d58c97ded58d7931e9566177aa5366.png) [@system](https://forums.chaos.com/u/system)\
**Post date:** [February 26, 2021, 11:30am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/7 "2021-02-26T11:30:07Z")

</div>

> [@fixeighted](#):
>
> -1 definitely works, here at least. If you have your scene objects we can solve it I’m sure 🙂

Hi, I have sent you a PM.

Thanks.

---

<div class="post-metadata">

**Author:** ![studiotribe](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@studiotribe](https://forums.chaos.com/u/studiotribe)\
**Post date:** [May 25, 2021, 2:09am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/8 "2021-05-25T02:09:40Z")

</div>

What’s the trick getting alpha contribution to work on GPU? Setting it 0 or -1 has absolutely no effect whether it’s within “V-ray properties” on the object level, or within a MtlWrapper.

---

<div class="post-metadata">

**Author:** ![fixeighted](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fixeighted/32/45854_2.png) [@fixeighted](https://forums.chaos.com/u/fixeighted)\
**Post date:** [May 25, 2021, 10:31am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/9 "2021-05-25T10:31:43Z")

</div>

A value of 0 doesn’t work but -1 definitely does, as in the above image. You can post a simple scene where it is not working for you and we can see what’s up.  
Today is a day for solving problems 🙂

---

<div class="post-metadata">

**Author:** ![studiotribe](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@studiotribe](https://forums.chaos.com/u/studiotribe)\
**Post date:** [May 25, 2021, 2:17pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/10 "2021-05-25T14:17:11Z")

</div>

![GPU_alpha.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/4/4dac6913bf8d6e85836c2f936a1a8d9d67db0c1f.jpeg) That’s the spirit! 😄

Here’s what I’m seeing on my end. I’ve tried both Cuda and RTX with the same results.  
[GPU\_alpha\_max.zip](https://forums.chaos.com/uploads/short-url/z103VSB10zW2M3W9Zzh3szCaftq.zip) (88.6 KB)

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [May 26, 2021, 8:43am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/11 "2021-05-26T08:43:17Z")

</div>

@studiotribe You need to activate “Matte Object”, “Shadows”, “Affect Alpha” and optionally “Matte for refl/refr” for the effect to take place. Read more about those properties [here](https://docs.chaosgroup.com/display/VMAX/Object+and+Light+Properties#ObjectandLightProperties-MatteProperties). Also, there is a toolbar button, which automatically sets those values, called “Make V-Ray shadow catcher”.

---

<div class="post-metadata">

**Author:** ![studiotribe](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@studiotribe](https://forums.chaos.com/u/studiotribe)\
**Post date:** [May 26, 2021, 2:17pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/12 "2021-05-26T14:17:48Z")

</div>

Thanks. I’m aware of that functionality but that’s not what I’m using it for. I need the beauty pass to remain the same but force the alpha to black on certain objects. Imagine a product rendering on a white background. I need a mask that isolates the product from the background and instead of rendering a separate pass, it’s easier to force the alpha for the backdrop to black.

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [May 27, 2021, 2:44pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/13 "2021-05-27T14:44:45Z")

</div>

What should do the trick is setting up a VRayExtraTex pass with a white VRayColor as a texture, where the objects you wish to mask out are excluded.

---

<div class="post-metadata">

**Author:** ![roboxx](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/roboxx/32/23077_2.png) [@roboxx](https://forums.chaos.com/u/roboxx)\
**Post date:** [July 7, 2021, 9:03pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/14 "2021-07-07T21:03:29Z")

</div>

It`s really disappointing that alpha contribution -1 still isn`t working in GPU mode without matte turned on..  
This feature is requested for years from several users and would have a big benefit for lots of usecases.  
Is this really in the development and will be available someday by the dev team ?

The suggestes workaround with VrayExtraTex isn`t working in cases, where an object ( which should have no effect on the alpha ) is covering an underlying object ( which shall contribute to the alpha )…any suggestion ?

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [July 8, 2021, 10:24am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/15 "2021-07-08T10:24:46Z")

</div>

@roboxx Just so you know, our developers are informed about the matter. In the cases you describe, maybe separately rendering a correct alpha (with using invisible to camera, etc.) is the way to go.

---

<div class="post-metadata">

**Author:** ![Mnietek2707](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Mnietek2707](https://forums.chaos.com/u/Mnietek2707)\
**Post date:** [July 25, 2022, 8:11pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/16 "2022-07-25T20:11:52Z")

</div>

Will it ever work? Without any tricks. Without settings object to matte? Just as it should work? This thread started 2 years ago…  
By the way setting alpha contribution to 0 has no effect also

---

<div class="post-metadata">

**Author:** ![Muhammed\_Hamed](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/muhammed_hamed/32/73779_2.png) [@Muhammed\_Hamed](https://forums.chaos.com/u/Muhammed_Hamed)\
**Post date:** [July 26, 2022, 8:02am UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/17 "2022-07-26T08:02:19Z")

</div>

> [@Mnietek2707](#):
>
> Will it ever work? Without any tricks. Without settings object to matte? Just as it should work? This thread started 2 years ago…  
> By the way setting alpha contribution to 0 has no effect also

Hello,

Are you testing with V6 ?  
This topic is near the top of our current priority list, Alphas for objects behind glass were improved in V6. The workflow should be better  
There are still some cases that need attention but this is workable now at least

Best,  
Muhammed

---

<div class="post-metadata">

**Author:** ![Mnietek2707](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Mnietek2707](https://forums.chaos.com/u/Mnietek2707)\
**Post date:** [February 9, 2023, 12:33pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/18 "2023-02-09T12:33:24Z")

</div>

This is still not working…  
V-Ray 6

---

<div class="post-metadata">

**Author:** ![dasebi](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dasebi](https://forums.chaos.com/u/dasebi)\
**Post date:** [April 8, 2025, 2:32pm UTC](https://forums.chaos.com/t/alpha-controbution-1-not-working-on-gpu/101588/19 "2025-04-08T14:32:25Z")

</div>

Vray 7 and still no progress on this topic?
