Announcement

Collapse
No announcement yet.

Problem achieving pure Vray caustics

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

  • #16
    OK. This is my attempt at a tut on achieving refractive caustics.

    -------------------------------------------------------

    1) Create glass material - settings are shown below:



    This isn't an explanation of how to create glass in VRay, so I won't go into the details of the material, except where the Fog Color is concerned. The color you choose determines the color of your glass, and the multiplier determines the particular hue of the fog color. Lower numbers (like 0.1) will make the glass very close to the hue that you chose. Higher numbers (like 2.0) will adjust the hue downward (such as in the case of the image I posted, the green color of the glass is a lower hue value within the green-->teal range; if the multiplier were 0.1, then the color of the glass would pretty much be the same as the color shown in the swatch). If you need more of an explanation on this, just ask me.


    Approximate hue range for fog multiplier.


    Fog multiplier set to 0.1 (notice the absorption effect in the darker areas of the torus)


    Fog multiplier set to 2.0

    Notice also that the fog color also affects the color of the caustics.

    2) Apply the glass material to an object (in this case, the torus knot), which for the sake of example sits upon a plane that has a standard grey material.

    3) Now for the light set up. I started with an omni, but I didn't want photons going all over the place and being wasted. So, I chose a target spot. The settings are shown below:



    Two things to take note of here: the multiplier and the decay type. These two values go hand-in-hand. For the spot to emit "physically correct" light, the decay type should be set to inversse square, because that's how light behaves (the intensity of light decreases by the inverse square of the distance that it travels because the area that the light spreads increases by the square of the distance traveled - check out a little experiment with this at Exploratorium) Believe me, any other setting will completely botch the effect.

    Now, since we have a light that is decaying and spreading in area in a "natural" way, the multiplier has to be set pretty high in order for enough of that light to illuminat the chosen target. In this case, a multiplier of 20,000.00 is a good place to start. The above images used this setting, and the image below uses a multiplier of 40,000.00:



    4) Finally, the render set up. First, make sure that Caustics are turned on in the render rollout.



    This first thing I want to talk about is the max photons setting. This will determine how many photons from the spot will contribute to the caustic effect. It basically works like this: the fewer the photons, the crisper the effect; the greater the photons, the softer the effect - as shown below:


    20 photons


    200 photons


    2000 photons

    I chose to leave the max photons at 200, since that gave a nice looking result. The setting of 20 was nice and crisp, but also had a lot of artifacts, whereas the 2000 setting was far too blurry.

    Next, I'll talk about the search distance. This determines the max radius for finding contributing photons. I'll let the pictures speak for themselves:


    Search distance 0.1


    Search distance 0.5


    Search distance 20

    In this particular case, values above 20 do not improve the resulting render.

    Next, the caustics multiplier. This determines the intensity of the effect independent of the light multiplier. Examples:


    Light multiplier set to 5000.00 / Caustics multiplier set to 1.0


    Light multiplier set to 5000.00 / Caustics multiplier set to 5.0


    Light multiplier set to 5000.00 / Caustics multiplier set to 20.0


    Light multiplier set to 40,000.00 / Caustics multiplier set to 0.25

    And lastly, under the system rollout make sure that under light settings... your light source (in this case the target spot) is set to generate caustics, under object settings... your object(s) (in this case the torus and plane) are set to generate and receive caustics. Yes, I know that the plane does not generate caustics





    Notice also that there are separate caustics multipliers in both the object and light settings. I'll let you play with those.

    One last note: you'll notice that under the light settings there is a caustic subdivs spinner. This basically controls the accuracy of the effect. See below:


    Caustic subdivs set to 100


    Caustic subdivs set to 2000

    -------------------------------------------------------

    Comments, questions, corrections are welcome and appreciated

    Comment


    • #17
      thats a great tutorial. It needs to be uploaded to vray.info
      ____________________________________

      "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


      • #18
        Thanks I'll talk to Torg about it.

        Comment


        • #19
          Thanks for the tut 586..

          Comment


          • #20
            nice tut dude, thanx .

            Comment


            • #21
              Of course this is going on the site! Great job Keith!!
              Sent you an email about some details.
              Torgeir Holm | www.netronfilm.com

              Comment


              • #22
                Excellent Tutorial ,

                Great Respect !

                Comment


                • #23
                  Thanks for your tutorial, it's really useful!

                  There are only two things I have to add:
                  First, I would move the section about turning the "generate caustics" parameter ON (in the system rollout) higher, I mean before the explanation of the paramaters like "max. photons", "search dist" and "caustics multiplier" - so that one can already try it out as you speak about it and doesn't have to wait to learn how to actually start generating the caustics.
                  And I would also add a few notes about rendering times, how much each of the parameters influences the rendering times etc.

                  Thanks again!

                  Regards,
                  Dusan

                  Comment


                  • #24
                    Damn, you're faster than me! Great tutorial!

                    Also a note: keep the subdivs as low as possible, because they explode rendertimes! Also the photon map becomes very very large... (in my scene, with subdivs=3000, the map was 216Mb!) Try very low subdivs and just cover the artifacts by blurring them with max photons.

                    regards,

                    flipside
                    Aversis 3D | Download High Quality HDRI Maps | Vray Tutorials | Free Texture Maps

                    Comment


                    • #25
                      Great job 556,

                      As a user of max v3 this is the kind of post that I and I'm sure others, benefit from perhaps the more then others.

                      Here, there are no files that I can't access- just info to study and use. Wish there was more of this, right down to those car paints I missed- *drat*.

                      Anyway, thx again for the effort, it's really appreciated.

                      Peter

                      Comment


                      • #26
                        You're very welcome

                        Comment


                        • #27
                          Thanks, guys. You're very welcome

                          Dusan & flipside: good suggestions. Maybe I'll do a .5 upgrade to the tut.

                          Comment


                          • #28
                            Thanx for the awesome tutorial!

                            I was glued to 3ds for several hours!
                            The tutorial forfilled it's purpose and i most surtenlty have got the hang of this now.
                            I gotta admit the pointers that are mentioned about the tutorial, before making it more "official" you should maybe take them into consideration.
                            On my first few renders i got photonmaps around 700mbs and almost ran out of virtual memory.. he he.. don't ask me what i did wrong
                            Anyways i'm down to between 100-200mb and the renders come out great, render time is around 2 minutes with everything cranked up for a realistic look.

                            Once again.. top notch!

                            Comment

                            Working...