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: 

OSL - standard_surface.osl with MtoA

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
siddhartha.basu
677 Views, 7 Replies

OSL - standard_surface.osl with MtoA

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


Labels (5)
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: siddhartha.basu

Hi, can you share more information on exactly what you want to achieve? Standard surface is built in to Arnold, so you do not need to use the reference osl implementation from github.

Cheers,
Ragnar

Message 3 of 8

standard_surface is native to all Arnold plugins.

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 4 of 8
siddhartha.basu
in reply to: Anonymous

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!

Message 5 of 8
Anonymous
in reply to: siddhartha.basu

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

Message 6 of 8
siddhartha.basu
in reply to: Anonymous

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!

Message 7 of 8
Anonymous
in reply to: siddhartha.basu

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

Message 8 of 8
siddhartha.basu
in reply to: Anonymous

Noted. Thanks again!

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

Post to forums  

Autodesk Design & Make Report