Skip to content

Commit

Permalink
Daydream/Cardboard version updated to ARCore 1.5.0.
Browse files Browse the repository at this point in the history
Daydream/Cardboard version updated to ARCore 1.5.0.
Implemented Tivoyagefeaks suggestion together with latest updates. Unfortenetly I could not confirm that it works. But since it doesn't effect the performance and might work when using the controller I added it and Tivoyagefeaks might be able to fix it quickly when I missed something that it prevents it from working. I renamed the class to AlignmentCorrection and added the mirrorAngle variable to the FollowARCoreCamera class.

#17
  • Loading branch information
ChristophGeske committed Dec 1, 2018
1 parent 61472c0 commit d7fef21
Show file tree
Hide file tree
Showing 181 changed files with 3,694 additions and 720 deletions.
Binary file modified BoxyRoomCardboard.apk
Binary file not shown.
Empty file.
Binary file not shown.
87 changes: 53 additions & 34 deletions BoxyRoomChardboard/Assets/BoxyRoom.unity
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ Prefab:
propertyPath: reticlePointer
value:
objectReference: {fileID: 653818221}
- target: {fileID: 195966, guid: 8524bbe5e592a42dc9251484a73c9c7f, type: 2}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 8524bbe5e592a42dc9251484a73c9c7f, type: 2}
m_IsPrefabParent: 0
Expand Down Expand Up @@ -519,7 +523,7 @@ Prefab:
- target: {fileID: 114963366853050710, guid: c10877f7cd5764de18d46d7b777d1faa,
type: 2}
propertyPath: m_TrackingType
value: 2
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114963366853050710, guid: c10877f7cd5764de18d46d7b777d1faa,
type: 2}
Expand All @@ -535,6 +539,10 @@ Prefab:
propertyPath: m_UseRelativeTransform
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1637996540812124, guid: c10877f7cd5764de18d46d7b777d1faa, type: 2}
propertyPath: m_Name
value: ARCoreCamera
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 114876698896786350, guid: c10877f7cd5764de18d46d7b777d1faa, type: 2}
- {fileID: 20155940112608238, guid: c10877f7cd5764de18d46d7b777d1faa, type: 2}
Expand Down Expand Up @@ -691,6 +699,10 @@ Prefab:
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 198490, guid: 5ca80f4596fa44b87912a0592346d260, type: 2}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 5ca80f4596fa44b87912a0592346d260, type: 2}
m_IsPrefabParent: 0
Expand All @@ -703,6 +715,7 @@ GameObject:
m_Component:
- component: {fileID: 502323331}
- component: {fileID: 502323330}
- component: {fileID: 502323332}
m_Layer: 0
m_Name: PlayerCamera
m_TagString: Untagged
Expand All @@ -721,7 +734,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9b4ad6edab3d71f45bd7e6313ffb6a70, type: 3}
m_Name:
m_EditorClassIdentifier:
ARCoreFirstPersonCamera: {fileID: 2105487495}
aRCoreCamera: {fileID: 2105487495}
mirrorAngle: 0
--- !u!4 &502323331
Transform:
m_ObjectHideFlags: 0
Expand All @@ -736,46 +750,19 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &584441291
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 584441293}
- component: {fileID: 584441292}
m_Layer: 0
m_Name: VisualImprovementSettingScript
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &584441292
--- !u!114 &502323332
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 584441291}
m_GameObject: {fileID: 502323329}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6976c07f540d04247b9370df811a58b8, type: 3}
m_Script: {fileID: 11500000, guid: 08f2ea39bcc3df94e961e6616160c6ef, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &584441293
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 584441291}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.044002533, y: 1.493649, z: -0.052972496}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
gearCamera: {fileID: 502323331}
arcoreCamera: {fileID: 2105487495}
--- !u!1 &653818221 stripped
GameObject:
m_PrefabParentObject: {fileID: 171526, guid: 60270cf52a5e94998a5a335989159738, type: 2}
Expand Down Expand Up @@ -902,6 +889,10 @@ Prefab:
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1000014104313712, guid: d638298e697ca4e9b91853efadd0e6da, type: 2}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: d638298e697ca4e9b91853efadd0e6da, type: 2}
m_IsPrefabParent: 0
Expand Down Expand Up @@ -1041,6 +1032,10 @@ Prefab:
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 177758, guid: 970dd4b9371394fb4890965f608d46fd, type: 2}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 970dd4b9371394fb4890965f608d46fd, type: 2}
m_IsPrefabParent: 0
Expand Down Expand Up @@ -1408,6 +1403,10 @@ Prefab:
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 632161999, guid: 87c35d808850c410ca0e398a8da84e68, type: 2}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 87c35d808850c410ca0e398a8da84e68, type: 2}
m_IsPrefabParent: 0
Expand Down Expand Up @@ -1599,6 +1598,10 @@ Prefab:
propertyPath: m_RootOrder
value: 9
objectReference: {fileID: 0}
- target: {fileID: 761381335, guid: 463285ecd6702471a909ba810832bf0e, type: 2}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 463285ecd6702471a909ba810832bf0e, type: 2}
m_IsPrefabParent: 0
Expand Down Expand Up @@ -1948,6 +1951,22 @@ AudioSource:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 0
--- !u!1 &1670715347 stripped
GameObject:
m_PrefabParentObject: {fileID: 1772147192650458, guid: c10877f7cd5764de18d46d7b777d1faa,
type: 2}
m_PrefabInternal: {fileID: 168835911}
--- !u!114 &1670715348
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1670715347}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6976c07f540d04247b9370df811a58b8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1725746395 stripped
GameObject:
m_PrefabParentObject: {fileID: 1251124450334416, guid: c12db6ac95da443448d6aa9e4cfc66c0,
Expand Down
2 changes: 0 additions & 2 deletions BoxyRoomChardboard/Assets/GoogleARCore.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ MonoBehaviour:
EnableLightEstimation: 0
EnableCloudAnchor: 0
AugmentedImageDatabase: {fileID: 0}
CameraFocusMode: 0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dependencies>
<iosPods>
<iosPod minTargetSdk="11.0" name="ARCore" version="~&gt; 1.3.0">
<iosPod minTargetSdk="11.0" name="ARCore" version="~&gt; 1.5.0">
</iosPod>
</iosPods>
</dependencies>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
// </copyright>
//-----------------------------------------------------------------------

namespace GoogleARCore.Examples.CloudAnchor
namespace GoogleARCore.Examples.CloudAnchors
{
using System.Collections.Generic;
using UnityEngine;

#if UNITY_IOS
#if ARCORE_IOS_SUPPORT
using UnityEngine.XR.iOS;
using UnityARUserAnchorComponent = UnityEngine.XR.iOS.UnityARUserAnchorComponent;
#else
Expand All @@ -35,10 +35,9 @@ namespace GoogleARCore.Examples.CloudAnchor
/// </summary>
public class ARKitHelper
{
#if UNITY_IOS
#if ARCORE_IOS_SUPPORT
private List<ARHitTestResult> m_HitResultList = new List<ARHitTestResult>();
#endif

/// <summary>
/// Performs a Raycast against a plane.
/// </summary>
Expand All @@ -50,7 +49,7 @@ public class ARKitHelper
public bool RaycastPlane(Camera camera, float x, float y, out Pose hitPose)
{
hitPose = new Pose();
#if UNITY_IOS
#if ARCORE_IOS_SUPPORT
var session = UnityARSessionNativeInterface.GetARSessionNativeInterface();

var viewportPoint = camera.ScreenToViewportPoint(new Vector2(x, y));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// </copyright>
//-----------------------------------------------------------------------

namespace GoogleARCore.Examples.CloudAnchor
namespace GoogleARCore.Examples.CloudAnchors
{
using System;
using UnityEngine.Networking;
Expand Down Expand Up @@ -52,4 +52,4 @@ public override void Deserialize(NetworkReader reader)
RoomId = reader.ReadInt32();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// </copyright>
//-----------------------------------------------------------------------

namespace GoogleARCore.Examples.CloudAnchor
namespace GoogleARCore.Examples.CloudAnchors
{
using UnityEngine.Networking;

Expand Down Expand Up @@ -58,4 +58,4 @@ public override void Deserialize(NetworkReader reader)
AnchorId = reader.ReadString();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// </copyright>
//-----------------------------------------------------------------------

namespace GoogleARCore.Examples.CloudAnchor
namespace GoogleARCore.Examples.CloudAnchors
{
using System.Collections.Generic;
using GoogleARCore;
Expand All @@ -33,7 +33,7 @@ namespace GoogleARCore.Examples.CloudAnchor
#endif

/// <summary>
/// Controller for the Cloud Anchor Example.
/// Controller for the Cloud Anchors Example.
/// </summary>
public class CloudAnchorController : MonoBehaviour
{
Expand Down Expand Up @@ -249,10 +249,11 @@ public void OnResolveRoomClick()
var roomToResolve = UIController.GetRoomInputValue();
if (roomToResolve == 0)
{
UIController.ShowResolvingModeBegin("Invalid room code.");
UIController.ShowResolvingModeBegin("Anchor resolve failed due to invalid room code.");
return;
}

UIController.SetRoomTextValue(roomToResolve);
string ipAddress =
UIController.GetResolveOnDeviceValue() ? k_LoopbackIpAddress : UIController.GetIpAddressInputValue();

Expand All @@ -262,7 +263,8 @@ public void OnResolveRoomClick()
{
if (!found)
{
UIController.ShowResolvingModeBegin("Invalid room code.");
UIController.ShowResolvingModeBegin("Anchor resolve failed due to invalid room code, " +
"ip address or network error.");
}
else
{
Expand All @@ -276,6 +278,8 @@ public void OnResolveRoomClick()
/// </summary>
private void _HostLastPlacedAnchor()
{
#if !UNITY_IOS || ARCORE_IOS_SUPPORT

#if !UNITY_IOS
var anchor = (Anchor)m_LastPlacedAnchor;
#else
Expand All @@ -294,6 +298,7 @@ private void _HostLastPlacedAnchor()
RoomSharingServer.SaveCloudAnchorToRoom(m_CurrentRoom, result.Anchor);
UIController.ShowHostingModeBegin("Cloud anchor was created and saved.");
});
#endif
}

/// <summary>
Expand Down
Loading

0 comments on commit d7fef21

Please sign in to comment.