GLSL shader examples won't load?


#1

I am trying to get started with GLSL shaders in Maya. I loaded the glslShader.so. I created a plane, and assigned a new shader of type GLSLShader. In the attribute editor, when I try to point at the provided example shaders, I can not load them. Maya gives this error:

// GLSLShader1SG //
// Created shader GLSLShader and assigned to the selected objects. //
setAttr -type “string” GLSLShader1.shader “/usr/autodesk/maya2016/presets/GLSL/examples/Brix.ogsfx”;
// Error: Error Loading Effect file “/usr/autodesk/maya2016/presets/GLSL/examples/Brix.ogsfx” //

Can anyone help?


#2

Which VP2.0 Rendering Engine are you using? Have you tried using OpenGL Core Profile? IIRC that’s what fixed it for me.


#3

Thank you! Thank you! Thank you!

I saw something about core profile in one of the help pages, but didn’t understand that it was a necessity. It would be nice if the error message said something about it.

Thanks!