Hello, I have a problem with loading OBJ files created by the 'Deep Exploration file conversion utility'. After inspection I have found that the problem originates in file entries of the following form:
f 10000/12006/16804 9999/12004/16802 9921/12005/16803\ 9922/12007/16805 i.e. some lines are splitted over multiple lines. I'm not sure if this is valid OBJ file format. However, a correction would be rather simple: --- ./OSGOBJSceneFileType.cpp 2012-10-06 00:24:32.707051900 +0200 +++ f:/Work/graphic/obj-Problem/OSGOBJSceneFileType.cpp 2012-10-06 00:27:00.000000000 +0200 @@ -239,6 +239,13 @@ indexType = 0; while(token && *token) { + if (*token == '\\') { + is.ignore(1, '\n'); + is.get(strBuf,strBufSize); + token = strBuf; + indexType = 0; + continue; + } for (; *token == '/'; token++) indexType++; for (; isspace(*token); token++) Best, Johannes ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users