Topic locked

Unity3D 4.5 compatability

May 27, 2014 - 10:31am #1

Hello,

is anything known on how the current Vuforia 2.8 works with Unity3d 4.5? May be even from the Unity Beta program?

 

And what about the upcoming vuforia 3? Relase and compatibility information available, 

Unity3D 4.5 compatability

June 27, 2014 - 12:17am #12

@krista17,

Thanks.

 

Unity3D 4.5 compatability

June 27, 2014 - 12:06am #11

hello developers, can you fix this dead link?

I want to download Uforia Extension Unity 2.8.9 

Unity3D 4.5 compatability

May 29, 2014 - 10:18am #10

Thanks for all, it works with the last released of Vuforia.

(I was sure to have it already updated, but it was not the case)

Unity3D 4.5 compatability

May 28, 2014 - 2:21pm #9

NalinS, thanks a lot, THAT was the desired information. I was not aware of the fact, that my Vuforia installation within the project was outdated.

I just tried it and it works, no Linker Errors any more.

 

 

So sorry guys, but some of you might stumble about this issue as well and i hope this post helps you.

Unity3D 4.5 compatability

May 28, 2014 - 8:19am #8

Hi Developers,

Just to be clear the last release of Vuforia Unity is already compatible with Unity4.5 because we updated the PostProcessBuildPlayer in the release in April i.e. in the Unity samples 2-8-13 and in the core extension 2-8-9.

The reason you may be encountering a problem is because you are using on older SDK and have not upgraded.

The latest PostProcessBuildPlayer has a date of 18 April 2014.

 

thanks

N

 

Unity3D 4.5 compatability

May 28, 2014 - 7:37am #7

Yes sorry for the typo:

ScreenOrientation curOrientation = (ScreenOrientation)landscapeLeft;

 

Unity3D 4.5 compatability

May 28, 2014 - 7:35am #6

Thanks Toywheel for your workaround.

I have just upgrade unity to 4.5 and get the same error as you.

 

So i tried your workaround , but unsuccessful.

With the part B : 

ScreenOrientation curOrientation = ScreenOrientation)landscapeLeft;

or

ScreenOrientation curOrientation = ScreenOrientation landscapeLeft;

 

I got the message > "unexpected type nome'ScreenOrientation'. expected expression"

 

I woud appreciate your help ;-)

Raphaël

Unity3D 4.5 compatability

May 28, 2014 - 6:05am #5

As you might have seen in  www.vuforia.com ,

the webpage animated banner already mentions "Vuforia SDK 3.0 coming soon",.

.. so, that should be it.

 

Unity3D 4.5 compatability

May 28, 2014 - 5:54am #4

Thanks  Alessandro.

But what do you mean with next Version of Vuforia?

Version 3?

Or something like 2.8.95?

I thought actuelly a updated Postprocessbuildplayer would be sufficient and quick to do...

Unity3D 4.5 compatability

May 28, 2014 - 5:50am #3

Hi, 

first, thanks for posting your workarounds, definitely useful to other developers as well.

The next version of Vuforia will incorporate all the necessary elements for full compatibility with Unity 4.5.

 

Unity3D 4.5 compatability

May 28, 2014 - 5:32am #2

To answer some of my own question:

I tried to compile our free kids game Toy Car RC with unity3d4.5 for IOs.

 

First i got Linker Errors like this:

Undefined symbols for architecture armv7:

  "__curOrientation", referenced from:

      -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

ld: symbol(s) not found for architecture armv7

but after 

A. Commenting out line 2 of UnityAppController.mm to

//extern int _curOrientation;

 

B. changing from line 218 of UnityAppController.mm to

 

/*

QCARUnityPlayer::getInstance().QCARSetOrientation(_curOrientation);

[self performSelector:@selector(startUnity:) withObject:application afterDelay:0];

     */

ScreenOrientation curOrientation = ScreenOrientation)landscapeLeft;

QCARUnityPlayer::getInstance().QCARSetOrientation(curOrientation);

[self performSelector:@selector(startUnity:) withObject:application afterDelay:0];

 

it worked.

 

Our Project uses a Dataset with 4 Targets now on Top of that the ability to use Userdefined Targets instead of markers.

All this was fine.

 

 

So this seems to be a really minor issue, and it would be nice if the Makers of Vuforia could investigate this ASAP.

For us it would be ok to use such a fix, as we only want to support one screenorientation. But others... Not so good.

 

EDIT:

So it seems in Unity 4.5 the files iPhone_View.m and .h were removed. But the PostProcessBuildPlayer checks the existence of this file to figure if unity 4 is used. This would fail now. Then, the injection of _curorientation doesn´t seem to be valid any more, and needs to be changed for 4.5 as well.

The fix would be simply a slightly authored PostprocessBuildplayer, or advice an where to change what.

 

EDIT2:

And the same for Android, i guess, but i never used this.

 

 

If you are intersted in what app i am talking about, here is the free version made with Unity4.3 and Vuforia 2.8. (This one has "only" 2 targets, thus 2 worlds)

Itunes Store : https://itunes.apple.com/de/app/toy-car-rc-fahre-ein-virtuelles/id824793454?mt=8

 

 

 

 

 

 

Topic locked