Advertisement

BGFX+QT5 rendering problems

Started by November 12, 2019 12:07 PM
2 comments, last by Peter Petrov 4 years, 9 months ago

Hello, Everyone!

 

I created skeleton program QT5 + BGFX framework. I do not use QT3D.

BGFX supports DX9, DX11, DX12, OpenGL, Vulkan, Metal - https://github.com/bkaradzic/bgfx

My basic initialization is quite simple:


void* native_window_handle = reinterpret_cast<void*>(main_window.centralwidget->winId());
bgfx::Init init;
init.type = bgfx::RendererType::OpenGL; // Or Direct3D9 or Direct3D11
init.vendorId = BGFX_PCI_ID_NONE;
init.resolution.width = width;
init.resolution.height = height;
init.resolution.reset = reset;
init.platformData.nwh = native_window_handle;
bgfx::init(init);

However, I have the following problem: 3D rendering area is flicking \ blinking. Especially on OpenGL renderer.

I put my skeleton program to GitHub - https://github.com/PetrPPetrov/bgfx-qt5-win - requires to have a valid QT5 library, CMake.

Could somebody try my application skeleton and make a suggestion?

Thank you very much!

Sorry, maybe wrong forum; how it could be moved to "Engines and Middleware"?

Advertisement

Any ideas?

This topic is closed to new replies.

Advertisement