Rounded edges implementation

I understand that rounded edges uses bump mapping - and that’s why at the moment it needs a map in the bump slot - but it doesn’t seem to be the most intuitive implementation because it doesn’t function in the way you’d expect a map to.

It’s such a useful feature that maybe it could be a parameter in any v-ray material’s main rollout?

There are some advantages to having it as a texture, as opposed to material parameters:

*) We have lots of materials (VRayMtl, VRayCarPaintMtl, VRayStochasticFlakesMtl, VRayFastSSS2 mtl etc). Adding rounded edges parameters to all of them means a lot of repetitive code and potentially more bugs;
*) You may want to add rounded corners to a complex material like a VRayBlendMtl material; adding rounded edges parameters to all sub-materials is impractical; the option to use VRayBumpMtl material + VRayEdgesTex is a better solution;
*) You can attach the same VRayEdgesTex texture to multiple materials and control the rounded corners radius from just a single place, instead of having to adjust all individual materials.

Best regards,
Vlado

Although I have thought the same way as Kim - these are some very valid points.

Thanks, I see!

‘*) You may want to add rounded corners to a complex material like a VRayBlendMtl material; adding rounded edges parameters to all sub-materials is impractical; the option to use VRayBumpMtl material + VRayEdgesTex is a better solution;’

I wondered about this - I’ve never actually used the bump material. Should that material be applied to the object with the edgestex in the bump slot and then the blend material in the base mtl slot? What’s the best way to add a bump material to the in addition to the edgestex - and how will it interact with it?

Hi,

I discovered an odd behaviour with the EdgesTex in shading.

The following simple cube has the size 1x1x1m, simple material and simple sun and render setting.

Shading of the shadow on the right side seems a bit abrupt at the top edges and the corner in foreground.

When apply a chamfer to the edges of 5cm, it looks off, too, no matter of smoothing the geometry.
Changes in render settings or BRDF lead to the same result.

Any ideas what this could be?

kind regards
martin

This is normal - the rounded edges are just a bump effect, the shadows are still calculated using the original geometry. Using soft shadows might help to reduce the effect.

Best regards,
Vlado

Thanks for the reply!
And kudos for your implementation. I did a comparison with MentalRay and the way can´t handle the chamfer speaks for itself.