|
Hello,
I’m writing an importer for FBX files using the FBX SDK, but I have a problem while importing one file.
Almost all is perfectly imported and displayed : I get the right shapes at the right positions, using the good materials. The only problem is with 2 of the objects : the nurb object and the triangulated nurb object (green spheres). All other objects are correctly imported and displayed.
My problem is that both “nurbs” are “inside-out” : The material is displayed in the internal face and not on the external one as for the other objects. I think that the problem would be that the normals had been inverted somewhere in the importation process, but I don’t see why only those two models would have the normals inverted ?
As the triangulated Nurb is a Mesh in the FBX file, it is imported exactly as all the other meshes in this file (the mesh object, the triangulated nurb surface, the triangulated patch...) which are correctly imported and displayed, so again I wonder why my importation algorithm would invert the diagonals only for one of the meshes?
So I was wondering if the error was from my importation program, and in that case if you would have an idea about where I could be wrong, or if those two objects are actually “inside-out” in the FBX file and then why the quick-time plugin doesn’t display them inside out?
Thanks for you help !
{on the picture, at the left the inside-out “triangulated nurb” object and on the right the correctly displayed “triangulated nurb surface” object}.
edit : I was thinking that the file was an example file from the sdk, but actually it is a file created by a coworker, so I add it to the thread.
| Attachment
|
|
|