Announcement

Collapse
No announcement yet.

Brand new approach in rendering of glossies

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

  • Brand new approach in rendering of glossies


    Well, hello everyone... I've came here to share one my idea about new approach in speedeing up of rendering of glossy reflections, an alternative to already cool 'Interpolation". I would like to note ahead that it is a fake, some kind of post-process, so it will NOT produce correct glossies, but it probably will make sense.

    So, let's start. We all know about Z-buffer, and effects that could be achieved using it, such as post-process DOF. A good example of post-processing DOF, based on rendered image of Z-depth is Frischluft Lenscare. It makes DOF very close to real raytraced. So I thought, if we could somehow extract the "depth" of reflected objects inside reflective one, and then apply post process blurring using this mask.... I did this - with some tricky material setup I've created some kind of mask - a reflection of objects, which color fades away with their distance from reflective object.

    here's the example: there are two reflective objects - sphere and box to the left of it.


    this is how "reflection depth mask" look


    here is an image after Frischluft Lenscare post processing


    and this is ordinary Photoshop Blur, repeated several times.


    As you can see, reflection gets blurred with distance, so....

    This was done using only 256 color mask... But if it colud be done right inside 3ds max, using whole available range of information, the final result could be much more precise.

    Thanks for paying attention.

    p.s. happy holidays

  • #2
    Nice; how did you do the depth mask? With a fog atmospheric?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      No, I didn't use fog, however i had this idea. Using fog is inacceptable because it is visible to camera. But i need it visible only in reflection. So I decided to use Falloff Map in Distance blend mode, and use a reflective object as starting point.

      Comment


      • #4
        Very cool idea.

        /Thomas
        www.suurland.com
        www.cg-source.com
        www.hdri-locations.com

        Comment


        • #5
          I'm glad you like it Here's an example of using this technique for simulating glossy REFRACTION



          Mask:


          Comment


          • #6
            Damn! I've found one weak point of this method. The Faloff map in Distance Blend mode just creates simple radial gradient, with starting point in an object that i specify. It is good for objects that have radial shape - spheres, cylinders. But when object has straight or nonuniform shape such as box, or curved surface, radial gradient is not acceptable..

            Notice highlighted areas. You can clearly see radial shape of gradient. (and yes, this is a mask of reflective box)


            So I started experimenting with fog and found out how to "hide" it from camera and leave it only in reflection (refraction). And it works


            However, it doesn't matter how this mask was created. I believe that raytracer actually always knows the depth of reflected objects, otherwise how it performs glossy blurring So, if Vray could extract depth of reflected (refracted) object in a separate channel, and then apply some kind of post process, it would be just excellent!

            Comment


            • #7
              it would be fast. but im not sure it would be accurate. i think the DOF vray currently uses is more physically accurate however including a vray Z-DOF in the effects pannel would be cool

              ---------------------------------------------------
              MSN addresses are not for newbies or warez users to contact the pros and bug them with
              stupid questions the forum can answer.

              Comment


              • #8
                This technique could also be used to do qick soft shadows for shadowmaps. Not sure exactly if it's necessary though.
                I can see this as being most usefull for reflections on rough objects (textured and bumped), as the cleaner the surfaces get, the more obvious the lack of accuracy gets.
                I am still quite amazed though, as to how good the Lenscare plugin is. I have never seen any other plugin or app. fake DOF with such supperior quality.
                Signing out,
                Christian

                Comment


                • #9
                  just on a slightly related note...Photoshop CS now has a plugin similar to Lenscare as standard...could make this even more useful.
                  Digital Progression

                  Comment


                  • #10
                    can you explain how you use the mask in photoshop to perform the DOF trick?
                    ____________________________________

                    "Sometimes life leaves a hundred dollar bill on your dresser, and you don't realize until later that it's because it fu**ed you."

                    Comment


                    • #11
                      Photoshop CS doesn't have a Lensblur tool, it's in AfterEffect 6, but it's not worse much (little bit like in Combustion).
                      Frishluft has 2 filter collection that are really great and the best i found for Photoshop, AfterEffect, Fusion and Combustion. And I really did a hard job on this. Beside the Developer of this tools is a really nice guy.

                      Such a feature would be cool within Vray, but that would also mean implementing a smart Distance Blur and an AntiAliased Z-Buffer (my greatest wish at the moment ).

                      Hope Vlado get some time do, this...

                      robert
                      I'm registed believe me! Just miss that logo.

                      Comment


                      • #12
                        Cool Idea, but what about the antialiasing on the edges? I think it could make some artifacts on the edges. Maybe if the blur applied before AA.

                        Comment


                        • #13
                          Photoshop CS doesn't have a Lensblur tool,
                          Uhm... Yes it does....

                          Filter > Blur > Lens blur
                          Torgeir Holm | www.netronfilm.com

                          Comment

                          Working...
                          X