Here are the tree pictures i have taken to show the possibly bug :
close
medium far
further
and my code is simple, it looks like this :
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main(int argc, char** argv)
{
IrrlichtDevice *device =
createDevice(EDT_OPENGL, dimension2d<s32>(640, 480), 16,
false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
IMesh* mesht = smgr->getMesh("board.obj");
IMeshSceneNode*node = smgr->addMeshSceneNode( mesht );
node->setMaterialFlag(EMF_LIGHTING, false);
ITexture *text=driver->getTexture("lolgf.PNG");
node->setMaterialTexture( 0, text);
smgr->addCameraSceneNodeFPS();
while(device->run())
{
driver->beginScene(true, true, SColor(0,200,200,200));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}