Just a note that when I load a *.bmp sprite sheet or background image in irrlicht it comes out squashed looking or with horrible jaggy edges unless I use the software driver.
All the other drivers like directX8, directX9, Open GL etc look like crap when I use them to draw a bitmap in irrlicht. I'm not sure why this is because I can use direct X with the Win API directly with dx9_d3dx and it displays perfectly and even Open GL is crisp with Dark GDK.
Irrlicht does fine with the software driver however.
m0ng00se
Graphics Driver
Graphics Driver
There is a fine line between genius and insanity and I have completely erased that line.
Your graphics card can't handle non-power of two sized textures, so they are resized causing the jagged edges. It's good practice to make your textures powers of two in both dimensions, for example 512x128.
Note that a lot of older cards have a maximum of 2048 in either direction, I prefer to use a max of 1024x1024 myself
Note that a lot of older cards have a maximum of 2048 in either direction, I prefer to use a max of 1024x1024 myself
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Is that true Bitplane? They are resized?!bitplane wrote:Your graphics card can't handle non-power of two sized textures, so they are resized causing the jagged edges. It's good practice to make your textures powers of two in both dimensions, for example 512x128.
Note that a lot of older cards have a maximum of 2048 in either direction, I prefer to use a max of 1024x1024 myself
Can an non-power of two be extended to reach that in the texture buffer instead? Exemple: texture of 452 x 221 -> extended to 512x256 (By extension, mean add black (0,0,0) pixel to extent the texture limit. And display the required size.
If that is true, then I'll will use that technique manually to keep the textures and pictures clean.
Thanx for that although I did mention that Dark GDK and D3dx9 graphics engines draw my textures fine with Direct X 9 so it must be a combination of Irrlicht and the Graphics card.
I have no problem using the software driver though. My favourite thing about Irrlicht is that I can run it in a child window of a standard Win32 API GUI. Nor does it hijack the main app entry point or clash with my debug libraries. Dark GDK does fine animation but it hijacks the app and won't link with debug libraries and has it's own message loop shielded from Win API calls.
m0ng00se
I have no problem using the software driver though. My favourite thing about Irrlicht is that I can run it in a child window of a standard Win32 API GUI. Nor does it hijack the main app entry point or clash with my debug libraries. Dark GDK does fine animation but it hijacks the app and won't link with debug libraries and has it's own message loop shielded from Win API calls.
m0ng00se
There is a fine line between genius and insanity and I have completely erased that line.
If you're doing 2D only, just increase your texture sizes so they'll become power of two values (see christianclavet's posting above). I guess Dark GDK does the same thing hidden from you. This won't decrease performance as much as the software driver does. Also you're missing some quite interesting features then.