[Plib-cvs] plib/src/ssg ssgLoadMDL.cxx,1.50,1.51
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2003-12-14 09:48:54
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv10457 Modified Files: ssgLoadMDL.cxx Log Message: "RIFF" is now also handled when it appears at an arbitrary poosition in the file. Red herring "RIFF"s are ignored. Implemented opcode AE/AF for matrix transforms. Trying to handle the strange size of some models. Minor fixes. More debug output. Index: ssgLoadMDL.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- ssgLoadMDL.cxx 8 Dec 2003 18:07:04 -0000 1.50 +++ ssgLoadMDL.cxx 13 Dec 2003 23:09:16 -0000 1.51 @@ -1464,9 +1464,9 @@ for (int i = 0; i < count; i++) { - TheVertexList[i].p[0] = ulEndianReadLittleFloat(fp) / 1E6; - TheVertexList[i].p[1] = ulEndianReadLittleFloat(fp) / 1E6; - TheVertexList[i].p[2] = ulEndianReadLittleFloat(fp) / 1E6; + TheVertexList[i].p[0] = ulEndianReadLittleFloat(fp); // / 1E6; + TheVertexList[i].p[1] = ulEndianReadLittleFloat(fp); // / 1E6; + TheVertexList[i].p[2] = ulEndianReadLittleFloat(fp); // / 1E6; TheVertexList[i].n[0] = ulEndianReadLittleFloat(fp); TheVertexList[i].n[1] = ulEndianReadLittleFloat(fp); [...156 lines suppressed...] + printf("found a good RIFF header at address %lx\n", addr); + FindBGLBeginRIFF(fp); + break; // breaks the while(!feof(fp)) + } + } + } + } + } if(feof(fp)) { @@ -1795,7 +1877,7 @@ #ifdef DEBUG fclose(wkfp); #endif - delete curr_vtx_; +// :-((( delete curr_vtx_; delete curr_norm_; DEBUGPRINT("\n" << vertex_array_->getNum() << " vertices\n"); |