# Blend mode (lighten/screen/add) issue

**URL:** <https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584>\
**Category:** General\
**Created:** [January 28, 2022, 1:49pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584 "2022-01-28T13:49:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![onyxlee](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/onyxlee/32/235268_2.png) [@onyxlee](https://forums.chaos.com/u/onyxlee)\
**Post date:** [January 28, 2022, 1:49pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/1 "2022-01-28T13:49:41Z")

</div>

Hi guys, I am trying to create this effect but couldn’t figure out the blend mode. I found some very old posts from Vlado about using vraylightmtl and turning on “multiply color by opacity”, but it doesn’t help in my test (image 3). I understand that this is probably against “energy conservation” for a physically accurate rendering. What’s the best way to achieve this, please?

 ![272800739_10162127346343312_4922019106655377792_n.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/d/d25c4974cef6120a10e6c4c7a8fc2bbb3191e43c.jpeg)  
 ![272711085_10162127217828312_1249243341765597501_n.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/7/a78b37f80a82886b10af7a8e37d10ba9a332e90c.jpeg) ![](https://forums.chaos.com/core/image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==)  
The overlaying parts don’t get brighter here.  
 ![3dsmax_7bWRlyEJqU.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/3/3521b341e94818cc1c605544d7e8a41912758dc2.jpeg)  
​  
 ![3dsmax_7bWRlyEJqU.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/3/3521b341e94818cc1c605544d7e8a41912758dc2.jpeg)

---

<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:** [January 28, 2022, 2:14pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/2 "2022-01-28T14:14:59Z")

</div>

Perhaps if you made them all use a single VRayBlendMtl with the Additive (shellac) mode on that might do what you want. Though I am not sure if particles of the same color would add, it looks like they do in your test, but not sure if that will exceed 1.0 or not. That might just be a normal composite rather than an add.

Basically you want all the particles to add. Eager to hear other solutions. I bet there is a simple trick.

Perhaps using a single LightMtl and mapping the colors would work, rather than multiple LightMtls. Still not certain this will add though.

---

<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 28, 2022, 2:46pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/3 "2022-01-28T14:46:30Z")

</div>

Your two example images are showing the bokeh effect from shallow depth of field, which does exhibit this multiplying.  
Is that what you need to do or have I misunderstood?

---

<div class="post-metadata">

**Author:** ![onyxlee](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/onyxlee/32/235268_2.png) [@onyxlee](https://forums.chaos.com/u/onyxlee)\
**Post date:** [January 28, 2022, 3:12pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/4 "2022-01-28T15:12:40Z")

</div>

> [@Joelaff](#):
>
> Perhaps if you made them all use a single VRayBlendMtl with the Additive (shellac) mode on that might do what you want.

I tried and got no luck, no matter I put the light material in the base material slot or the coat material slot.

> [@Joelaff](#):
>
> Perhaps using a single LightMtl and mapping the colors would work, rather than multiple LightMtls.

Originally I had one light material for the particle system, it didn’t show the “add” effect. Then I tried to simplify my test scene and got this.

---

<div class="post-metadata">

**Author:** ![onyxlee](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/onyxlee/32/235268_2.png) [@onyxlee](https://forums.chaos.com/u/onyxlee)\
**Post date:** [January 28, 2022, 3:17pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/5 "2022-01-28T15:17:57Z")

</div>

> [@fixeighted](#):
>
> Your two example images are showing the bokeh effect from shallow depth of field, which does exhibit this multiplying.  
> Is that what you need to do or have I misunderstood?

Yeah, very simple in after effects, but very difficult in VRay. I try to do everything in 3D. If it’s really impossible, I will have to do it in post, which involves more work.

---

<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:** [January 28, 2022, 3:22pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/6 "2022-01-28T15:22:00Z")

</div>

Yeah, I ran some quick tests. The closest I got was using VRayMtls (not LightMtls) and setting Self illumination, and the diffuse to 0, and the refraction amount to pure white, and the IOR to 1.0

Still doesn’t seem to be quite right.

---

<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 28, 2022, 4:13pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/7 "2022-01-28T16:13:28Z")

</div>

This example took only minutes to set up and is very quick to render.  
I reckon if there was a way to do this somehow with just a shader,  
some clever person would have done it already…doesn’t mean it  
doesn’t exist though, so fun to try 🙂

 ![bokeh.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/d/d7c35d356fce1b8a2057517d6090add05a6e9c0d.jpeg)

---

<div class="post-metadata">

**Author:** ![onyxlee](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/onyxlee/32/235268_2.png) [@onyxlee](https://forums.chaos.com/u/onyxlee)\
**Post date:** [January 28, 2022, 5:39pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/8 "2022-01-28T17:39:32Z")

</div>

> [@fixeighted](#):
>
> This example took only minutes to set up and is very quick to render.  
> I reckon if there was a way to do this somehow with just a shader,  
> some clever person would have done it already…doesn’t mean it  
> doesn’t exist though, so fun to try 🙂

How did you do it? This looks quite close to the reference.

> [@fixeighted](#):
>
> Yeah, I ran some quick tests. The closest I got was using VRayMtls (not LightMtls) and setting Self illumination, and the diffuse to 0, and the refraction amount to pure white, and the IOR to 1.0

I tried your way just now. It does blend r+g+b into white. But somehow when I assign a single mat to a particle billboard, it doesn’t work anymore. So strange.

 ![3dsmax_x6O10lKMre.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/9/292349a4d67ce0b33c04c2a2e69010576b0c4b65.jpeg)

---

<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 28, 2022, 6:10pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/9 "2022-01-28T18:10:19Z")

</div>

My example is very simple; a blizzard particle system with a tiny sphere per particle, with a nice intense light material.  
Camera with both dof enabled and bokeh enabled and a suitable F#/focus distance 🙂

---

<div class="post-metadata">

**Author:** ![onyxlee](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/onyxlee/32/235268_2.png) [@onyxlee](https://forums.chaos.com/u/onyxlee)\
**Post date:** [January 28, 2022, 8:17pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/10 "2022-01-28T20:17:33Z")

</div>

> [@fixeighted](#):
>
> My example is very simple; a blizzard particle system with a tiny sphere per particle, with a nice intense light material.  
> Camera with both dof enabled and bokeh enabled and a suitable F#/focus distance 🙂

I see. Seems like bokeh did all the job, not really the blend mode. Thanks for the tips.

---

<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 29, 2022, 10:35am UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/11 "2022-01-29T10:35:08Z")

</div>

Honestly I don’t understand the ‘blend mode’ thing.  
Blend modes are 2D operations on layers, so how that could work in this situation is  
not something I can visualise.

---

<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:** [January 29, 2022, 4:25pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/12 "2022-01-29T16:25:03Z")

</div>

It’s more that lights are additive. So they blend in add mode.

In camera DOF looks great, but when you get those particles really close to the camera, where the bokeh of the foreground particles becomes 1/4 the frame, it gets very slow to get rid of all the noise and prevent sampling errors from too few rays. (Especially if the foreground particles have actual shapes/geometry too them) So cheating it with billboard shapes on particles can help— but only if you can get them to bend right.

Also, a lot of people just need creative cool looking imagery that isn’t necessarily photographically accurate. Even in VFX we often need weird sci-fi effects that are non-photographic. Personally, my first instinct is to keep things as photographic as possible, but that is not always the ask.

---

<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 29, 2022, 9:46pm UTC](https://forums.chaos.com/t/blend-mode-lighten-screen-add-issue/108584/13 "2022-01-29T21:46:44Z")

</div>

I must be missing something I think…I just can’t imagine a way it’d work within a shader, given all the possible parameters a scene might present, so I’ll leave it to a willing dev to contribute more than I can at this point 🙂

I’m looking forward to any and all results.
