Alex_smart Posted August 4, 2020 Share Posted August 4, 2020 Hello! I'm trying to add VR support to existing Unigine application developed in C++. I copied AppOculus plugin to application folder. When I starting application Unigine complains about missing CreatePlugin() function: 14:59:55 ---- Plugins ---- 14:59:55 Loading "AppOculus_double_x64.dll"... 14:59:55 Loading "C:/project/Bin/AppOculus_double_x64.dll"... 14:59:55 Loading "C:/project/Bin/AppProjection_double_x64.dll"... 14:59:55 Loading "C:/project/Bin/Unigine_double_x64.dll"... 14:59:55 EnginePlugins::addPlugin(): can't find CreatePlugin() function in "C:/project/Bin/Unigine_double_x64.dll" library 14:59:55 Plugins initialization: 28ms Any ideas how this issue can be solved? Link to comment
silent Posted August 4, 2020 Share Posted August 4, 2020 Hi Alex, You can use only single App* plugin at once. In your case you are loading AppProjection with AppOculus - this will not work. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Alex_smart Posted August 4, 2020 Author Share Posted August 4, 2020 Thanks for info! Now I got next error: 16:09:33 AppOculusPlugin::AppOculusPlugin(): App is not NULL I'm passing -extern_plugin AppOculus option to init function and non-null app argument. What is correct way to init AppOculus plugin? Link to comment
silent Posted August 4, 2020 Share Posted August 4, 2020 If you are using non-default main app (engine is embedded into qt /sdl or wpf/winforms) none of the app plugins will work. More information you can find in the documentation: https://developer.unigine.com/en/docs/2.12/principles/render/output/stereo/appoculus/ How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Alex_smart Posted August 5, 2020 Author Share Posted August 5, 2020 15 hours ago, silent said: If you are using non-default main app (engine is embedded into qt /sdl or wpf/winforms) none of the app plugins will work. More information you can find in the documentation: https://developer.unigine.com/en/docs/2.12/principles/render/output/stereo/appoculus/ Yes, we are using non-default main app. Engine is embedded into qt. I followed your link but I failed to find what should I do in this situation. Is it possible to make non-default main app compatible with plugin? Link to comment
silent Posted August 5, 2020 Share Posted August 5, 2020 In that case you need to write your own Oculus rendering implementation that will be embedded into your Qt app. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Alex_smart Posted August 5, 2020 Author Share Posted August 5, 2020 Bad news... but thanks for quick reply! Link to comment
Recommended Posts