Hi,
I worked with this version and re-worked and did some testing (add Privacy Media Library, build with "debug" option, etc…):
conclusion, easyAR works perfectly but not recording.
On Unity I have these logs:
• Assets/HelloARRecording/Scripts/HelloARRecording.cs(22,16): warning CS0414: The private field `EasyAR.HelloARRecording.isRecording' is assigned but its value is never used
• Assets/HelloARRecording/Scripts/HelloARRecording.cs(23,16): warning CS0414: The private field `EasyAR.HelloARRecording.isShowing' is assigned but its value is never used
On Xcode :
2017-09-28 15:07:42.078054+0200 test[391:41942] [DYMTLInitPlatform] platform initialization successful
…
-------- Shader compilation failed
#version 100
#extension GL_EXT_frag_depth : enable
precision highp float;
uniform highp vec4 _ProjectionParams;
uniform highp vec4 _ZBufferParams;
uniform highp mat4 unity_CameraToWorld;
uniform highp mat4 _NonJitteredVP;
uniform highp mat4 _PreviousVP;
uniform highp sampler2D _CameraDepthTexture;
varying highp vec2 xlv_TEXCOORD0;
varying highp vec3 xlv_TEXCOORD1;
void main ()
{
highp vec4 tmpvar_1;
tmpvar_1 = texture2D (_CameraDepthTexture, xlv_TEXCOORD0);
mediump vec2 tmpvar_2;
highp vec4 tmpvar_3;
tmpvar_3.w = 1.0;
tmpvar_3.xyz = ((xlv_TEXCOORD1 * (_ProjectionParams.z / xlv_TEXCOORD1.z)) * (1.0/((
(_ZBufferParams.x * tmpvar_1.x)
+ _ZBufferParams.y))));
highp vec4 tmpvar_4;
tmpvar_4 = (unity_CameraToWorld * tmpvar_3);
highp vec4 tmpvar_5;
tmpvar_5 = (_PreviousVP * tmpvar_4);
highp vec4 tmpvar_6;
tmpvar_6 = (_NonJitteredVP * tmpvar_4);
highp vec2 tmpvar_7;
tmpvar_7 = (((tmpvar_5.xy / tmpvar_5.w) + 1.0) / 2.0);
highp vec2 tmpvar_8;
tmpvar_8 = (((tmpvar_6.xy / tmpvar_6.w) + 1.0) / 2.0);
tmpvar_2 = (tmpvar_8 - tmpvar_7);
mediump vec4 tmpvar_9;
tmpvar_9.zw = vec2(0.0, 1.0);
tmpvar_9.xy = tmpvar_2;
gl_FragDepthEXT = tmpvar_1.x;
gl_FragData[0] = tmpvar_9;
}
-------- failed compiling:
fragment evaluation shader
WARNING: 0:4: extension 'GL_EXT_frag_depth' is not supported
ERROR: 0:38: Use of undeclared identifier 'gl_FragDepthEXT'
Note: Creation of internal variant of shader 'Hidden/Internal-MotionVectors' failed.
WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Setting to default shader.
=================================================================
…
Recorder Status: FileSucceeded msg: file:///var/mobile/Containers/Data/Application/EAB841C1-C83E-4E39-8EDA-620E363767AA/Documents/EasyAR_Recording_2017-09-28_15-07-59.mp4
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
EasyAR.HelloARRecording:OnRecorderUpdate(RecorderBaseBehaviour, Status, String)
System.Action`3:Invoke(T1, T2, T3)
EasyAR.BaseNotify:RecorderNotify(RecorderStatus, String)
EasyAR.RecorderNative:OnStatusNotify(IntPtr, Int32, String)
EasyAR.EngineNativeIOS:Recorder_CheckCallBack(IntPtr)
EasyAR.RecorderNative:CheckStatus()
EasyAR.RecorderBaseBehaviour:Update()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Recorder Status: OnStopped msg:
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
EasyAR.HelloARRecording:OnRecorderUpdate(RecorderBaseBehaviour, Status, String)
System.Action`3:Invoke(T1, T2, T3)
System.Action`3:Invoke(T1, T2, T3)
EasyAR.BaseNotify:RecorderNotify(RecorderStatus, String)
EasyAR.RecorderNative:OnStatusNotify(IntPtr, Int32, String)
EasyAR.EngineNativeIOS:Recorder_CheckCallBack(IntPtr)
EasyAR.RecorderNative:CheckStatus()
EasyAR.RecorderBaseBehaviour:Update()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Recorder Status: OnStopped msg:
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
EasyAR.HelloARRecording:OnRecorderUpdate(RecorderBaseBehaviour, Status, String)
System.Action`3:Invoke(T1, T2, T3)
EasyAR.BaseNotify:RecorderNotify(RecorderStatus, String)
EasyAR.RecorderNative:OnStatusNotify(IntPtr, Int32, String)
EasyAR.EngineNativeIOS:Recorder_CheckCallBack(IntPtr)
EasyAR.RecorderNative:CheckStatus()
EasyAR.RecorderBaseBehaviour:Update()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
-> applicationWillResignActive()
-> applicationDidEnterBackground()
The video seems saved, but does not appear in the photos library.
Do you see what's wrong? Can I help you to find if I share you my Unity work?
Thx for your help