Announcement

Collapse
No announcement yet.

VRayDistanceTex + distance to VRayDisplacementMod object not working?

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

  • VRayDistanceTex + distance to VRayDisplacementMod object not working?

    Is this a limitation of the VRayDistanceTex?

    I'm trying to get water in deep puddles to kind of "crawl up" the edges a bit via a bump map.
    What I thought is just plug in a VRayDistanceTex into the bump slot of the water object (via VRayColor2Bump) which calculates distance from the displaced surface.
    What I noticed is that generally it works but only to the extend of giving me the distance between the water and the undisplaced object. Is this a limitation or do I have an error in my thought process?

    Plane A at z = 0 (ground)
    Plane B at z = -1 (water)

    Plane A gets displaced (also in negative range) then the Plane B penetrates at some areas and forms the puddles.

    With the VRayDistanceTex I always get a solid color, no edges. I have red as near color and green as far color. When I change the distance, I always get either full red, full green or a full mixture with no edges of the both which leads me to the impression it calculates distance on the undisplaced surface.

    If so could we get that changed? I guess it would be useful for some situations.

    Is there a workaround to get this effect?
    Software:
    Windows 7 Ultimate x64 SP1
    3ds Max 2016 SP4
    V-Ray Adv 3.60.04


    Hardware:
    Intel Core i7-4930K @ 3.40 GHz
    NVIDIA GeForce GTX 780 (4096MB RAM)
    64GB RAM


    DxDiag

  • #2
    try setting the displaced object to static geo.
    It looks like you may be running into a wrong operations order.
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      Just tried it, same effect .
      I'll set up a simpler scene and try it there really quick, in case I forgot something.
      Software:
      Windows 7 Ultimate x64 SP1
      3ds Max 2016 SP4
      V-Ray Adv 3.60.04


      Hardware:
      Intel Core i7-4930K @ 3.40 GHz
      NVIDIA GeForce GTX 780 (4096MB RAM)
      64GB RAM


      DxDiag

      Comment


      • #4
        Yup, definitely doesn't work - no matter if static geometry or not.

        Scene file (3ds Max 2014)
        https://www.dropbox.com/s/2cp8ptjl0d...ceTex.rar?dl=0
        (this thime, displacement only done in positive Z, so the lowest point on the displaced object is actually where the plane is at)

        Render:
        Click image for larger version

Name:	Displacement_DistanceTex.jpg
Views:	1
Size:	103.9 KB
ID:	862437
        Software:
        Windows 7 Ultimate x64 SP1
        3ds Max 2016 SP4
        V-Ray Adv 3.60.04


        Hardware:
        Intel Core i7-4930K @ 3.40 GHz
        NVIDIA GeForce GTX 780 (4096MB RAM)
        64GB RAM


        DxDiag

        Comment


        • #5
          Couldn't you try using vrayEdgeTex with rounded corners?

          Comment


          • #6
            I'll try. And you got me thinking about using ambient occlusion, that might work, too. But getting it to work with the VRayDistanceTex would be the best solution .

            I'll try and report back.
            Software:
            Windows 7 Ultimate x64 SP1
            3ds Max 2016 SP4
            V-Ray Adv 3.60.04


            Hardware:
            Intel Core i7-4930K @ 3.40 GHz
            NVIDIA GeForce GTX 780 (4096MB RAM)
            64GB RAM


            DxDiag

            Comment


            • #7
              I ditched the water aspect I was working on there, therefore nothing to report back yet. What would be good to know is if this is an issue being worked on by CG?
              Software:
              Windows 7 Ultimate x64 SP1
              3ds Max 2016 SP4
              V-Ray Adv 3.60.04


              Hardware:
              Intel Core i7-4930K @ 3.40 GHz
              NVIDIA GeForce GTX 780 (4096MB RAM)
              64GB RAM


              DxDiag

              Comment


              • #8
                Originally posted by Art48 View Post
                I'll try. And you got me thinking about using ambient occlusion, that might work, too. But getting it to work with the VRayDistanceTex would be the best solution .

                I'll try and report back.
                Either would need to have the mesh as displaced in ram before the render process starts. So static geo would still be the way to go i guess.
                Lele
                Trouble Stirrer in RnD @ Chaos
                ----------------------
                emanuele.lecchi@chaos.com

                Disclaimer:
                The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                Comment


                • #9
                  Yeah I see that - but since that doesn't work either I'm gonna assume it's a bug and therefore needs to be adressed.
                  Software:
                  Windows 7 Ultimate x64 SP1
                  3ds Max 2016 SP4
                  V-Ray Adv 3.60.04


                  Hardware:
                  Intel Core i7-4930K @ 3.40 GHz
                  NVIDIA GeForce GTX 780 (4096MB RAM)
                  64GB RAM


                  DxDiag

                  Comment


                  • #10
                    Originally posted by Art48 View Post
                    Yeah I see that - but since that doesn't work either I'm gonna assume it's a bug and therefore needs to be adressed.
                    bah, i had missed your earlier replies. ignore me.
                    Lele
                    Trouble Stirrer in RnD @ Chaos
                    ----------------------
                    emanuele.lecchi@chaos.com

                    Disclaimer:
                    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                    Comment


                    • #11
                      So, confirmed, it doesn't work, but i feel at least with the static geo option it should.
                      I have absolutely zero idea about potential performance issues, having to trace all those implicit triangles, but that's luckily for us all out of my hands.
                      Lele
                      Trouble Stirrer in RnD @ Chaos
                      ----------------------
                      emanuele.lecchi@chaos.com

                      Disclaimer:
                      The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                      Comment

                      Working...
                      X