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
Original issue reported on code.google.com by
martin.b...@gmail.com
on 22 Oct 2010 at 10:30