IGUIImage converts good qualitiy into bad :(
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
IGUIImage converts good qualitiy into bad :(
Look at these pictures:
Image:
Menu:
I loaded the picture with setImage().
Can I load also good qualitiy with IGUIImage?[/img]
Image:
Menu:
I loaded the picture with setImage().
Can I load also good qualitiy with IGUIImage?[/img]
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
Use images in sizes of base2 or quality will go down as the texture is loaded into video memory.
It also looks like your getting some majorly poor diffusion. Irrlicht used to load all textures in 16 bit mode even when video was set to 32 bit. There is a fix floating around here to fix it in 0.5 , but I thought that Niko corrected it in 0.6.
It also looks like your getting some majorly poor diffusion. Irrlicht used to load all textures in 16 bit mode even when video was set to 32 bit. There is a fix floating around here to fix it in 0.5 , but I thought that Niko corrected it in 0.6.
Crud, how do I do this again?
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
@saigumi:
How? Is it described in the documentation (I didn't look it up so far)?Use images in sizes of base2 or quality will go down as the texture is loaded into video memory.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
Well, it definatly does. The optimum size is 256x256 or lower, you seem to lose quality when you use sizes of 512x512 or bigger, I don't know why. It's not a problem of Irrlicht, any textures you make for any game ( that I have seen ) need this, I think it is something to do with the way graphics are stored in the 3D cards memory.
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
I got it!
You must set driver->setTextureCreationFlag(USE_ALWAYS_32BIT, true) und disable OPTIMIZE_FOR_SPEED and USE_ALWAYS_16BIT).
Thanks to all who helped me!
You must set driver->setTextureCreationFlag(USE_ALWAYS_32BIT, true) und disable OPTIMIZE_FOR_SPEED and USE_ALWAYS_16BIT).
Thanks to all who helped me!
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
[subliminal message]use PNG images[/subliminal message]
http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=517
http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=517
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
@cleves:
I think it increased the quality, but I'm not sure. Perhaps I only thought it
I think it increased the quality, but I'm not sure. Perhaps I only thought it
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer