Search the Community
Showing results for tags '2.7'.
-
Hi, we want to migrate from 2.7 to 2.8 to keep our code base up to date. We did replace all the API changes, but our application cannot initalize the Engine anymore. From the debugger I can see, that it never returns from the AsyncGPUThread::run method. Our product is already using QOpenGLWidget which needs compatibility context of OpenGL for QWidget composition to render alpha blended widgets on top. Context version is 4.6. We are managing OpenGL contexts by ourself, because we also need to support legacy libs, which use immediate opengl code. The Unigine Engine runs in own QThread to keep our user interface responsive. The current code works perfectly with 2.6 and 2.7 version of the engine. In the attachment are some log files and console output of our application. Thanks in advance for your help. Regards, Sebastian Our Code: m_renderContext = renderContext; //Own render context interface, implements shared QOpenGLContext context 4.6 compatibility context m_renderContext->bind(); //Create/get unigine app combined with different windows m_ungineAppHandle = std::make_unique<CustomUnigineApp>(); //Custom App derive from Unigine App interface, implements basic inputs m_ungineAppHandle->setWidth(1920);// just initialize things, windows size will be changed later m_ungineAppHandle->setHeight(1080); switch (renderContext->api()) { case RenderContext::Api::Opengl: m_ungineAppHandle->initGL(m_ungineAppHandle->getGLContext());// copied from qml example, getGLContext returns null but this line must somehow be important, not overridden break; default: return; } const char *args[] = { "-data_path", profileFolder.c_str(), "-engine_config", "ig.cfg" }; //Initialize the unigine engine with with arguments, version and app handle, assuming the function will never actually modify args m_engine = Unigine::Engine::init(UNIGINE_VERSION, m_ungineAppHandle.get(), 4, const_cast<char**>(args)); //The Application never returns from this function, worked in version 2.7.3 Console output 2.8: <ourApplication.cpp (197)>: OpenGL Version: 4.6 <ourApplication.cpp (484)>: ourApplication has established all core connections <ourApplication.cpp (537)>: ourApplication has received all data Loading "opengl32.dll"... OpenGL 4.5 initialization GLExt::init(): async_context wglCreateContextAttribsARB(): failed Loading "data/ig.cfg"... Config::getInt(): can't find "show_fps" int item in config Using config file "data/ig.cfg" ---- Plugins ---- ---- Application ---- Loading "openal32.dll"... video_restart log_2.8.html log_2.7.html