Is there a texture equivalent of the Vray switch material? I guess a Vray native version of 1ofN OSL map…?
VRayUserScalar + VRayPluginTex TexColorSwitch
edit: or actually the other way around: VRayPluginTex TexColorSwitch + VRayUserScalar. or drop the Scalar if not needed
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
TexColorToFloat maybe
GPU unsupported plugin most likely.
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 =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 (303 KB)
TexFloatToColor should fix it.
but there is nothing obvious about VRayPluginTex..
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.
