Re: [Plib-devel] Update on 3ds loader
Brought to you by:
sjbaker
From: Wolfram K. <w_...@rz...> - 2000-04-07 13:31:20
|
Per Liedman <li...@ho...> wrote: > [...] 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). Great! That means the *.3ds-loader works. >* A bit worse: The model chevy.3ds seems to miss some texture coordinates - at This model has quite a lot of materials, but only two include textures. Therefore, I would guess that some polys are textured and some are just given a rgb-colour. Maybe its only those that don't have texture coordinates? I just got the newest stuff from CVS and the chevy doesn't load for me :-(. The problem is in the function parse_mapname in the lines: // since texture path is in common, just store (and compare) tex file name if ( mat_tfnames[mat_num] != (char *)NULL && strcmp( texname, mat_tfnames[mat_num] ) == 0 ) { mat_tfnames seems to be defined, mat_num is 0, but mat_tfnames[0] is not defined. >Regards, >Per Liedman Bye bye, Wolfram Kuss. |