Log in or register to post comments

Load different Scenes problem with QCAR

September 16, 2012 - 11:24am #1

Hello!

I am developing a App with iOS5.1 and Unity iOS (not Pro!). QCAR with FrameMarker prefab.

The problem is related with changing scenes in my unity project:

1. Scene with QCAR FrameMarker and a QR-Code reader based on QCAR - this works fine: After the QR Code is read the scene changes to

2. Scene a Welcome Screen - no QCAR - here, I am doing a selection with the scanned QR Code, which scene has to be loaded with LoadLevel(nextscene)

3. The nextscene is loaded, but, QCAR doesn't start and the app stops. The Welcome screen is freezed. 

I tried quiet a lot to fix it.  Currently, I have no idea how to fix this.

What do I have to do to have a App with different Scenes with QCAR support? 

I can't use LoadLevelAdditive due I have no Unity Pro - just to inform you.

Here is the output of xcode:

Scene changed to: nextscene

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 413. Operation took 34.704750 ms.

No data sets defined. Not loading any data sets.

 

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

Trackable FrameMarker1 lost

 

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

Setting Unity version 3.5.2

2012-09-16 19:53:35.192 artourist[9948:707] INFO/AR(9948) 2012-09-16 19:53:35: Creating FrameID marker detector

Successfully created Marker: 10, FrameMarker1, 60.000000x60.000000.

Found Marker named FrameMarker1 with id 1

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

StartQCAR

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

2012-09-16 19:53:35.200 artourist[9948:707] DEBUG/AR(9948) UIView has CAEAGLLayer class

2012-09-16 19:53:35.204 artourist[9948:707] DEBUG/AR(9948) UIView does not respond to selector renderFrameQCAR

2012-09-16 19:53:35.207 artourist[9948:707] DEBUG/AR(9948) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-16 19:53:35.214 artourist[9948:707] DEBUG/AR(9948) UIView has CAEAGLLayer class

2012-09-16 19:53:35.218 artourist[9948:707] DEBUG/AR(9948) UIView does not respond to selector renderFrameQCAR

2012-09-16 19:53:35.221 artourist[9948:707] DEBUG/AR(9948) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-09-16 19:53:35.226 artourist[9948:707] DEBUG/AR(9948) UIView has CAEAGLLayer class

2012-09-16 19:53:35.229 artourist[9948:707] DEBUG/AR(9948) UIView does not respond to selector renderFrameQCAR

2012-09-16 19:53:35.233 artourist[9948:707] DEBUG/AR(9948) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

Absolute number of Trackables: 1

 (Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

Absolute number of virtual buttons: 0

(Filename: /Applications/buildAgent/work/300357e52574df36/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 43)

(lldb) 

Load different Scenes problem with QCAR

September 17, 2012 - 1:42am #2

Hi tkastel

Have a look at this thread as I think others have tried to do something similar...

https://ar.qualcomm.at/content/question-about-multiple-scenes-their-own-arcamera-and-image-targets

I think the suggestion is to use a single instance of an ARCamera that persists across different scenes.

Let me know how you get on.

N

Log in or register to post comments