Re: [Plib-devel] Texture loading problems (bmp/rgb)
Brought to you by:
sjbaker
From: <p.l...@ci...> - 2006-11-19 17:12:58
|
Scrive Jan Reucker <slo...@gm...>: > Am Sun, 19 Nov 2006 09:47:37 +0100 schrieb p.l...@ci...: > > > I also use BMP along with the 3DS loader and it works fine (the loader > manages > > the y-flipping so to resemble the other serious image format habit). > > Hmm, as far as I could see in the BMP loader source code it *always* > flips the image. So it might depend on the program that you create > the BMP's with if the texture loads correctly. No, it doesn't - look at the ssgLoad3ds.cxx code off the SVN: line 891: /* flip textures y-coord if texture is a BMP */ char *texture_extension = material->tex_name + strlen(material->tex_name) - 3; flip_texture_y = ulStrEqual( texture_extension, "BMP" ); > Kind regards, > Jan R. Greetings - Paolo Leoncini |