jaggy 2d textures
-
- Posts: 7
- Joined: Sun Mar 02, 2008 11:22 pm
jaggy 2d textures
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?
yeah, my car is broken, it doesn't move anymore, how do I fix this ???
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) !!!
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) !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 7
- Joined: Sun Mar 02, 2008 11:22 pm
well sorry about your car, maybe you should try a different forum for that...Acki wrote:yeah, my car is broken, it doesn't move anymore, how do I fix this ???
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) !!!
its a .png file, 32x32, heres the code
Code: Select all
driver->draw2DImage(driver->getTexture("image.png"), core::position2d<s32>(0,0);
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