DirectX tile problem:
http://img385.imageshack.us/my.php?image=ge4sg7.png
The problem is the line of black pixels between each row of tiles. That shouldn't happen. Indeed, once switched to OpenGL mode, it draws perfectly (aside from the 1.4+ scaling bug which is already known.)
It works correctly in Irrlicht version 1.3.1. He tried 1.4.1 and the SVN trunk and they both failed to work.
Code: Select all
// Render Tiles
// Level is 64x64 tiles. Tiles are 16x16 pixels.
ITexture *tileset = driver->getTexture("images/tiles.png");
if (tileset != 0)
{
for (int i = 0; i < 64*64; i++)
{
driver->draw2DImage(tileset, core::position2d<int>(((i % 64) * 16), ((i / 64) * 16)), core::rect<int>(0, 0, 16, 16));
}
}