Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#441 OBJ Export for XNA 4

open
nobody
None
5
2011-05-19
2011-05-19
Anonymous
No

I'm using the XNA 4 obj importer content pipeline same from AppHub, but it generates a strange "index out of array" error when it tries to built the file, starting with the f entries in the OBJ. It seems to load the v and vn vectors just fine. The code basically runs the f entries through the .NET RegEx.Split method, but it chokes on those entries.

I searched the bug database for OBJ related errors and I did read something about a problem with the character(s) used to designate a line split, perhaps .NET has a problem reading the file because of this? The logic is pretty basic and looked right to me, it choked at the beginning of the line like it couldn't even read the f entry properly.

Discussion


  • Anonymous
    2011-05-19

    "obj importer sample" not "obj importer same"

     

  • Anonymous
    2011-05-19

    Incidentally, if I load the mesh up with MeshLab and then save it again the model loads fine in the XNA obj content importer.

     
  • Peter Eastman
    Peter Eastman
    2011-05-19

    This sounds like a bug in XNA, not in AoI. Is there any indication AoI is producing invalid files? If not, I'm going to close this report.