robert.mcmillan Posted July 16, 2018 Share Posted July 16, 2018 Hi, Is it possible to detect when the user removes a VR headset. We can see that the display changes to a different render, but it's not obvious that you can do this through any API. I have tried isEnabled, isVisible, getViewportMode, none of these seem to work. Thanks. Robert Link to comment
silent Posted July 18, 2018 Share Posted July 18, 2018 Hi Robert, These API calls are not currently exposed into the plugins, sorry. We can extend AppVive plugin API by adding GetTrackedDeviceActivityLevel and AppOculus by adding ovr_GetSessionStatus (HmdMounted) checks in 2.8 SDK update. In case if you have purchased license you can modify these C++ plugins on your own and extend it's functionalities as you need. Thanks! 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
marc.mitchell_ Posted July 23, 2018 Share Posted July 23, 2018 (edited) Thanks @silent, I've had a look at rebuilding the plugins. What version of the Oculus SDK was used to build the AppOculus plugin? When using the latest version 1.26.0 I get and error when building: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in AppOculus.obj Changing the configuration type for the AppOculus project from Dynamic Library(.DLL) to Static Library(.Lib) allow the project to build the .lib file but I assume I need to build to .dll for this to work with Unigine. Also is there a specific version of OpenVR for the AppVive project I should use? Edited July 23, 2018 by marc.mitchell Link to comment
silent Posted July 23, 2018 Share Posted July 23, 2018 Hi Marc, libovr.lib can be rebuilt with correct flags, that's correct solution. We are using Oculus API 1.25 and OpenVR 1.0.15, but in theory you can use the latest versions (if there was not so many API changes between the 3rd party SDK releases). Thanks! 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
marc.mitchell_ Posted July 26, 2018 Share Posted July 26, 2018 On 7/23/2018 at 3:28 PM, silent said: Hi Marc, libovr.lib can be rebuilt with correct flags, that's correct solution. We are using Oculus API 1.25 and OpenVR 1.0.15, but in theory you can use the latest versions (if there was not so many API changes between the 3rd party SDK releases). Thanks! Hi Silent, Could you expand on the flags required to rebuild the oculus sdk? Although this is out side the Unigine engine it would be helpful. Link to comment
silent Posted July 27, 2018 Share Posted July 27, 2018 Robert, All the flags are described in documentation: https://developer.unigine.com/en/docs/2.7.1/principles/render/output/stereo/appoculus/#compilation (ignore notice: The 1.10 version is required). Thanks! 1 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
marc.mitchell_ Posted July 27, 2018 Share Posted July 27, 2018 Hi @silent, I've recompiled the AppOculus plugin, When i try to run a Unigine project using the oculus plugin i get the attached error message. I'm using Visual Studios 2017. I've tried oculus sdk version 1.10/1.25/1.26, Note 1.10 won't compile as it's missing some vars, this is the version it states to use in the documentation but i assume that's out of date. Link to comment
silent Posted July 30, 2018 Share Posted July 30, 2018 Hi Marc, Can you try to build plugin in Visual Studio 2013 / 2015? Maybe there some issue with a never compiler. Can you also attach an engine log file to see if there some additional errors? Thanks! 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
Recommended Posts