Custom BRDF, VRayBumpMtl works in V-Ray Standalone but not in V-Ray for Maya.

Hello!

I am working on a custom BRDF and have it working for V-Ray for 3ds max and V-Ray Standalone.

I have made a plugin for Maya so that a plugin is registered and it works also well, except that VRayBumpMtl seems to have no effect when rendering through Maya.
When setting the render settings in Maya to export a .vrscene file and rendering the same scene in V-Ray Standalone, the shader has it’s normals bumped!

Is there something I am missing?

Some hidden parameter that needs to be exposed?
A translation that needs to be done in the path-to-maya/vray/shaders/desc.txt file for the shader?

In case it is of help, here is the Maya specific part of the plugin: ThunderLoom/frontends/vraymaya at 275d84e85f0575da38ee0f9a037a414a8d779399 · ThunderLoom/ThunderLoom · GitHub

Thank you for any help with this!

I don’t see anything glaringly wrong. If you debug your shader in the Standalone and in Maya for some fixed pixel of the image, do you get a different normal?

Best regards,
Vlado

Got it working. In case someone else is having trouble with this.

In the attached zip is a simple diffuse brdf which has the problem of not having correct bump-mapping working in maya. But it does work in V-Ray standalone.
And in the included 0001-bumpmap-fix.patch file are the changes to make it work in Maya.

Kind regards
Peter.
bump_example.zip (9.58 KB)