Announcement

Collapse
No announcement yet.

Controlling the near/far transition strength of VrayDistanceTex?

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

  • Controlling the near/far transition strength of VrayDistanceTex?

    Is there a way to control the strength of the near/far transition in VrayDistanceTex? I need to achieve a certain effect but the current transition which appears to be linear isn't working for me. I would like to make it more exponential so that I have stronger/denser distribution at the very start (the near color/texture) and almost immediately after that have it fade away smoothly to the far color/texture. Please check the screenshot to see what I mean:

    Click image for larger version

Name:	VrayDistanceTex_StrengthFalloff.jpg
Views:	1
Size:	53.6 KB
ID:	882833
    Last edited by Alex_M; 22-09-2015, 12:34 PM.
    Aleksandar Mitov
    www.renarvisuals.com
    office@renarvisuals.com

    3ds Max 2023.2.2 + Vray 6 Update 2.1
    AMD Ryzen 7950X 16-core
    64GB DDR5
    GeForce RTX 3090 24GB + GPU Driver 551.86

  • #2
    Put it into an output map and use the curve of that!

    Comment


    • #3
      Didn't think about that! I'll try it out. Thanks.
      Aleksandar Mitov
      www.renarvisuals.com
      office@renarvisuals.com

      3ds Max 2023.2.2 + Vray 6 Update 2.1
      AMD Ryzen 7950X 16-core
      64GB DDR5
      GeForce RTX 3090 24GB + GPU Driver 551.86

      Comment


      • #4
        Vlado popped up the same trick for use in toughening up the look of the dirt map - should work the same!

        Comment


        • #5
          Hmm.. I tried this but it doesn't change things much. I even tried putting the VrayDistanceTex in a CC node with Gamma of .454 but it just shrinked the overall spread of the effect and didn't modify the attenuation. Interestingly, if I disable "sRGB" in the VFB in order to see the render in linear space,the falloff is what I want it to be. Here's a new screenshot:

          Click image for larger version

Name:	VrayDistanceTex_Falloff.jpg
Views:	1
Size:	281.9 KB
ID:	858386
          Aleksandar Mitov
          www.renarvisuals.com
          office@renarvisuals.com

          3ds Max 2023.2.2 + Vray 6 Update 2.1
          AMD Ryzen 7950X 16-core
          64GB DDR5
          GeForce RTX 3090 24GB + GPU Driver 551.86

          Comment


          • #6
            If you like the non-sRGB look (in sRGB space) just use two .454545 colorcorrect nodes. I'm using one CC at .5 right now to simulate omni lights in a particle field. Works very nicely.
            Gavin Greenwalt
            im.thatoneguy[at]gmail.com || Gavin[at]SFStudios.com
            Straightface Studios

            Comment


            • #7
              I stuck in one extra point into the output curve to drag the mids further down and right and got this:

              Original

              Click image for larger version

Name:	output_off.jpg
Views:	1
Size:	7.8 KB
ID:	858388

              With output

              Click image for larger version

Name:	output_on.jpg
Views:	1
Size:	6.1 KB
ID:	858389

              Comment

              Working...
              X