Announcement

Collapse
No announcement yet.

Curvature / Dirt controlled displacement?

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

  • Curvature / Dirt controlled displacement?

    Hi everyone,

    does anyone have an idea how to setup displacement controlled by the curvature node?

    My goal is to apply some displacement only to edges of the mesh - in theory the curvature node should provide just that information. I have tried to produce the effect as a diffuse map, which worked. But somehow the same node setup doesn't work for the displacement in the Object Node tree. The displacement gets applied to the whole mesh (or not at all), regardless how I try to blend or adjust the curvature node...

    Does it even work for controlling displacement?

    Thanks in advance for any help on this.

  • #2
    Did you set VrayDisplacementMod to 2D or 3D mapping mode? As far as I know, 2D mapping mode doesn't work well for rendering procedural textures (which Curvature and Dirt are) on non-planar objects. I would try 3D mapping mode for this.
    Aleksandar Mitov
    www.renarvisuals.com
    office@renarvisuals.com

    3ds Max 2023.2.2 + Vray 7 Hotfix 1
    AMD Ryzen 9 9950X 16-core
    96GB DDR5
    GeForce RTX 3090 24GB + GPU Driver 566.14

    Comment


    • #3
      I did try all mapping modes (vector, normal and 2d), no difference. Also, as a kind of "proof of principle": if I just replace the curvature node with a checker node (also a procedural) it works perfectly and just as expected (displacement only on certain parts of the checker pattern). So I think in principle my setup should work.

      Comment


      • #4
        Sorry for the double post but I thought I would add my setup:

        Click image for larger version

Name:	vray_displacement_curvature.jpg
Views:	1
Size:	415.7 KB
ID:	858405

        As said before, I want to use the curvature as mask for another procedural image (e.g. granite, or something else) to blend it to "no displacement" (50% grey, see mix node). I've played around with lots of the settings to no effect. Using the checker mask (as example) as mixing mask works perfectly.

        This makes me wonder if a) the curvature mask works at all for displacement or b) if I have to convert its output first?

        Comment

        Working...
        X