Announcement

Collapse
No announcement yet.

Blend mode (lighten/screen/add) issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blend mode (lighten/screen/add) issue

    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?

    Click image for larger version

Name:	272800739_10162127346343312_4922019106655377792_n.jpg
Views:	212
Size:	116.0 KB
ID:	1138156
    Click image for larger version

Name:	272711085_10162127217828312_1249243341765597501_n.jpg
Views:	170
Size:	91.2 KB
ID:	1138157
    The overlaying parts don't get brighter here.
    Click image for larger version

Name:	3dsmax_7bWRlyEJqU.jpg
Views:	136
Size:	98.8 KB
ID:	1138159
    Attached Files

  • #2
    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.

    Comment


    • #3
      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?
      https://www.behance.net/bartgelin

      Comment


      • #4
        Originally posted by Joelaff View Post
        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.

        Originally posted by Joelaff View Post
        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.

        Comment


        • #5
          Originally posted by fixeighted View Post
          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.

          Comment


          • #6
            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.

            Comment


            • #7
              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
              Attached Files
              https://www.behance.net/bartgelin

              Comment


              • #8
                Originally posted by fixeighted View Post
                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.

                Originally posted by Joelaff View Post
                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.
                Click image for larger version  Name:	3dsmax_x6O10lKMre.jpg Views:	0 Size:	404.9 KB ID:	1138200
                Last edited by onyxlee; 28-01-2022, 01:15 PM.

                Comment


                • #9
                  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
                  https://www.behance.net/bartgelin

                  Comment


                  • #10
                    Originally posted by fixeighted View Post
                    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.

                    Comment


                    • #11
                      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.
                      https://www.behance.net/bartgelin

                      Comment


                      • #12
                        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.

                        Comment


                        • #13
                          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.
                          https://www.behance.net/bartgelin

                          Comment

                          Working...
                          X