Log in or register to post comments

GLKit

September 21, 2015 - 2:05pm #1

Has anyone sucessfully used Vuforia with GLKit or is the only way to manage the view like the samples do?

GLKit

September 25, 2017 - 7:23am #5

The update method implementation, solely, does not solve the problem at all. According to Apple's documentation, it should be called just before a frame is rendered. But, if you don't have anything to render, it will be not rendered at all.

In fact, it is necessary to implement the view delegate method

func glkView(GLKView, drawIn: CGRect)

and render all in there. I have tried it, but with little success since Vuforia's documentation is arid as well as its sample, which are too old for modern iOS development. The samples were created before GLKit and integrating Vuforia with new technologies is being a pain.

All I'm getting for the background video is a blank black screen.

GLKit

October 19, 2015 - 4:39pm #4

Hello do you share an skeleton example project off what you describe?Should be nice  Thanxx

GLKit

October 6, 2015 - 6:36am #3

We use GLKit with Vuforia without problems.

To do so we have a GLKViewController with a GLKView. Inside the GLKViewController you have to override "- (void)update"-method (make sure to name it like this, Xcode won't autocomplete it for you) and inside this we call "renderFrame" on the GLKView instance, which is the same as the renderFrameQCAR in the samples.

When using GLKViewController you don't have to manage the buffers as in the samples, so you can safely remove all that code. Also make sure to look into GLKView/GLKViewController properties for managing OpenGL-stuff.

GLKit

September 23, 2015 - 11:35am #2

You are welcome to try using GLKit with Vuforia. GLKit was introduced in iOS 5 and the code in our samples was written at a time when earlier iOS versions were being supported. Code in the samples has been minimally updated as necessary to support core changes in the Vuforia and/or iOS APIs.

  • 3.x samples targeted iOS 4.3
  • 4.x samples targeted iOS 6.0
  • 5.x samples target iOS 7.0

 

Log in or register to post comments