Log in or register to post comments

Vuforia Unity extension for openGl es 1.x

June 20, 2012 - 5:31am #1

Hi,
When we tried building a Unity Vuforia project for iOS openGl es 1.x it crashed. This does not happen with openGl ES 2.0.
Does the Unity Vuforia extension work with OpenGl ES 1.x?

Vuforia Unity extension for openGl es 1.x

July 9, 2012 - 2:36am #5

Hi joshsavage,

Yes the emphasis is on OpenGL ES2 rather than ES1 even though some of the samples show how to do ES1 on native iOS.

The jury seems to be out on ES2 v ES1 according to the Unity folks in this discussion:

http://blogs.unity3d.com/2012/03/23/shadowgun-optimizing-for-mobile-sample-level/

Currently only OpenGL ES2 is supported on Unity and I do not know of any workaround,

 

N

Vuforia Unity extension for openGl es 1.x

July 8, 2012 - 8:36pm #4

The unity version of vuforia v1.5.9 according to the release notes doesn't support OpenGL 1.x however the iOS version does.

Does anyone know a work around for this because there are some significant performance increases in Unity by dropping down to OpenGL 1.1.

Vuforia Unity extension for openGl es 1.x

June 21, 2012 - 12:40am #3

Sorry for posting this long xcode log but I wanted to be sure not to miss anything

(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)Setting Unity version 3.4.0

2012-06-21 09:31:11.013 storekitdemo2[2339:707] INFO/AR(2339) 2012-06-21 09:31:11: Creating FrameID marker detector

Successfully created Marker: 355, mymarker287, 60.000000x60.000000.

