yvonneysf / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

cgfx shader source file is not honoring the search path on export #126

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a search path for cgfx files
2. load a cgfx shader from beneath that search path into a material
3. export.

What is the expected output? What do you see instead?

The cgfx shader filename in the DAE is the path relative to the search tree. I 
expect to see the fully qualified path of the shader, or a path relative to the 
DAE file.

What version of the product are you using? On what operating system?

openColladaMaya 1.3.0.rc, win32 and win64

Please provide any additional information below.

in COLLADAMayaHwShaderExporter.cpp

change

MString shaderFxFile = shaderNodeCgfx->shaderFxFile();

to 

MString shaderFxFile = cgfxFindFile(shaderNodeCgfx->shaderFxFile());

This fixes the issue by looking up the relative filename in the search path, 
exactly as done in the cgfx plugin.

Original issue reported on code.google.com by martin.b...@gmail.com on 22 Oct 2010 at 10:30

GoogleCodeExporter commented 8 years ago
Thanks for providing this fix. It has been applied in revision 776.

Original comment by opencollada2@googlemail.com on 25 Oct 2010 at 8:03