# Black render Keep alphas

**URL:** <https://forums.chaos.com/t/black-render-keep-alphas/100620>\
**Category:** General\
**Created:** [September 24, 2020, 10:21am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620 "2020-09-24T10:21:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mouton007](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/mouton007/32/11417_2.png) [@mouton007](https://forums.chaos.com/u/mouton007)\
**Post date:** [September 24, 2020, 10:21am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/1 "2020-09-24T10:21:15Z")

</div>

HI all

i am trying to get a pure black render to create a fog pass etc but once i insert the bacl VrayMTl in the override slot in the vray settings i lose all my leaves an plants oppacitys is there a way to retain them ?

Regards  
Mouton

---

<div class="post-metadata">

**Author:** ![urbanite](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/urbanite/32/40523_2.png) [@urbanite](https://forums.chaos.com/u/urbanite)\
**Post date:** [September 24, 2020, 11:22am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/2 "2020-09-24T11:22:31Z")

</div>

Keep asking for solution for some time.. I would love to know the trick too.

---

<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:** [September 24, 2020, 11:42am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/3 "2020-09-24T11:42:32Z")

</div>

You can exclude objects, so do that with all your leaf objects and make a material copy that has the opacity used on a black diffuse. Would that not do it?

---

<div class="post-metadata">

**Author:** ![urbanite](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/urbanite/32/40523_2.png) [@urbanite](https://forums.chaos.com/u/urbanite)\
**Post date:** [September 24, 2020, 11:48am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/4 "2020-09-24T11:48:15Z")

</div>

I believe it is not working with fog.

---

<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:** [September 24, 2020, 12:05pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/5 "2020-09-24T12:05:53Z")

</div>

I must be missing something. Can you explain exactly what needs to happen and what the render should look like ideally?

---

<div class="post-metadata">

**Author:** ![mouton007](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/mouton007/32/11417_2.png) [@mouton007](https://forums.chaos.com/u/mouton007)\
**Post date:** [September 24, 2020, 1:28pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/6 "2020-09-24T13:28:59Z")

</div>

yeay that can work but i am looking for a faster solution i have a lot plant shader in my to replace them all with a material copy would take to long

> [@fixeighted](#):
>
> You can exclude objects, so do that with all your leaf objects and make a material copy that has the opacity used on a black diffuse. Would that not do it?

---

<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:** [September 24, 2020, 1:45pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/7 "2020-09-24T13:45:57Z")

</div>

I’m glad that works for you. Some things just take time 🙂  
All you need to do is use colour corrections on the maps, so seconds per material really.

---

<div class="post-metadata">

**Author:** ![mouton007](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/mouton007/32/11417_2.png) [@mouton007](https://forums.chaos.com/u/mouton007)\
**Post date:** [September 24, 2020, 2:04pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/8 "2020-09-24T14:04:32Z")

</div>

> [@fixeighted](#):
>
> I’m glad that works for you. Some things just take time 🙂  
> All you need to do is use colour corrections on the maps, so seconds per material really.

maybe i should just setup material switches will take tim but then its setup

---

<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:** [September 24, 2020, 2:07pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/9 "2020-09-24T14:07:47Z")

</div>

Absolutely, if you do the same thing regularly then once it’s done it’s done 🙂

---

<div class="post-metadata">

**Author:** ![mouton007](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/mouton007/32/11417_2.png) [@mouton007](https://forums.chaos.com/u/mouton007)\
**Post date:** [September 24, 2020, 2:20pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/10 "2020-09-24T14:20:08Z")

</div>

is there a script so that i can globally make al the vrayswitchmtl to the second material in it ?

---

<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:** [September 24, 2020, 3:32pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/11 "2020-09-24T15:32:04Z")

</div>

Hmm, I can’t think of one but I’m sure there’s someone on this forum who could suggest a way to do it if it’s possible.

---

<div class="post-metadata">

**Author:** ![Joelaff](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joelaff/32/71647_2.png) [@Joelaff](https://forums.chaos.com/u/Joelaff)\
**Post date:** [September 26, 2020, 10:55pm UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/12 "2020-09-26T22:55:21Z")

</div>

Would be way cool if the VRayMtlWrapper could have a special mode when used in the override slot so that it would act as though its input for each material was the material prior to the override. So you could easily set up matte objects like this all in one place.

You might see if you can use the right-click vrayproperties settings (Select objects, right click in the viewports, choose vrayproperties bear the bottom on the lower right menu) to select all your trees and then change the matte object settings in that dialog. I have not done many matte objects that way much; so I am not sure of what the limitations are. There is some kind of matte objects control there.

Also you could try turning off all lights and GI and just using luminous fog that way. Or perhaps a simple Zdepth channel could achieve the fog effect you need. You would composite it in the post.

Good luck.

---

<div class="post-metadata">

**Author:** ![vaya\_studio](https://avatars.discourse-cdn.com/v4/letter/v/e79b87/32.png) [@vaya\_studio](https://forums.chaos.com/u/vaya_studio)\
**Post date:** [September 28, 2020, 8:03am UTC](https://forums.chaos.com/t/black-render-keep-alphas/100620/13 "2020-09-28T08:03:42Z")

</div>

@mouton007 You don’t really need a black beauty render, just use the VRayAtmoshpere render element. For the rendering I usually desable everything that won’t contribute to the volume light from the VRay Global Switches tab: reflections/refractions, displacement, etc. If you dont need it you can desable GI as well. You can assign a black material in the Override material slot and exclude the objects with alpha from the list.
