Announcement

Collapse
No announcement yet.

OSL texture calls not working properly?

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

  • OSL texture calls not working properly?

    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:

    shader vraytest(
    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.

    Click image for larger version

Name:	osltextvrayannotated.jpg
Views:	58
Size:	53.6 KB
ID:	971016

    Any help would be very appreciated!

    Thanks!
Working...
X