RE: [Plib-devel] texture filenames messed up
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-10-04 18:57:19
|
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. John F. Fay joh...@eg... 850-729-6330 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Bram Stolk Sent: Tuesday, September 28, 2004 3:25 AM To: pli...@li... Subject: [Plib-devel] texture filenames messed up Hi, The issue described here: http://sourceforge.net/mailarchive/message.php?msg_id=1866706 and here: http://sourceforge.net/mailarchive/message.php?msg_id=9644979 ...may very well be caused by the fact that the code for static ssgState *get_state ( _ssgMaterial *mat ) in ssg/ssgLoadAC.cxx contains unreachable code. There are two clauses in the form of if (current_tfname != NULL) { from which the 1st one will always return. Therefore, the body of the 2nd clause is never executed. This will skip the crucial st->setTexture() This results in ssg trees, created from ac, to incorrectly use old texture filenames. You can use plibconvert.cxx, posted at ppe devel list to trigger the bug. To view ssgLoadAC.cxx, you can look here: http://cvs.sourceforge.net/viewcvs.py/plib/plib/src/ssg/ssgLoadAC.cxx?rev=1. 33&view=markup I must say it is quite a hassle to follow the trail of textures in the system, from ssgLoadAC to ssgLoad, to ssgRenderOptions, to ssgTextureArray, to ssgTexture with a detour over ssgState. Somewhere along this complicated path, the ball was dropped. Bram ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |