Log in or register to post comments

Vuforia 8 - Scripts and migration

January 16, 2019 - 3:59pm #1

Hi, total newbie to Unity/ Vuforia here (not a programmer), been experimenting with basic AR for a work project for only the last couple of weeks.

upgraded to Vuforia 8.0.10.  Now i am having issues with Default Trackable Event Handler scripts. I gather this should appear automatically as a default script for editing, attached to any ImageTarget element in a project. Now you seem to get a script 'placeholder' rather than the full script. Is this right?

I also had an ammended version of this script from an online tutorial, which i placed onto the ImageTarget, which now appears not to work. Will there be a migration guide for the upgrade to 8? can't see one so far.

sorry if these are really dumb questions. trying to get my head around this. thanks guys :)

Vuforia 8 - Scripts and migration

April 18, 2019 - 6:27am #11

Hello Vuforia's support, do you guys even exist? Wake up! Where is v7 to v8 migration guide? Code that worked in version 7 doesn't work in version 8.

Vuforia 8 - Scripts and migration

January 30, 2019 - 7:15pm #10

I am having the same problem. I upgraded to Vuforia 8 and that OpenSourceInitiallizer script was causing errors. I realized that the older version of Vuforia from my previously saved projects did not have that file at all, so I deleted it.

Is this a good solution? Things seem to work now, but I worry that this will cause me problems I have not considered? I am not experienced with coding, so this is a real question.

Vuforia 8 - Scripts and migration

January 28, 2019 - 5:45pm #9

Thanks for the reply

have done as you advised. as per screen grab, the 2 versions seem to be a match.

Vuforia 8 - Scripts and migration

January 24, 2019 - 3:57pm #8

Hello,

Sounds like I need to clarify my previous statement that Vuforia 8 introduced "no significant API-level changes". Although this is true for existing APIs, new ones were introduced in SDK 8.0 and are included in OpenSourceInitializer.cs.

Since this seems to be a primary source of your errors, I believe it indicates a mismatch between the SDK version (likely 7.5.X) and the samples version (likely 8.0.X).

You can check a couple of things in the Unity Editor:

  • Window->Vuforia Configuration (this is the SDK version)
  • In the Editor's Project window, select Assets/Vuforia/. Inside this folder there is a file called "version". It is a text file that indicates which sample version you're running

Thanks,

Vuforia Engine Support

 

Vuforia 8 - Scripts and migration

January 23, 2019 - 10:30pm #7

Hi, so i ended up getting a little further. The project ended up running in demo on the Video player, which it was refusing to do when i messaged you last, and was giving compile errors. I started getting these  when i attempted to add a second AR trigger, image target and video overlay in a scene. after a restart, it started working again.

Now the project i am attempting has two separate scenes with two separate AR cameras and associated target images and video overlays, which preview ok, but the app won't build. I've attached a grab of the console log entries i'm getting.

Don't know if you have any ideas on a quick fix for this, but i'm assuming i just don't know enough about scripts to understand the issues ( i know basically nothing about scripting and a code free option to achieve multiple AR elements in a project would be ideal lol)

Is there any option for achieving basic AR overlays in Vuforia with minimal code? otherwise is there a course you would recommend for this?

thanks again. sorry for the probably very dumb questions.

 

 

Vuforia 8 - Scripts and migration

January 22, 2019 - 11:47am #6

Hello,

I think there is some confusion here. I believe you've attached an older (and/or modified) version of the DefaultTrackableEventHandler.cs script as your version is not valid compared to our 8.0 core samples.

Looking deeper, it seems that you may have attached a version that was provided with a previous implementation of our VideoPlayback sample app. This is also no longer valid.

The Video Playback sample is not a feature of Vuforia. Rather, it is a demonstration app that provides source code to devs as a reference for creating a similar experience. Unfortunately, this can also mean that your success may vary when trying to re-use the sample in its existing form.

I suggest you evaluate the VideoPlayer class in Unity 2017.3. This has greatly simplified developing apps with Vuforia that play videos on textures. It is also demonstrated in our Core Samples sample apps on the Unity Asset Store: https://assetstore.unity.com/search?q=vuforia, And in native with our Advanced Topics samples: https://developer.vuforia.com/downloads/samples.

Thanks,

Vuforia Engine Support

Vuforia 8 - Scripts and migration

January 20, 2019 - 4:17pm #5

ok, weird, thanks for advising. have reattached as a pdf.

thanks.

 

Vuforia 8 - Scripts and migration

January 17, 2019 - 8:28am #4

Hello,

Your attachment is not readable for me. Something unusual with the formatting?

Thanks,

Vuforia Engine Support

Vuforia 8 - Scripts and migration

January 16, 2019 - 5:30pm #3

HI thanks for your reply. as far as i recall it was 7.5. I only installed it on Jan 11th, so assume it was the most up to date version.

So version 8 shouldn't affect the way scripts behave, or the way that Default Trackable Event Handler Scripts work with Image Targets? Just wondering why it shows as a 'placeholder' now as opposed to a template script, as it did on the previous version.

I have tried manually adding the version of the script i had been using, which i grabbed from a tutorial (file attached). It is now being rejected with compiler errors and the following log msg: Assets/Scripts/DefaultTrackableEventHandler.cs(72,43): error CS0117: `Vuforia.TrackableBehaviour.Status' does not contain a definition for `NOT_FOUND'

The identical script was working fine prior to the upgrade to Vuforia 8.

sorry i am probably missing something obvious, but i'm not a coder, just learning ;)

thanks again.

 

Vuforia 8 - Scripts and migration

January 16, 2019 - 5:00pm #2

Hello,

I'm not clear on your upgrade steps. You upgraded from which version of Vuforia to 8.0.10?

If it was from 7.5.x to 8.0, then there was no migration guide published because there are no significant API-level changes. However, we do recommend you download the latest versions of the Core samples to insure compatibility with the 8.0 SDK.

Thanks,

Vuforia Engine Support

Log in or register to post comments