Announcement

Collapse
No announcement yet.

vray OSL not working when used with a vrayExtraTex render element

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

  • 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
    Attached Files

  • #2
    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
    Click image for larger version

Name:	3dsmax_2024-05-21_14-02-24.gif
Views:	156
Size:	488.4 KB
ID:	1208824

    Here is the same test with VRayOSLTex and a test osl file:
    Click image for larger version

Name:	3dsmax_2024-05-21_14-05-32.gif
Views:	143
Size:	1.04 MB
ID:	1208825

    Could you archive your scene and send it for review? You can do that here or trough the support contact form.
    Vladimir Krastev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      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.

      Comment


      • #4
        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).

        Vladimir Krastev | chaos.com
        Chaos Support Representative | contact us

        Comment

        Working...
        X