Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[MtoA] aiOSLShader not working

2 REPLIES 2
Reply
Message 1 of 3
bdewalleDD7LQ
269 Views, 2 Replies

[MtoA] aiOSLShader not working

Hi there,

MtoA 4.2.1.1

Maya 2020.2


I'm trying out OSL on MtoA, but so far I haven't been able to make the aiOSLShader node work.

Here's the really simple test code:

shader test(
    color A = color(1, 0, 0),
    color B = color(0, 1, 0),
    output color OUT = 0
)
{
    OUT = A + B;
}


I plug this in the baseColor attribute of a aiStandardSurface.

This work as expected on Vray for Maya and Mantra for Houdini, but on MtoA I just get either a grey color or a bluish mess with some buckets over the object staying grey.

It seems the problem comes up whenever I re compile the code: the very first time I create the aiOSLShader it works as expected, but changing anything will break the node which needs to be recreated from scratch.


It makes it impossible to write OSL shaders using MtoA, only an already finished shader will work.

Do you have a solution for this?

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3

Did you try with the most recent MtoA?

With MtoA 4.2.3, it works fine.

mtoa-aiosl.png



// Stephen Blair
// Arnold Renderer Support
Message 3 of 3

Thanks, I'll try it out as soon as I can.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report