Log in or register to post comments

Using Vuforia without the EAGLView?

December 18, 2012 - 2:51am #1


We're trying to extend Corona SD so we can use Vuforia.

The biggest problem we face is, that Corona (Enterprise) needs the EAGLView, wich is locked away in a library.

Is there a way to use Vuforia without modifying the EAGLView? We only want to scan markers with the camera. If the marker is recognized, we will trigger an animation within Coroa, so we really don't need any 3D objects.



Arthur Schenk, OCG Studios

Using Vuforia without the EAGLView?

June 25, 2013 - 2:52am #4

Thanks for this Walter :)


Using Vuforia without the EAGLView?

June 24, 2013 - 11:35am #3

Hi, Walter here from Corona Labs.

Based on a quick read of the vuforia samples, you should be able to just create a separate UIView instance. In Enterprise, the CoronaRuntime (http://docs.coronalabs.com/native/ios/CoronaRuntime.html) has a property to the top level UIViewController, so you can add any UIView, including subclasses that Vuforia creates, into the main view of the app.

As an aside, there maybe a name collision in which we already have a class called "EAGLView", so to include the code (the UIView subclass) from a Vuforia sample, you would simply need to rename the EAGLView to some other name, e.g. VuforiaView.

Hope that helps!



December 18, 2012 - 6:46am #2

Hi Arthur,

The problem you may run into is that Vuforia uses the EAGLContext to display the video feed from the camera, so you may see issues with both frameworks attempting to access this from different threads.  FYI RenderFrameQCAR() renders the video feed on a background thread and needs an EAGLContext whether or not there are any augmentations.

If you search the forums, some developers have had some success trying to integrate Cocos2D - it might help to review these as you will face similar issues, some of which relate to multi-threading around OpenGL contexts and resources.



Log in or register to post comments