View Single Post
Old 30th October 2013, 06:05 AM   #8
Blue Baron
Junior Member
Junior member
 
Join Date: Aug 2013
Posts: 6
Default Re: Plugin: Another OBJ Importer/Exporter

Quote:
Originally Posted by jentron View Post
So I downloaded the source-code and made a few small changes to get it to compile under Linux. I found a couple of issues right off, I'm not sure if they're linux only or if they affect the Windows binaries as well?

1. If the material library is missing AC3D aborts. The exception thrown by cstrlist isn't being properly caught in cobj.cpp

2. fopen(foo,"rt") doesn't work to translate Mac \r line ending so Mac written .obj files don't load.

Thanks,

Ron
1. When the material library is missing, the plugin should give an error message, then continue and load the mesh using a generic material, and it does so for me.

2. cstrlist should be breaking lines on either \r or \n on line 128 of cstrlist.h (I think \r has a value of 10 and \n has a value of 13). If some other value is being used for line endings, perhaps the 10 and 13 should be replaced with '\r' and '\n' respectively?

What changes did you have to make to get it to compile under Linux?
Blue Baron is offline   Reply With Quote