Dirt radius

Hi,

The dirt texture has something of a unique thing with the radius. Usually when a texture is plugged into an input, the corresponding value gets disable (the texture overrides the value). But with the radius input of the dirt texture this does not happen, when using a texture the value still works, but in a strange way since the input texture is not modulating the radius value, you need to set the white point of the texture to the same value in the radius parameter, this is quite counter intuitive compared to the rest of Houdini and other V-Ray nodes.
Can you make the radius either be modulated by the input texture, or the radius value be overwritten by the texture?

Using the radius only:


Plugging a texture with a 0-1 range:

Setting the white point of the noise to the same value as the radius:

Best,
David.

Hi David,

Your texture is multiplied by the radius value here(similar to “multiply” functionality in Curvature texture in Arnold for example)
This way I can control strength of my dirt/dust in one place, without needing to color correct the image map. I’ve used this heaps in my Vray shading, in every project honestly
This is the same functionality in pretty much all other Vray plugins, Myself and other people requested this early in the Beta couple of years ago(we wanted this functionality similar to Vray for 3Ds Max)

Screenshot_53.jpg

It is part of the documentation for the dirt

Hey,

That’s not what is happening at the moment as you can see from my screenshots. The texture is not properly modulating/multiplying the radius value.

From the documentation;
“The texture intensity is multiplied by the radius to calculate the final radius at a given surface point. If the texture is white at a given surface point, the full radius value is used. If the texture is black, a radius of 0.0 is used.”
In the first image you can see that the dirt radius is set to 0.05, in the second a noise map was added and its values range from 0 to 1, so in white parts of the texture a radius of 0.05 should be used, but we can see that is not what’s happening, a value of 1.0 is being used there since the whole box is affected. The white value of the texture is lowered in the 3rd image to 0.05 and only then the correct radius is achieved.

Best,
​​​​​​​David.

Radius should multiply if texture is connected. Fix push to 5.x.

@david Thanks for explaining that, sorry I didn’t understand the issue fully yesterday.. was a bit late :slight_smile:
And thanks Andrei for the fix !

Thanks for the fix.
This raises an issue actually, everyone upgrading will have their dirt textures behave differently and this will break their current shaders, as long as this is communicated to the users, there should be no problem. Please see my wishlist request: https://forums.chaosgroup.com/forum/v-ray-for-houdini-forums/v-ray-for-houdini-wishlist/1103427-semantic-versioning-for-nightlies-and-production-builds

All good :slight_smile:

Best,
David.