Compile quad fx shaders

Compile quad fx shaders

Anonymous
Not applicable
845 Views
4 Replies
Message 1 of 5

Compile quad fx shaders

Anonymous
Not applicable

Hey guys,

 

I was wondering if anyone knows how to compile quad fx shaders to use them with MQuadRender.

 

It seems like .fxo compiled shaders are not allowed. However, in C:\\Program Files\Autodesk\Maya2016.5\bin\HLSL\  there are a couple of compiled .fx shaders and I was wondering how we can compile our own.

 

Hopefully someone can help me out, I want to let 3rd parties use the render override I'm developing, but I would prefer to give compiled code.

 

best regards,

 

Santiago.

0 Likes
Accepted solutions (1)
846 Views
4 Replies
Replies (4)
Message 2 of 5

cheng_xi_li
Autodesk Support
Autodesk Support

Hi thasanty,

 

If you are referring to shaders start with Compiled effect - Copyright 2009 Autodesk, Inc. All rights reserved. , I am afraid they are our internal compilers and can't be compiled yourself.

 

Yours,

Li

0 Likes
Message 3 of 5

Anonymous
Not applicable

Yes, I meant those compiled shaders. How unfortunate that we can't also compile our own quad shaders.

It would be amazing to enable support for .fxo compiled quad shaders in the future though, as more people are starting to use VP2 overrides!

 

thank you for your response Li

0 Likes
Message 4 of 5

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi thasanty,

 

I've just checked with .fxo shaders, they should be supported after Maya 2016.5.(http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_6644CF46_6648_45B8_A3D8_76EDD771257...)

 

You should be able to load them directly with MShaderManager right now. Please add the extension to the filename, Maya should be able to load them properly.

 

Yours,

Li

Message 5 of 5

Anonymous
Not applicable

Yeah! It indeed works, many thanks Li!

Maya won't just recognize that there is a compiled version, so I just had to write the entire filename and extension in, here is an example:

 

mShaderInstance = shaderMgr->getEffectsFileShader("yourAwesomeQuadShader.fxo", "");   

 

0 Likes