[Plib-devel] Update on 3ds loader
Brought to you by:
sjbaker
From: Per L. <li...@ho...> - 2000-04-06 21:45:26
|
I sat down and did some work on the 3ds loader this evening, and it works better now. However, I have discovered some major weirdness that I'm not happy about: * One of the models Wolfram Kuss sent me, testquader.3ds, includes a texture called SNOO-CAT.BMP. I never got this texture to show in plib, which I hope is because the BMP image loader does something weird (I think Steve has said several times that the bmp format isn't to be trusted) - I can get it to work if I replace it with another texture (rgb, for example). * A bit worse: The model chevy.3ds seems to miss some texture coordinates - at least my loader can't find them. There are some texture coordinates specified, but for some parts they just seem to be missing. Anyone who knows if there is another chunk than CHUNK_MAPLIST (0x4140) which is used by 3ds for storing map coordinates? Perhaps there is some intelligent default behaviour? For now, I just don't give any coords to ssg if they're missing, and display a warning. The latest version of ssgLoad3ds.cxx can be downloaded from http://www.mdstud.chalmers.se/~md6pl/ssgLoad3ds.cxx This version also includes the improvments made by Paolo Leoncini (a lot of texture stuff), and all long integers are replaced by int. Even if not perfect, the models come out looking ok, and it doesn't crash any longer (quite an improvment, if you ask me :) Regards, Per Liedman -- / Per Liedman / li...@ho... / www.mdstud.chalmers.se/~md6pl / 031-825659 / 0705-520455 |