Pre-10.0 Engine API documentation for Native

Hello,

Please find the native (C++) API documentation for the pre-10.0 Engine release (v9.8) here:

https://library.vuforia.com/sites/default/files/references/9.8/cpp/index.html

Thanks,

Vuforia Engine Support

Workaround for iOS Apps failing review

Hello,

Attached is Vuforia’s version of the app-level fix scripts provided by @adrianj (many thanks!) in the following forum thread. This can be used immediately with SDK 6.5 (Unity 2017.2), SDK 7.0 (Unity 2017.3) and SDK 7.1 (Unity 2018.1).

Here are the recommended steps for installing and enabling:

  1. Back up your project
  2. Import the attached DelayedVuforiaInitialization.unitypackage
  3. In the first scene that uses Vuforia, attach the VuforiaInitialization.cs script to any active game object, e.g. the ARCamera
  4. In the Vuforia configuration (Menu: Window -> Vuforia Configuration) and check “Delayed Initialization”

IMPORTANT: In case your application logic relies on Vuforia being initialized and started at scene startup, you may have to adapt that code. The best way to do this is to listen for the VuforiaStarted callback using: VuforiaARController.Instance.RegisterVuforiaStartedCallback(…);

We are also working on rolling out a similar fix via patch releases for SDK 7.0 and 7.1. Note that for 7.0 patch availability, we are reliant upon Unity's timing for releasing updates. Patching Vuforia 7.1 SDK will be done via installer functionality built into the Editor.

Lastly, contrary to previous Vuforia communications, we *will not* be providing patch releases for SDK 6.2 and 6.5. This is due to multiple factors, including Unity not providing long-term support for Unity 2017.2 (SDK 6.5) and earlier versions. We recommend that if you're still using Vuforia 6.2, you follow similar app-level logic in the attached scripts.

Thanks,

Vuforia Support

iOS UIView issue

Hello all,

I wanted to bring to attention an iOS issue you may encounter that will cause reduced performance within your app. This can occur either with native iOS or Unity development.

In native development, if you are not using a storyboard, you’ll need to set the ‘backgroundColor’ field of any UIView you generate with code to ‘UIColor.clearColor’ to get around a known iOS issue. If you are using a storyboard, you will not encounter this issue and will not need to add any code.

If you’re developing in Unity, you can make this same change within the generated XCode project. Open the file called UnityAppController.mm and navigate to the ‘didFinishLaunchingWithOptions’ function. The following code is present on lines 243 and 244:

_window         = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen].bounds];
_unityView      = [self createUnityView];

Adding the following line after these lines will resolve this issue on Unity generated projects:

_unityView.backgroundColor = UIColor.clearColor;

Keep in mind that since this is in a generated project, if you aren’t selecting to append the project when building from Unity this will be overwritten anytime you regenerate the XCode project.

Thanks for you continued interest in Vuforia,

Vuforia Support

Video Playback Streaming Render To Texture

Hello,

I would like to have some video streamed and played on top of a recognized image, not in full screen. The vuforia samples as of this date do not seem to indicate that something like this is possible, or at least, they haven't created a sample with that.

I found this link,

https://developer.vuforia.com/forum/vuforia-developer-opportunities/development-partner-ios-videomovie-texture-lib-mp4movm4v

but it seems a little bit outdated, as many files are missing. 

Therefore, here are my questions:

-- Is there any simple way of making this work?

-- If not, Has anyone tried using "AVPlayerItemVideoOutput" in order to have the AVPlayer stream the video, grab the OpenGL data from it and render it on a vuforia - provided texture? Would something like this work?

 

I would appreciate any thoughts on the matter.

soulstorm

Thu, 10/23/2014 - 14:08

I was hoping this would have changed by now. 

Is there any way of doing this manually, by acquiring the recognized item in world space and by applying our own texture to it? If that is possible, maybe we can do something with CALayer or OpenGL

soulstorm

Sat, 03/14/2015 - 17:45

A lot of time has passed since this post, and I was finally able to figure out a scalable solution, that is not a hack, and works with Vuforia SDK 3 and 4. All links and resources that I found were misleading.

arm64 architectures VuforiaEngine error in IOS(xcode)

Platform

Given below when trying to publish my application in apple store these error arises

"Command PhaseScriptExecution failed with a nonzero exit code" at the end

 

Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver

