Announcement

Collapse
No announcement yet.

Vray Switch Tex?

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

  • Vray Switch Tex?

    Is there a texture equivalent of the Vray switch material? I guess a Vray native version of 1ofN OSL map...?


  • #2
    VRayUserScalar + VRayPluginTex TexColorSwitch

    edit: or actually the other way around: VRayPluginTex TexColorSwitch + VRayUserScalar. or drop the Scalar if not needed
    Last edited by piotrus3333; 21-10-2022, 02:00 AM.
    Marcin Piotrowski
    youtube

    Comment


    • #3
      Thank you! That works great.

      Is there any way I can use a non-numeric index to pick a texture?

      For instance in user data:

      model=relic ... picks 'relic displacement' bitmap
      model=margin ... pick 'margin displacment' bitmap

      Would just save me having to refer back to a spreadsheet of my various models and their indexes

      Comment


      • #4
        TexColorToFloat maybe
        Marcin Piotrowski
        youtube

        Comment


        • #5
          huh, now I'm getting this when I open the file


          Click image for larger version  Name:	Screenshot 2022-10-21 104844.png Views:	0 Size:	5.4 KB ID:	1163100

          Comment


          • #6
            GPU unsupported plugin most likely.
            Marcin Piotrowski
            youtube

            Comment


            • #7
              Hmm, using CPU, nevermind. Bigger issue is I'm trying to use VrayUserScalar as a mask for a displacment map coming via a composite map. I'm going to be stakcing a few of these up and switching on and off by either having no value in user defined value for the model, or a user defined value of [model]=1

              This seems to work fine in to diffuse or bump slots, but not at all for the displace slot.

              Is there an obvious reason this would be the case? example here (max 2023): temp.zip

              Comment


              • #8
                TexFloatToColor should fix it.
                Marcin Piotrowski
                youtube

                Comment


                • #9
                  but there is nothing obvious about VRayPluginTex..
                  Marcin Piotrowski
                  youtube

                  Comment


                  • #10
                    Couldn't get it working. Think I've got it going with OSL switcher instead, although it's probably user error as I find the OSL way a lot more user friendly.

                    Also the Vray TexColorSwitch appears to be limited to 7 inputs? I'm going to need more than that probably.
                    Last edited by thomas_bussey; 21-10-2022, 04:57 AM.

                    Comment

                    Working...
                    X