Results 1 to 2 of 2

Thread: Issue with per-vertex geometry tangent export from Maya

  1. #1

    Issue with per-vertex geometry tangent export from Maya

    While trying to track down an issue with texture tangents, I happened to be looking through the geometric tangent code, and something caught my eye: It appears that when exporting using per-vertex tangents, a default-initialized MObject is passed to a MItMeshVertex. This would appear to short-circuit the intended iteration over the mesh's verticies, leaving the output tangents with their default values (all 0's). Exporting a mesh with per-vertex tangents (basically a completely unsmoothed mesh) does indeed result in all 0 tangent values.

    This is in ColladaMaya 0.89. The default-initialized MObject is on line 176 in CMeshExporter.cpp.

    My Maya API chops are rusty enough that I'm not sure of a fix, but if I had to guess, I'd say:
    Code :
    MObject meshObject(materialMeshFn.object());

    So, does this sound reasonable, or should I switch to decaf?

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Feeling Software, Montreal, Quebec
    Thanks for the correction, that is in fact a mistake in the plug-in.

    Guillaume Laforte
    Feeling Software Inc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts