Re: R: [Plib-devel] Update on 3ds loader
Brought to you by:
sjbaker
From: Per L. <li...@ho...> - 2000-04-07 17:04:03
|
On Fri, 07 Apr 2000, Wolfram Kuss wrote: > I am working under (on??) Windows NT. > It crashes while loading chevy.3ds because it tries to > reference an undefined pointer (the hex address is cdcdcdcd, > which is Visual C++ way of saying bad pointer). Ok, perhaps it is that the loader does a pointer == NULL test, but perhaps we never initialize it to NULL, and it's just a coincidence that it works on my system? I have to check it out... > I set a break point in parse_material and another one in > parse_mapname. > The first three times it finds a breakpoint is in > parse_material. Then it goes into parse_mapname. > num_materials is three. > > mat_tfnames is obviously a array of pointers. The array is defined. > However, the pointers are not. > > MAYBE the first three materials are un-textured, > the texturenames are therefore not defined and when it > finds the first mapname it tries to compare it to the undefined, > previous ones? Sounds plausible, but I haven't really looked at this part of the code, since it seemed to work on my system - obviously I will have to look into it now. > Are you (Per/Paolo) working under Windo$? > > Paolo, shall I send you the file? > > Per, have you looked at the newest CVS-code, perhaps > it is different from the code you have? Do you use MSVC 6? > Do you do a debug build? No, I work under Linux (SuSE 6.3), and as mentioned before, I don't have any trouble with this. Loading chevy.3ds produces a model of a car standing on a large square. Some texture coordinates are missing though. Thanks for the error report, I will have a look at it. Regards, Per Liedman -- / Per Liedman / li...@ho... / www.mdstud.chalmers.se/~md6pl / 031-825659 / 0705-520455 |