1
Graphics / Re: SFML and Irrlicht: Flickering image and inverted culling
« on: January 19, 2014, 09:01:26 pm »
I've managed to remove the flickering and fix the culling issue (well, at least I see no culling issue) using this:
I think that the flickering was caused by Irrlicht pushing its updates to the screen, followed by SFML. With this code, Irrlicht is doing the screen update, and SFML is just drawing the 2D overlay.
Also, moving the
Note: Using the same setup, but with VS 2012.
Thanks for posting this code -- I was struggling to get the basic integration working at all.
driver->beginScene();
smgr->drawAll();
guienv->drawAll();
window.pushGLStates();
window.draw(position);
window.popGLStates();
driver->endScene();
smgr->drawAll();
guienv->drawAll();
window.pushGLStates();
window.draw(position);
window.popGLStates();
driver->endScene();
I think that the flickering was caused by Irrlicht pushing its updates to the screen, followed by SFML. With this code, Irrlicht is doing the screen update, and SFML is just drawing the 2D overlay.
Also, moving the
sf::Text position;
code block inside the draw loop might help a bit...Note: Using the same setup, but with VS 2012.
Thanks for posting this code -- I was struggling to get the basic integration working at all.