jaggy 2d textures

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
unreal3149
Posts: 7
Joined: Sun Mar 02, 2008 11:22 pm

jaggy 2d textures

Post by unreal3149 »

i have a smooth texture but when i render it in irrlicht it looks all jaggy and not smooth any more. How do I fix this?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

yeah, my car is broken, it doesn't move anymore, how do I fix this ??? :roll:

with no information about the graphic itself or the code you used nobody will be able to help you !!!

well, I'll try a wild guess:
only use textures with dimensions in power of 2 (2^n) !!! :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
unreal3149
Posts: 7
Joined: Sun Mar 02, 2008 11:22 pm

Post by unreal3149 »

Acki wrote:yeah, my car is broken, it doesn't move anymore, how do I fix this ??? :roll:

with no information about the graphic itself or the code you used nobody will be able to help you !!!

well, I'll try a wild guess:
only use textures with dimensions in power of 2 (2^n) !!! :lol:
well sorry about your car, maybe you should try a different forum for that...

its a .png file, 32x32, heres the code

Code: Select all

driver->draw2DImage(driver->getTexture("image.png"), core::position2d<s32>(0,0);
Praetor
Posts: 42
Joined: Wed Jun 20, 2007 2:31 am

Post by Praetor »

Well 32x32 is very low res (if it is covering most of the screen or at all close to the camera then it will assuredly look jaggy since that's only 1024 total pixels in the image to be displayed on (using an 800x600 screen resolution for this example) a 480000 total pixel render window).
"Surely we don’t need to waste resources on pathfinding; they just need to walk along the shortest route from one place to another." - EA Producer
Post Reply