Found Marker named mymarker287 with id 0

 (Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

Successfully created Marker: 287, mymarker287, 60.000000x60.000000.

Found Marker named mymarker287 with id 1

 (Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

StartQCAR

 (Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

2012-06-21 09:31:11.066 storekitdemo2[2339:707] DEBUG/AR(2339) UIView has CAEAGLLayer class

2012-06-21 09:31:11.070 storekitdemo2[2339:707] DEBUG/AR(2339) UIView does not respond to selector renderFrameQCAR

2012-06-21 09:31:11.074 storekitdemo2[2339:707] DEBUG/AR(2339) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-06-21 09:31:11.089 storekitdemo2[2339:707] DEBUG/AR(2339) UIView has CAEAGLLayer class

2012-06-21 09:31:11.093 storekitdemo2[2339:707] DEBUG/AR(2339) UIView does not respond to selector renderFrameQCAR

2012-06-21 09:31:11.097 storekitdemo2[2339:707] DEBUG/AR(2339) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

2012-06-21 09:31:11.103 storekitdemo2[2339:707] DEBUG/AR(2339) UIView has CAEAGLLayer class

2012-06-21 09:31:11.106 storekitdemo2[2339:707] DEBUG/AR(2339) UIView does not respond to selector renderFrameQCAR

2012-06-21 09:31:11.109 storekitdemo2[2339:707] DEBUG/AR(2339) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

Absolute number of Trackables: 2

 

(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

 

Absolute number of virtual buttons: 0

 

(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

 

2012-06-21 09:31:13.115 storekitdemo2[2339:707] DEBUG/AR(2339) UIView has CAEAGLLayer class

2012-06-21 09:31:13.120 storekitdemo2[2339:707] DEBUG/AR(2339) UIView does not respond to selector renderFrameQCAR

2012-06-21 09:31:13.128 storekitdemo2[2339:707] DEBUG/AR(2339) Could not find a UIView with CAEAGLLayer layer class that responds to selector renderFrameQCAR

-> force accelerometer registration

Setting camera clear flags to depth only

 

(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)

 

2012-06-21 09:31:13.801 storekitdemo2[2339:707] - creating appgun connection

2012-06-21 09:31:13.806 storekitdemo2[2339:707] - appgun connection start

2012-06-21 09:31:13.810 storekitdemo2[2339:707] Starting WowWee's gun connection library v1.6

2012-06-21 09:31:13.813 storekitdemo2[2339:707] There was an error: 

2012-06-21 09:31:13.816 storekitdemo2[2339:707] couldn't initialize audio session

-> applicationDidBecomeActive()

(gdb) thread apply all bt

 

Thread 17 (thread 16387):

#0  0x34980c00 in mach_msg_trap ()

#1  0x3498075e in mach_msg ()

#2  0x36b4582a in AURemoteIO::IOThread::Run ()

#3  0x36b4b348 in AURemoteIO::IOThread::Entry ()

#4  0x36a80490 in CAPThread::Entry ()

#5  0x349bc310 in _pthread_start ()

#6  0x349bdbbc in thread_start ()

Current language:  auto; currently c++

 

Thread 16 (thread 16131):

#0  0x349833ec in __workq_kernreturn ()

#1  0x349bd6de in _pthread_wqthread ()

#2  0x349bdbc4 in start_wqthread ()

 

Thread 15 (thread 15875):

#0  0x34982c60 in select$DARWIN_EXTSN ()

#1  0x36cb78f8 in __CFSocketManager ()

#2  0x349bc310 in _pthread_start ()

#3  0x349bdbbc in thread_start ()

 

Thread 14 (thread 15619):

#0  0x34980c00 in mach_msg_trap ()

#1  0x3498075e in mach_msg ()

#2  0x36cb22be in __CFRunLoopServiceMachPort ()

#3  0x36cb4568 in __CFRunLoopRun ()

#4  0x36c44ec2 in CFRunLoopRunSpecific ()

#5  0x36c44dca in CFRunLoopRunInMode ()

#6  0x350ae7fc in +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] ()

#7  0x350a1388 in -[NSThread main] ()

#8  0x351135cc in __NSThread__main__ ()

#9  0x349bc310 in _pthread_start ()

#10 0x349bdbbc in thread_start ()

 

Thread 13 (thread 15363):

#0  0x34982d18 in __semwait_signal ()

#1  0x349e3866 in _pthread_cond_wait ()

#2  0x3498aeb8 in pthread_cond_wait ()

#3  0x350ae90a in -[NSCondition wait] ()

#4  0x3509081c in -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] ()

#5  0x350902ec in -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] ()

#6  0x00004e8c in -[AppController startRendering:] (self=0x2d56490, _cmd=0x155ba74, application=0x0) at /Users/ingomesche/Games/EliteCommandAR/Builds/Classes/AppController.mm:661

#7  0x350a1388 in -[NSThread main] ()

#8  0x351135cc in __NSThread__main__ ()

#9  0x349bc310 in _pthread_start ()

#10 0x349bdbbc in thread_start ()

 

Thread 12 (thread 15107):

#0  0x34982d18 in __semwait_signal ()

#1  0x3498b4b2 in nanosleep ()

#2  0x011f7038 in Thread::Sleep (time=<value temporarily unavailable, due to optimizations>) at /Applications/buildAgent/work/842f9557127e852/Runtime/Threads/Thread.cpp:399

#3  0x011879e8 in PreloadManager::Run (this=0x2dbf880) at /Applications/buildAgent/work/842f9557127e852/Runtime/Misc/PreloadManager.cpp:217

#4  0x01187a14 in PreloadManager::Run (managerPtr=<value temporarily unavailable, due to optimizations>) at /Applications/buildAgent/work/842f9557127e852/Runtime/Misc/PreloadManager.cpp:139

#5  0x011f71a8 in Thread::RunThreadWrapper (ptr=0x2dbf880) at /Applications/buildAgent/work/842f9557127e852/Runtime/Threads/Thread.cpp:157

#6  0x349bc310 in _pthread_start ()

#7  0x349bdbbc in thread_start ()

 

Thread 11 (thread 14851):

#0  0x34980c00 in mach_msg_trap ()

#1  0x3498075e in mach_msg ()

#2  0x36cb22be in __CFRunLoopServiceMachPort ()

#3  0x36cb4568 in __CFRunLoopRun ()

#4  0x36c44ec2 in CFRunLoopRunSpecific ()

#5  0x36c876d8 in CFRunLoopRun ()

#6  0x34a3d614 in CLMotionCore::runMotionThread ()

#7  0x349bc310 in _pthread_start ()

#8  0x349bdbbc in thread_start ()

 

Thread 10 (thread 14595):

#0  0x34982d18 in __semwait_signal ()

#1  0x3498b4b2 in nanosleep ()

#2  0x3498b2fa in usleep ()

#3  0x01295a70 in FMOD_OS_Time_Sleep ()

#4  0x012b2024 in FMOD::Thread::callback ()

#5  0x349bc310 in _pthread_start ()

#6  0x349bdbbc in thread_start ()

 

Thread 9 (thread 14339):

#0  0x34980c00 in mach_msg_trap ()

#1  0x3498075e in mach_msg ()

#2  0x36b4582a in AURemoteIO::IOThread::Run ()

#3  0x36b4b348 in AURemoteIO::IOThread::Entry ()

#4  0x36a80490 in CAPThread::Entry ()

#5  0x349bc310 in _pthread_start ()

#6  0x349bdbbc in thread_start ()

 

Thread 8 (thread 14083):

#0  0x34980c50 in semaphore_wait_trap ()

#1  0x34980f74 in semaphore_wait ()

#2  0x01295678 in FMOD_OS_Semaphore_Wait ()

#3  0x012b1fcc in FMOD::Thread::callback ()

#4  0x349bc310 in _pthread_start ()

#5  0x349bdbbc in thread_start ()

 

Thread 7 (thread 13827):

#0  0x34980c50 in semaphore_wait_trap ()

#1  0x34980f74 in semaphore_wait ()

#2  0x0150f314 in mono_sem_wait ()

#3  0x0147398c in finalizer_thread ()

#4  0x014ec2d0 in start_wrapper ()

#5  0x01507648 in thread_start_routine ()

#6  0x01523298 in GC_start_routine ()

#7  0x349bc310 in _pthread_start ()

#8  0x349bdbbc in thread_start ()

 

Thread 6 (thread 13315):

#0  0x34982d18 in __semwait_signal ()

#1  0x349e3866 in _pthread_cond_wait ()

#2  0x3498aeb8 in pthread_cond_wait ()

#3  0x317138fa in WaitOnCondition ()

#4  0x31713840 in FigSemaphoreWaitRelative ()

#5  0x33727a6a in fpa_AsyncMovieControlThread ()

#6  0x317314e2 in figThreadMain ()

#7  0x349bc310 in _pthread_start ()

#8  0x349bdbbc in thread_start ()

 

Thread 5 (thread 13059):

#0  0x33f3425c in _NXMapMember ()

#1  0x33f3118c in NXMapGet ()

#2  0x33f361b8 in getNonMetaClass ()

#3  0x33f3884e in _class_getNonMetaClass ()

#4  0x33f32026 in _class_initialize ()

#5  0x33f38740 in prepareForMethodLookup ()

#6  0x33f3487c in lookUpMethod ()

#7  0x33f32000 in _class_lookupMethodAndLoadCache ()

#8  0x33f31cea in objc_msgSend_uncached ()

#9  0x33f3210e in _class_initialize ()

#10 0x33f38740 in prepareForMethodLookup ()

#11 0x33f3487c in lookUpMethod ()

#12 0x33f32000 in _class_lookupMethodAndLoadCache ()

#13 0x33f31cea in objc_msgSend_uncached ()

#14 0x33a8ecd8 in WKCopyFoundationCacheDirectory ()

#15 0x33a8e556 in +[WebView(WebFileInternal) _setCacheModel:] ()

#16 0x33a8e388 in +[WebView(WebFileInternal) _preferencesChangedNotification:] ()

#17 0x36cdd7a4 in __invoking___ ()

#18 0x36c5543c in -[NSInvocation invoke] ()

#19 0x3640ec3c in SendMessage ()

#20 0x3640ec14 in HandleAPISource ()

#21 0x36cb1a78 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()

#22 0x36cb36a2 in __CFRunLoopDoSources0 ()

#23 0x36cb44ea in __CFRunLoopRun ()

#24 0x36c44ec2 in CFRunLoopRunSpecific ()

#25 0x36c44dca in CFRunLoopRunInMode ()

#26 0x3640d284 in RunWebThread ()

#27 0x349bc310 in _pthread_start ()

#28 0x349bdbbc in thread_start ()

 

Thread 4 (thread 12803):

#0  0x349bdbbc in start_wqthread ()

#1  0x00000000 in ?? ()

 

Thread 3 (thread 12547):

#0  0x34983fbc in kevent ()

#1  0x33b54038 in _dispatch_mgr_invoke ()

#2  0x33b55040 in _dispatch_queue_invoke ()

#3  0x33b545f0 in _dispatch_worker_thread2 ()

#4  0x349bd590 in _pthread_wqthread ()

#5  0x349bdbc4 in start_wqthread ()

 

Thread 2 (thread 12291):

#0  0x00eb5cc4 in QCAR::setInitParameters ()

#1  0x00ea9244 in QCAR::setInitParameters ()

#2  0x00ec06e8 in QCAR::setInitParameters ()

#3  0x00e91444 in QCAR::setInitParameters ()

#4  0x00f23148 in QCAR::setInitParameters ()

#5  0x00f28d88 in QCAR::setInitParameters ()

#6  0x00f201bc in QCAR::setInitParameters ()

#7  0x00f26198 in QCAR::setInitParameters ()

#8  0x00f8472c in QCAR::setInitParameters ()

#9  0x3336efd8 in __-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke_1 ()

#10 0x33b598e6 in _dispatch_call_block_and_release ()

#11 0x33b54ec0 in _dispatch_queue_drain ()

#12 0x33b55032 in _dispatch_queue_invoke ()

#13 0x33b545f0 in _dispatch_worker_thread2 ()

#14 0x349bd590 in _pthread_wqthread ()

#15 0x349bdbc4 in start_wqthread ()

 

Thread 1 (thread 11779):

#0  0x33e0e7ba in gliUnimplemented ()

#1  0x35460866 in glCreateShader ()

#2  0x00f8f474 in QCAR::setInitParameters ()

#3  0x00f8f54c in QCAR::setInitParameters ()

#4  0x00f8f658 in QCAR::setInitParameters ()

#5  0x00f8d2f0 in QCAR::setInitParameters ()

#6  0x00f8d7e8 in QCAR::setInitParameters ()

#7  0x00f17680 in QCAR::setInitParameters ()

#8  0x00f16214 in QCAR::setInitParameters ()

#9  0x00e78070 in QCAR::Renderer::getInstance ()

#10 0x01036b20 in updateQCAR (trackableDataArray=0x9cfa550, trackableArrayLength=2, vbDataArray=0x0, vbArrayLength=0, imageHeaderDataArray=0x0, imageHeaderArrayLength=0, screenOrientation=3, bindVideoBackground=0) at /UnityiOSCAKE/Unity_iOS/QCARUnityPlayer/iOS/../../../Unity/QCARWrapper/src/Tracker.cpp:155

#11 0x0026a0bc in wrapper_managed_to_native_QCARManager_updateQCAR_intptr_int_intptr_int_intptr_int_int_int () at Assembly-CSharp.dll.s:238078

#12 0x000da8dc in QCARManager_Update_UnityEngine_ScreenOrientation () at Assembly-CSharp.dll.s:60939

#13 0x00000000 in ?? ()

 

Vuforia Unity extension for openGl es 1.x

June 20, 2012 - 5:58pm #2

Yes. Can you post the log from your XCode console?

Log in or register to post comments