Hey,
I had an object with a 24 BMP on it and it worked ok but now I installed 0.4.2 and i tried to put a 32 BMP texture.When I run the program the object is white,without any texture.
Any ideas?
Thanks
32 bit texture problem
-
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact:
Re: 32 bit texture problem
check out this thread http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=517 .. use a 32bit tga or png instead of bmp .. what a waste of memory!Cleves wrote:I had an object with a 24 BMP on it and it worked ok but now I installed 0.4.2 and i tried to put a 32 BMP texture.When I run the program the object is white,without any texture.
dumb question: does it really matter? I always thought DirectX uncompresses the bitmap anyway before putting it into texture memory... I can't imagine the graphics card doing e.g. jpeg nucompression on the fly while rendering. So the only thing you would save is harddisk place.use a 32bit tga or png instead of bmp .. what a waste of memory!
But I'm not sure...
[quote="tstuefe]dumb question: does it really matter?[/quote]
when you load the texture into ram it's true that it's stored uncompressed, but when the file is sitting on your hard drive a .png can be up to 90% smaller than the same file in .bmp format AND it's a lossless compression so there is no reason not use it... .png also give you 8bit transparency, which is not available with .bmp why waste the your own (and the end-users) hd space for no reason?
all my image files for the irrlicht project i'm working on are .png (except for the .bsp textures, which are jpeg anyways which is good enough).
when you load the texture into ram it's true that it's stored uncompressed, but when the file is sitting on your hard drive a .png can be up to 90% smaller than the same file in .bmp format AND it's a lossless compression so there is no reason not use it... .png also give you 8bit transparency, which is not available with .bmp why waste the your own (and the end-users) hd space for no reason?
all my image files for the irrlicht project i'm working on are .png (except for the .bsp textures, which are jpeg anyways which is good enough).