Extracting arm64 from UnityDriver fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityDriver.framework/UnityDriver: No such file or directory Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/WebRTC.framework/WebRTC Extracting arm64 from WebRTC Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/AmazonChimeSDK.framework/AmazonChimeSDK Extracting arm64 from AmazonChimeSDK Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/AmazonChimeSDKMedia.framework/AmazonChimeSDKMedia Extracting arm64 from AmazonChimeSDKMedia Merging extracted architectures: arm64 Replacing original executable with thinned version Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework Extracting arm64 from UnityFramework fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/UnityFramework.framework/UnityFramework: No such file or directory Executable is /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine Extracting arm64 from VuforiaEngine fatal error: lipo: input file (/Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine) must be a fat file when the -extract option is specified Merging extracted architectures: arm64 fatal error: lipo: can't open input file: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-arm64 (No such file or directory) rm: /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-arm64: No such file or directory Replacing original executable with thinned version mv: rename /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine-merged to /Users/faiyazahmed/Library/Developer/Xcode/DerivedData/Sharelook-fptczznnhrnqvbcgunjjxbsueigy/Build/Intermediates.noindex/ArchiveIntermediates/Sharelook/InstallationBuildProductsLocation/Applications/Sharelook.app/Frameworks/VuforiaEngine.framework/VuforiaEngine: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code

The object is not stable

I made basic AR app both Android and and iOS with the same* Unity settings. Android is OK but on the iOS side I have a big problem.

When I move around with device, object is moving slightly with me. I mean the model is not stable. 

It might be an ARKit issue but couldn't find any answer. Is there any guide to fix this issue

Hey there,

 

It would be great if you can share more details such as which target you use, which device, the versions of Vuforia Engine and Unity, etc. Currently I won't be able to reproduce the issue you're experiencing. 

 

Kind regards,

Too Many Image Targets?

Hi,

I am having an issue with my app where it seems to crash and not work anymore after I’ve added a certain number of image targets. The app used to work just find and display the right stuff and everything for the first 10 image targets or so, but now I cannot get it to work with like 20 image targets. I’ve tested either set of 10 and both work fine on their own, but the app cannot seem to handle them all.

For context, I’ve tried deleting the associated images, text, and videos that are supposed to show with each image when tracked in a variety of different ways but the app will still not work when all 20 target images are in the app.

Does Unity/Vuforia have some issue with having too many image targets?

Thanks for any help!

iOS UIView issue

Hello all,

I wanted to bring to attention an iOS issue you may encounter that will cause reduced performance within your app. This can occur either with native iOS or Unity development.

In native development, if you are not using a storyboard, you’ll need to set the ‘backgroundColor’ field of any UIView you generate with code to ‘UIColor.clearColor’ to get around a known iOS issue. If you are using a storyboard, you will not encounter this issue and will not need to add any code.

If you’re developing in Unity, you can make this same change within the generated XCode project. Open the file called UnityAppController.mm and navigate to the ‘didFinishLaunchingWithOptions’ function. The following code is present on lines 243 and 244:

_window         = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen].bounds]; _unityView      = [self createUnityView]; Adding the following line after these lines will resolve this issue on Unity generated projects:

_unityView.backgroundColor = UIColor.clearColor; Keep in mind that since this is in a generated project, if you aren’t selecting to append the project when building from Unity this will be overwritten anytime you regenerate the XCode project.

Thanks for you continued interest in Vuforia,

Thank your!

Apksprofree.....

App Flickering on iPhone

Hi Everyone,

 

I am trying to develop my first App and am using Vuforia with a model target.

I have a script that uses raycast to detect objects.

For a bloom effect that I want to achieve I added the URP (Universal Render Pipeline) addin.

When I test the App directly in Unity on my Macbook everything looks just perfect.

However when I write the App to my IPhone via XCode, the result has some error.

The screen starts flickering in all kind of colors from red, blue, green, yellow.

What I noticed is that if I direct the camera to a "quite" aim like a wall it stops flickering, if i direct it to an area where a lot is going on like in the screenshot it starts flickering heavier, almost like you can see it calculating...

So when I switch off the PostProduction in the (Vuforia)Camera the bug does not appear.

 

Please have a look at the screenshot attached.

 

I would be happy for any hint, how to fix this.

I also googled a lot for this bug but didn`t find anything comparable.

 

Thx, Jonathan

Hey there,

 

Is there any possibility you can simplify and share your zipped project? I assume that the post processing is trying use the camera frames that are used by Engine and therefor you are seeing these artifacts.

 

Kind regards,

Also would be great if you can share your Unity, Vuforia Engine, and URP versions! 

 

Kind regards,

Patrick Scheper

Technical Community Manager

Attachment

iOS App Store Privacy Settings

Hi there !

I wanted to know if those are the correct privacy settings for an App that uses Vuforia 9.8 and which had all data collection disabled except for Vuforias' built in?

As i am not 100% sure what Vuforia is actually using the statistics for that they acquire as stated here : 

https://developer.vuforia.com/legal/statistics

I've uploaded a screenshot of the settings i currently have, please view the attachment.

Best regards

 

I'll check internally if I can find something useful for you regarding the privacy policies of Apple and the data collection of Vuforia Engine!

 

Kind regards,

Patrick Scheper

Technical Community Manager