Log in or register to post comments

recognize target and tracking augmented reality but don’t display the texture with capture from camera

July 7, 2016 - 4:16pm #1

Unity versión 5.2.1f1
Vuforia 5.5.9
Android api 22
iOS 9.3.2
Xcode 7.3.1
CardBoard SDK Android but don’t remember Version.

With android i don’t have troubles, but with iOS, i need your help.

The build can recognize target and tracking augmented reality but don’t display the texture with capture from camera. Only See Black Screen. same to when you test in unity Editor the project. if you don’t use webcam.

I update iOS, and Xcode and fail same.

In log i see two Errors

2016-07-07 18:08:26.485 BusinessCard[269:15701] ERROR/AR(269) 2016-07-08 18:08:26: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized.
device_SetMode

2016-07-07 18:08:26.691 BusinessCard[269:15701] ERROR/AR(269) 2016-07-08 18:08:26: VideoBackgroundConfig with screen size of zero received, skipping config step

Any Solution?

 

Full log



Quote:

2016-07-07 18:08:23.314 BusinessCard[269:15701] -> registered mono modules 0x10173d000 -> applicationDidFinishLaunching() -> applicationDidBecomeActive() Requesting Native Resolution Renderer: Apple A8X GPU Vendor:   Apple Inc. Version:  OpenGL ES 2.0 Apple A8X GPU - 77.14 GLES:     2 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_r ead_format GL_IMG_texture_compression_pvrtc OPENGL LOG: Creating OpenGL ES 2.0 graphics device Initialize engine version: 5.2.1f1 (44735ea161b3) Setting BehaviourComponentFactory Vuforia.VuforiaBehaviour:Awake() (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 0 target (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 1 espacio virtual (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 2 VideorReel (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 3 Expericencia interactiva (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) Setting Unity version 5.2.1 QCAR Extension version 5.5.9 Initializing Vuforia... 2016-07-07 18:08:26.305 BusinessCard[269:15701] INFO/AR(269) 2016-07-08 18:08:26: Vuforia SDK version 5.5.9 2016-07-07 18:08:26.432 BusinessCard[269:15701] Rendering mode set to: OpenGL ES 2.0 2016-07-07 18:08:26.456 BusinessCard[269:15701] Rendering mode set to: OpenGL ES 2.0 Vuforia initialization successful (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) trackerManagerInitTracker trackerManagerInitTracker SetHint (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) SetHint (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) SetHint (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) device_SetViewerPresent 2016-07-07 18:08:26.485 BusinessCard[269:15701] ERROR/AR(269) 2016-07-08 18:08:26: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized. device_SetMode dataSetExists objectTrackerCreateDataSet 2016-07-07 18:08:26.489 BusinessCard[269:15701] INFO/AR(269) 2016-07-08 18:08:26: ObjectTracker: Successfully created dataset Successfully created data set. dataSetLoad dataSetGetNumTrackableType dataSetGetTrackablesOfType dataSetGetTrackableName objectTargetGetSize imageTargetGetNumVirtualButtons dataSetGetNumTrackableType dataSetGetNumTrackableType objectTargetSetSize Found Trackable named Tarjetas_05 with id 1 Vuforia.DatabaseLoadAbstractBehaviour:LoadDatasets() Vuforia.VuforiaAbstractBehaviour:Start() (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) objectTrackerActivateDataSet StartVuforia (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) cameraDeviceInitCamera cameraDeviceGetCameraDirection cameraDeviceSelectVideoMode cameraDeviceStartCamera trackerStart 8 trackerStart 7 Creating a Mono Camera Configuration (Check for reflection) (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 2016-07-07 18:08:26.691 BusinessCard[269:15701] ERROR/AR(269) 2016-07-08 18:08:26: VideoBackgroundConfig with screen size of zero received, skipping config step DESPIERTA (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) Trackable Tarjetas_05 lost (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) 2016-07-07 18:08:26.694 BusinessCard[269:15759] Deleting old image data @ 0x0 2016-07-07 18:08:26.694 BusinessCard[269:15759] Created new image data buffer @ 0x1094e4000 w/ 460800 bytes cameraDeviceGetVideoMode cameraDeviceGetVideoMode Trackable Tarjetas_05 lost Vuforia.StateManagerImpl:UpdateTrackablePoses(Transform, TrackableResultData[], Int32, Int32, Boolean) Vuforia.VuforiaManagerImpl:UpdateTrackers(FrameState) Vuforia.VuforiaManagerImpl:Update(ScreenOrientation, Boolean) Vuforia.VuforiaAbstractBehaviour:UpdateStatePrivate(Boolean, Boolean) (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) Setting up 1 worker threads for Enlighten.   Thread -> id: 16ee1f000 -> priority: 1 cameraDeviceGetVideoMode Err::hits.Length0 (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) cameraDeviceSetFocusMode Requested Focus mode FOCUS_MODE_TRIGGERAUTO successfully. (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) cameraDeviceSetFocusMode Requested Focus mode FOCUS_MODE_TRIGGERAUTO successfully. (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) Box(Clone) (UnityEngine.GameObject) (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64) Y (YBeheaviour) (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

recognize target and tracking augmented reality but don’t display the texture with capture from camera

July 11, 2016 - 4:08pm #4

Yeah, That solve my trouble. Update Unity, Vuforia and Google VR. Thanks

recognize target and tracking augmented reality but don’t display the texture with capture from camera

July 8, 2016 - 3:03am #3

Some additional hints:

  • upgrade at least to Unity 5.2.4, or even better, Unity 5.3.5.
  • make sure to review carefully the "iOS specific" instructions in here:

    https://developer.vuforia.com/library/articles/Solution/Integrating-Cardboard-to-the-ARVR-Sample

    In particular, double-check that:

  • you have removed the source file Plugins/iOS/VuforiaNativeRendererController.mm.
  • you have edited the CardboardAppController.mm file as below:

 

// Add the following import:

#import "VuforiaRenderDelegate.h"

extern "C" {

    // Add the following declarations:

    extern void VuforiaRenderEvent(int eventId);
    extern void VuforiaSetGraphicsDevice(void* device, int deviceType, int eventType);

    // ... other code ...
}

@implementation CardboardAppController
 
// ... other methods ...
 
// Add the following method to the end of the CardboardAppController
// implementation just before the "pause:(bool)paused" method:
 
- (void)shouldAttachRenderDelegate
{
    self.renderDelegate = [[VuforiaRenderDelegate alloc] init];
  
#if UNITY_VERSION>434
    UnityRegisterRenderingPlugin(&VuforiaSetGraphicsDevice, &VuforiaRenderEvent);
#endif
 
}

recognize target and tracking augmented reality but don’t display the texture with capture from camera

July 7, 2016 - 5:56pm #2

Hello,

Please note that your Unity version does not meet the minimum requirements for 5.5 SDK:

https://developer.vuforia.com/library/articles/Solution/Vuforia-Supported-Versions

I would suggest upgrading and seeing if the problem persists.

Thanks.

Log in or register to post comments