Log in or register to post comments

Why is QCARUtils is embedded into tons of UIKit classes in samples?

September 5, 2013 - 7:18am #1

Is there any specific reason behind the UIKit hierachy can be found in sample files?

I mean the whole stuff seems to stacked into a UIImageView (?), with two controllers, and superclasses that uses subclasses of one of their properties (ARViewController that uses EAGLView directly?)... ...directly sticked to the root window...

Couldn't this whole... ...architecture omitted?
It is really hard to fit into an existing project where AR capabilities are just another feature among many others...

I'd really like some stuff that uses a single QCARUtils instance (or a subclass of it at most), with the minimum viable views that is needed to display the augmentation. After that I could embed it into whatever I want to.

Is there a sample somewhere that incorporates minimum viable elements only?

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 7:51am #11

Thanks there.

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 7:50am #10

yes - free even if you release a paid app.

 

N

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 7:49am #9

NalinS wrote:

Why is it free anyway?

That's the way it is at the moment - enjoy!

 

N

Is it free for commercial purposes (in a closed source form) like a paid app in the AppStore? I simply cannot get this piece of information from https://developer.vuforia.com/legal/license.

 

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 3:21am #8

Why is it free anyway?

That's the way it is at the moment - enjoy!

 

N

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 3:18am #7

NalinS wrote:

Great to hear and thanks for sharing :)

N

Me thanks for providing such robust QCARUtils.

---

Why is it free anyway?
Is there some weird stuff pointed out in terms I didn't catch?

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 10, 2013 - 3:04am #6

Great to hear and thanks for sharing :)

N

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 9, 2013 - 7:40am #5

Now I got it almost done. Problem is that the code is now somewhat contains production details, so I cannot share the whole project anymore... :(

Here's some Gists about the resulting architecture.

Being a Vuforia client is that you subclass/implement a single controller, like: https://gist.github.com/borbas-geri/6496270 (no app window, or app delegate hooks, no global instances of QCARUtils).

Textures are sticked right to the objects, so no separate texture lists maintained anymore. I created an object class that is now extendable, and values are not global anymore. A single card model is something like: https://gist.github.com/borbas-geri/6496313

Creating many cards with different textures then just goes by subclassing the card class, then override texture value, like: https://gist.github.com/borbas-geri/6496358

Later on these objects could be initialized from a well known format, like OBJ, or FBX.

To integrate it into an existing UIKit design, it takes really no efforts, like: https://gist.github.com/borbas-geri/6496381 (only thing to hook up is the changing of the interface orientations).

Who knows, the SDK may get inspired from these factorings. Now I can integrate awesome vuforia features easily into my existing UIKit stuff, actually insert into any kind of view/controller hierarchy, which is cool.

 

 

 

 

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 6, 2013 - 9:01am #4

Thanks for the update, and good luck with continued progress.

Yes there is plenty of scope for improvement here, and look forward to your template.  I did post up some sample instructions for how to embed in a tabbed application which may have a few ideas regarding orientation for you: 

https://developer.vuforia.com/forum/ios/integrating-sample-codes-tabbed-application

... but you may have already gone past this :)

 

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 6, 2013 - 8:43am #3

Thanks for the response.

Actually I got myself into defactor the ImageTarget sample. :)

It ended up with a sole controller (not even view controller just an NSObject) that owns a QCARUtils instance (which is not a global singleton anymore), and a single AR_EAGLView instance, nothing more.

Clients only needs to subclass this sole controller with texture and model features (that I dispatch to EAGLView).  It is absolutely embeddable into a UIKit hierarchy.

Now I try to resolve orientation issues that do not assume anything about the app, and the window, only do something with the interface orientation of the presenting view controller. Also gonna listen to application state changes via notifications, so do nothing with the AppDelegate in the first place.

Loading camera session became a simple block based startWithCompletition: call.

Once I got over this maybe I can share the "template".

Why is QCARUtils is embedded into tons of UIKit classes in sampl

September 5, 2013 - 9:50am #2

Have a look at the latest video playback sample and the text reco, as these are much simplified.

There is always a balance between updating existing code and adding new features particularly when this is cutting edge technology (and multi-platform)

http://www.youtube.com/watch?v=UOfN1plW_Hw

 

...but hopefully the updated samples are a step in the right direction.

If you want more samples like this or you want the existing ones updated, then please log this in our wish list.

 

thank you

N

Log in or register to post comments