intranuclear Posted August 19, 2020 Share Posted August 19, 2020 Looking through the plugin code (using latest 3.20.0 SDK), I can see the 4 basic functions: WVR_StartCamera, WVR_StopCamera, WVR_GetCameraFrameBuffer, and WVR_GetCameraIntrinsic, but there are no examples to learn from. Having searched in the forum I think some people were having camera permission issues which I suppose are solved with setting some Android xml. Are there any blueprint functions to capture frames? Is there any C++ code example that maybe captures some frames and stores them as B&W images? I understand that the Focus is not mean for AR but I want to capture some images with the camera for detecting external trackers. Thanks. Link to comment Share on other sites More sharing options...
Corvus Posted August 20, 2020 Share Posted August 20, 2020 @intranuclear Have you checked the "WaveVRCameraTexture" for an example of handling the camera texture (frames). Also, there is the blueprint "CameraTexture_Blueprint". 2 Link to comment Share on other sites More sharing options...
intranuclear Posted August 21, 2020 Author Share Posted August 21, 2020 Excellent! Thank you very much. It is exactly what I was looking for. Link to comment Share on other sites More sharing options...
intranuclear Posted August 21, 2020 Author Share Posted August 21, 2020 Hi Corvus, So I deployed the CameraTexture_Test level on the Focus, and even though I added "android.permission.CAMERA” in Unreal 4.25.3 in the Advanced APK Packaging for Extra Permission (Project Settings), which correctly added: uses-permission android:name=”android.permission.CAMERA” to the AndroidManifest.xml, when the level starts, I still see the warning that the camera permissions were not granted. When I click (using Finch controller) on start camera, nothing happens. Did I miss a step? Thanks. Link to comment Share on other sites More sharing options...
Corvus Posted August 25, 2020 Share Posted August 25, 2020 @intranuclear You will have to also show a permissions dialog for the user to grant the camera permission. For testing you can also enable the camera permission via the app settings or adb. Link to comment Share on other sites More sharing options...
intranuclear Posted August 25, 2020 Author Share Posted August 25, 2020 Oh my, that works!!! Thank you so very very much!!! Works perfectly. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now