Hi guys,
I'm trying to wrap my head around reading in and modifying textures with OSL in VRay... What is the recommended workflow here?
The standard OSL way using the texture() call with specifying a filename as a string does not seem to work. I read one recommended way of doing it instead on the OSL mailing list that suggested using a string to pipe in a texture:
Which works fine if I have one shader.
If I try use a second instance of that VRayTexOSL node with a different texture map plugged in it will only show one of the textures in the render... Am I missing something obvious here or is this a bug?
I tested it in both Max and Maya... Both show the same issues. Using VRay 3.6.
Any help would be very appreciated!
Thanks!
I'm trying to wrap my head around reading in and modifying textures with OSL in VRay... What is the recommended workflow here?
The standard OSL way using the texture() call with specifying a filename as a string does not seem to work. I read one recommended way of doing it instead on the OSL mailing list that suggested using a string to pipe in a texture:
shader vraytest(
string input_tex = "",
output color result = 0.0
)
{
result = texture(input_tex,u,v);
}
string input_tex = "",
output color result = 0.0
)
{
result = texture(input_tex,u,v);
}
Which works fine if I have one shader.
If I try use a second instance of that VRayTexOSL node with a different texture map plugged in it will only show one of the textures in the render... Am I missing something obvious here or is this a bug?
I tested it in both Max and Maya... Both show the same issues. Using VRay 3.6.
Any help would be very appreciated!
Thanks!