Announcement

Collapse
No announcement yet.

DistanceTex to mix different shaders/materials

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

  • DistanceTex to mix different shaders/materials

    I couldn't find any solution to this - other than compositing in AfterEffects: Is it possible to "blend" two shaders/materials with the distanceTex utility? How?
    Thanks for any ideas.

  • #2
    A VRayBlendMtl with VRayDistanceTex as a mask (black and white far and near colors) for the coat shader should work. Or maybe I'm misunderstanding?
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Hi Hermit,
      Thanks for answering. Plugin into the Blend Amount did work.

      Is there a way to control the size of the blend area like sharpness of the blend?. let's say area with sharp edges.
      Current Example: A pipe shows two different shaders controlled by 90° plane that is connected to the distanceTex and moves along the pipe.
      If I use a cube instead of the pipe I get two areas, and not a single wider one with sharp edges.

      Comment


      • #4
        Example: Pipe and Controller Plane
        Click image for larger version

Name:	Bildschirmfoto 2023-01-19 um 09.52.11.png
Views:	196
Size:	248.1 KB
ID:	1170492

        Comment


        • #5
          You sharpen the colors by using the inside/outside solid options in the VRay Distance Tex. Check the attached scene.
          Aleksandar Hadzhiev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            I got it - Thank you very much.

            Comment


            • #7
              Hi Aleks, I wanted to try your scene but is not a file that can be opened with 7Zip archive, nothing gets extracted.
              Is there another format you can upload?.
              Thanks
              Last edited by damaggio; 26-01-2023, 09:35 AM.
              https://www.artstation.com/damaggio

              Comment


              • #8
                Originally posted by damaggio View Post
                Hi Aleks, I wanted to try your scene but is not a file that can be opened with 7Zip archive, nothing gets extracted.
                Is there another format you can upload?.
                Thanks
                It was archived via 7Zip. Try opening it manually (right click > 7Zip > Open archive). If that doesn't work, PM me your e-mail so I cant send it.
                Aleksandar Hadzhiev | chaos.com
                Chaos Support Representative | contact us

                Comment


                • #9
                  Cool, now it opened Aleks, thank you
                  https://www.artstation.com/damaggio

                  Comment

                  Working...
                  X