You can see where two objects meet it creates a sort of line that flickers and then finally goes away as you get closer.
It happens everywhere two objects are touching.
Code: Select all
#include <irrlicht.h>
#include <iostream>
using namespace irr;
int main()
{
IrrlichtDevice *device = createDevice(video::EDT_OPENGL, core::dimension2d<u32>(640, 480));
if (device == 0)
return 1;
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
scene::IAnimatedMesh* mesh = smgr->getMesh("BasicBuilding.obj");
scene::ISceneNode* node = 0;
if (mesh)
node = smgr->addMeshSceneNode(mesh->getMesh(0));
node->setMaterialFlag(video::E_MATERIAL_FLAG::EMF_LIGHTING, false);
node->setScale(core::vector3df(10, 10, 10));
smgr->addCameraSceneNodeFPS();
device->getCursorControl()->setVisible(false);
int lastFPS = -1;
while (device->run())
{
if (device->isWindowActive())
{
driver->beginScene(true, true, video::SColor(255, 200, 200, 200));
smgr->drawAll();
driver->endScene();
int fps = driver->getFPS();
if (lastFPS != fps)
{
core::stringw str = L"Irrlicht Engine [";
str += driver->getName();
str += "] FPS:";
str += fps;
device->setWindowCaption(str.c_str());
lastFPS = fps;
}
}
else
device->yield();
}
device->drop();
return 0;
}
https://drive.google.com/open?id=10ir-E ... z4y53zHphP