Announcement

Collapse
No announcement yet.

OSL map support GETMTLID

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

  • OSL map support GETMTLID

    Hi,

    Is it possible to get GetMTLID.osl map support in Vray 7 gpu? It is working fine and brilliant on CPU. As soon as I switch to GPU it no longer works. I've attached a max scene file set to CPU. Do a test render. Switch to GPU, do a test render.

    It seems like GPU does not want to recognice the getattribute called "mtlID"


    Thanks
    N
    Attached Files

  • #2
    You can use the VRayMultiSubTex with Random by faceMtlID to get the same effect instead.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Thanks for the response but unfortunately VrayMultiSubTex only outputs a color value. I want to use hundreds of different Material ID's. And managing 100+ color inputs in the MultiSubTex is not an option. Getting support for GetMTLID would mean I can pipe the integer/float value into further OSL nodes that are already supported. Please consider it.

      Comment


      • #4
        I'm attaching a simple setup that renders 3025 completely unique shaded boxes. No repitition. 3025 unique material ID's piped into Random By Integer maps that generate randomized floats for gradient positioning, gradient hardness and randomizing colors.

        I am building much more complex shader setups using this system and it would be really nice if GPU could support the GetMTLID osl map. Attached images and scene file if your curious.

        Thanks,
        N
        Attached Files
        Last edited by nickolay411; 04-11-2024, 11:57 PM.

        Comment


        • #5
          Could you assign your 3025 ids to vertex color rather than material id? Then it would be easy to retrieve.

          This could likely be done with a script to convert them. Or perhaps whatever you are using to generate the ids could be modified to output vertex colors instead.

          Comment

          Working...
          X