Recently, Autodesk has open-sourced the versatile standard surface shader:
https://github.com/Autodesk/standard-surface
Unable to get this to work in Maya/Katana, anywhere else.
Added shader folder path to ARNOLD_PLUGIN_PATH, compiled to .oso as well...
Don't know what I'm doing wrong.
Can someone share mtd format as well. Is the maya.id required? What about in KtoA, HtoA, etc
Any help would be appreciated. Thanks
Solved! Go to Solution.
standard_surface is native to all Arnold plugins.
Hi,
this is because we are collaborating with freelancers and other organizations who are either on different renderers (e.g., V-Ray, Clarisse, etc) as a result of which the option is to share LookDev-ed assets shaded with OSL to renderers which support OSL shaders while also maintaining visual fidelity.
We are also looking at sharing OSL lights(geometry with OSL emission() shaders)
Any help would be really appreciated. Thanks!
Create a folder somewhere, something like, C:/custom_OSL
#Maya
add this variable to Maya.env file
ARNOLD_PLUGIN_PATH = C:/custom_OSL/bin
MTOA_TEMPLATES_PATH = C:/custom_OSL/ae
#Houdini
add this variable to Houdini.env
ARNOLD_PLUGIN_PATH = C:/custom_OSL/bin
Download here:
custom_OSL.zip
Thanks a lot. Really appreciate this. This is pure gold. Saved me days of trial and error.
Apart from the OSL language specification doc, are there any guides/docs/resources you would know of to help write portable OSL shaders/lights/nodes?
Having trouble finding templates or guides for making mtd and template files.
Cutter (http://www.fundza.com/cutter/osl/arnold/getting_started/index.html) generates mtd on compiling OSL code. Wondering if there's docs to help with this.
Thanks again!
Sorry no doc, but to learn the syntax, just look at the mtoa.mtd file in:C:\Program Files\Autodesk\Arnold\maya2020\plug-ins
and the Template.py in C:\Program Files\Autodesk\Arnold\maya2020\scripts\mtoa\ui\ae