lesliejaneth / opencollada

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

Wrong texture data exporting on Maya 2008 #113

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open Maya 2008.
2.Create 2 planes on the scene.
3.Create a material with a cgFX with a diffuse texture on it.
4.Assign that material to one of the planes.
5.Create a material with the same cgFX (or a different one) with different 
diffuse texture on it. 
6.Assign this new material to the other plane.
7.Export the scene with the OpenCollada Exporter, version 1.3.0.741M

What is the expected output? What do you see instead?
The two planes are exported with different materials, but the texture is the 
same. The texture should be different, because we assigned different textures.

What version of the product are you using? On what operating system?
I'm using Maya 2008 with the OpenCollada exporter 1.3.0.741M on Windows XP.
The cgfxShader plugin version is 4.4 for Maya 2008.0 (Aug 3 2007)

Please provide any additional information below.
I have attached the maya file with the scene that I used to reproduce the bug.

Maybe I'm wrong, but looking to the source code of the exporter I think that 
the problem is in the function HwShaderExporter::setTexture inside the if:
if ( DagHelper::getPlugConnectedTo( shaderNode, attributeName, plug ) )

I believe this, because if I export the material with no texture linked and 
having a default texture in the cgFX, the exporter takes the default texture. 

Original issue reported on code.google.com by jesusflo...@googlemail.com on 10 Sep 2010 at 2:32

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by opencollada2@googlemail.com on 19 Jan 2011 at 8:20