Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GuMiner

Pages: [1]
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:

        driver->beginScene();
        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.

Pages: [1]
anything