Re: [Plib-devel] texture filenames messed up
Brought to you by:
sjbaker
From: Bram S. <br...@sa...> - 2004-10-04 20:38:57
|
Erik Hofman wrote: > Fay John F Contr AAC/WMG wrote: > >> Gentlemen, >> >> I am just back from a week out. The issue mentioned is from >> two years ago. Has it now been resolved? The file loaders are very >> much outside my region of expertise. > > > You can call ssgTexturePath() prior to loading the textures/model now, > so it shouldn't be that much of a problem anymore. It is still a problem. ssgTexturePath will not fix this. The ac loader will simply mess up filenames occasionally, and this is probably because st -> setTexture( tex ) ; is never reached. Just run this prog on tuxedo.ac: // plibconvert.cxx // // Build with // g++ -o plibconvert plibconvert.cxx -lplibssg -lplibsg -lplibul -lGL #include <assert.h> #include <stdio.h> #include <plib/ssg.h> int main(int argc, char *argv[]) { if (argc!=3) { fprintf(stderr,"Usage: %s source destination\n", argv[0]); exit(1); } assert(strcmp(argv[1], argv[2])); ssgTexturePath ( "." ) ; ssgModelPath ( "." ) ; ssgAddModelFormat ( ".ssg", ssgLoadSSG , ssgSaveSSG ) ; ssgAddModelFormat ( ".3ds", ssgLoad3ds , ssgSave3ds ) ; ssgAddModelFormat ( ".ac" , ssgLoadAC3D , ssgSaveAC ) ; ssgAddModelFormat ( ".ase", ssgLoadASE , ssgSaveASE ) ; ssgAddModelFormat ( ".dof", ssgLoadDOF , NULL ) ; ssgAddModelFormat ( ".dxf", ssgLoadDXF , ssgSaveDXF ) ; ssgAddModelFormat ( ".obj", ssgLoadOBJ , ssgSaveOBJ ) ; ssgAddModelFormat ( ".tri", ssgLoadTRI , ssgSaveTRI ) ; ssgAddModelFormat ( ".md2", ssgLoadMD2 , NULL ) ; ssgAddModelFormat ( ".x" , ssgLoadX , ssgSaveX ) ; ssgAddModelFormat ( ".flt", ssgLoadFLT , ssgSaveFLT ) ; ssgAddModelFormat ( ".strip", ssgLoadStrip, NULL ) ; ssgAddModelFormat ( ".m" , ssgLoadM , ssgSaveM ) ; ssgAddModelFormat ( ".off" , ssgLoadOFF , ssgSaveOFF ) ; ssgAddModelFormat ( ".atg" , ssgLoadATG , ssgSaveATG ) ; ssgAddModelFormat ( ".qhi" , NULL , ssgSaveQHI ) ; ssgAddModelFormat ( ".wrl", ssgLoadVRML1, ssgSaveVRML1 ) ; ssgAddModelFormat ( ".iv", ssgLoadIV , ssgSaveIV ) ; ssgAddModelFormat ( ".asc", NULL , ssgSaveASC ) ; ssgEntity *e = ssgLoad(argv[1]); e->print(stdout); ssgSave(argv[2], e); } > Erik > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel |