vray OSL not working when used with a vrayExtraTex render element

Hello, well everything is in the title.
Here on the attached picture a basic osl shader which returns red.
When attached to a vrayExtraTex, the buffer is empty.

Obiviously, i don’t mind a red shader, but i wrote this one to troubleshoot the osl i am actually working on.

I checked vray documentation, such simple osl shaders are supported and extraTex is supported.
By the way, if i attach my shader to a vraymtl diffuse, it works but i need my osl to render a complete buffer.

Actually i have a workaround : i plug my vrayosl to a vrayCompTex, then the compTex to the extraTex and i have what i need.

Regards

Hi, thanks for posting. VRayExtraTex does render osl textures in my test.

Here I used a FourPointGradient.osl from 3ds Max’s built in ones
3dsmax_2024-05-21_14-02-24.gif

Here is the same test with VRayOSLTex and a test osl file:
3dsmax_2024-05-21_14-05-32.gif

Could you archive your scene and send it for review? You can do that here or trough the support contact form.

Hello
Ty for your answer. In your example it does work because the osl is also assigned to the asset. Maybe as diffuse component.
My shader have to render a complete buffer but i still need the beauty rendering. The purpose of my osl shader is to encode some datas required by another sotfware to achieve a custom result.

Hi again. There is an issue with OSL textures applied to the VRayExtraTex render element. They are not rendered on GPU/Standalone. The workaround is to use VRayCopmTex and to load the VRayOSL into it or apply the VRayOSL to an object in the scene using VRayMtl. The issue is reported as a bug in our system (VSLANG-309).