Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
add debugging to camera and marker tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
ababilinski committed Jun 21, 2023
1 parent c842255 commit 45cf848
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ MonoBehaviour:
m_Bits: 4294967295
m_AttachTransform: {fileID: 0}
m_KeepSelectedTargetValid: 1
m_DisableVisualsWhenBlockedInGroup: 1
m_StartingSelectedInteractable: {fileID: 0}
m_StartingTargetFilter: {fileID: 0}
m_HoverEntered:
Expand Down Expand Up @@ -396,8 +395,6 @@ MonoBehaviour:
m_HitClosestOnly: 0
m_HoverToSelect: 0
m_HoverTimeToSelect: 0.5
m_AutoDeselect: 0
m_TimeToAutoDeselect: 3
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
Expand Down Expand Up @@ -653,7 +650,6 @@ MonoBehaviour:
m_BlockedReticle: {fileID: 0}
m_StopLineAtFirstRaycastHit: 1
m_StopLineAtSelection: 0
m_SnapEndpointIfAvailable: 1
--- !u!114 &4041793601250586351
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -998,7 +994,6 @@ MonoBehaviour:
m_Bits: 4294967295
m_AttachTransform: {fileID: 0}
m_KeepSelectedTargetValid: 1
m_DisableVisualsWhenBlockedInGroup: 1
m_StartingSelectedInteractable: {fileID: 0}
m_StartingTargetFilter: {fileID: 0}
m_HoverEntered:
Expand Down Expand Up @@ -1086,8 +1081,6 @@ MonoBehaviour:
m_HitClosestOnly: 0
m_HoverToSelect: 0
m_HoverTimeToSelect: 0.5
m_AutoDeselect: 0
m_TimeToAutoDeselect: 3
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
Expand Down Expand Up @@ -1343,7 +1336,6 @@ MonoBehaviour:
m_BlockedReticle: {fileID: 0}
m_StopLineAtFirstRaycastHit: 1
m_StopLineAtSelection: 0
m_SnapEndpointIfAvailable: 1
--- !u!1 &5827826083951272184
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1579,7 +1571,6 @@ MonoBehaviour:
m_Bits: 4294967295
m_AttachTransform: {fileID: 0}
m_KeepSelectedTargetValid: 1
m_DisableVisualsWhenBlockedInGroup: 1
m_StartingSelectedInteractable: {fileID: 0}
m_StartingTargetFilter: {fileID: 0}
m_HoverEntered:
Expand Down Expand Up @@ -1667,8 +1658,6 @@ MonoBehaviour:
m_HitClosestOnly: 0
m_HoverToSelect: 0
m_HoverTimeToSelect: 0.5
m_AutoDeselect: 0
m_TimeToAutoDeselect: 3
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
Expand Down Expand Up @@ -1924,7 +1913,6 @@ MonoBehaviour:
m_BlockedReticle: {fileID: 0}
m_StopLineAtFirstRaycastHit: 1
m_StopLineAtSelection: 0
m_SnapEndpointIfAvailable: 1
--- !u!1 &5827826084172097328
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1959,7 +1947,7 @@ Transform:
m_Children:
- {fileID: 5827826083775952710}
m_Father: {fileID: 0}
m_RootOrder: -1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5827826084172097330
MonoBehaviour:
Expand Down Expand Up @@ -2211,10 +2199,10 @@ MonoBehaviour:
m_DirectionalAnchorRotationAction:
m_UseReference: 0
m_Action:
m_Name:
m_Name: Directional Anchor Rotation
m_Type: 0
m_ExpectedControlType:
m_Id:
m_Id: 59a5dff3-0dd9-4614-a075-3e6f2a986a26
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
Expand Down Expand Up @@ -2253,7 +2241,6 @@ MonoBehaviour:
m_Bits: 4294967295
m_AttachTransform: {fileID: 0}
m_KeepSelectedTargetValid: 1
m_DisableVisualsWhenBlockedInGroup: 1
m_StartingSelectedInteractable: {fileID: 0}
m_StartingTargetFilter: {fileID: 0}
m_HoverEntered:
Expand Down Expand Up @@ -2341,8 +2328,6 @@ MonoBehaviour:
m_HitClosestOnly: 0
m_HoverToSelect: 0
m_HoverTimeToSelect: 0.5
m_AutoDeselect: 0
m_TimeToAutoDeselect: 3
m_EnableUIInteraction: 1
m_AllowAnchorControl: 1
m_UseForceGrab: 1
Expand Down Expand Up @@ -2598,7 +2583,6 @@ MonoBehaviour:
m_BlockedReticle: {fileID: 0}
m_StopLineAtFirstRaycastHit: 1
m_StopLineAtSelection: 0
m_SnapEndpointIfAvailable: 1
--- !u!1 &7420615899294838510
GameObject:
m_ObjectHideFlags: 0
Expand Down
134 changes: 132 additions & 2 deletions Assets/MagicLeap/PhotonFusionExample/Scenes/MarkerColocation.unity
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 2
m_Version: 3
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
Expand All @@ -424,7 +424,7 @@ MonoBehaviour:
m_ShadowRenderingLayers: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 1
m_SoftShadowQuality: 2
--- !u!1 &603375775
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -466,6 +466,11 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 1662075093}
m_Modifications:
- target: {fileID: 2090076763714845189, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value: Not Connected To Photon
objectReference: {fileID: 0}
- target: {fileID: 2090076764477245125, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_RootOrder
Expand Down Expand Up @@ -541,6 +546,11 @@ PrefabInstance:
propertyPath: m_Name
value: Moveable Cube
objectReference: {fileID: 0}
- target: {fileID: 2090076765059844014, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
Expand Down Expand Up @@ -1062,6 +1072,11 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 306372738}
m_Modifications:
- target: {fileID: 2090076763714845189, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value: Not Connected To Photon
objectReference: {fileID: 0}
- target: {fileID: 2090076764477245125, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_RootOrder
Expand Down Expand Up @@ -1137,6 +1152,11 @@ PrefabInstance:
propertyPath: m_Name
value: Moveable Cube
objectReference: {fileID: 0}
- target: {fileID: 2090076765059844014, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
Expand Down Expand Up @@ -1225,6 +1245,11 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 603375776}
m_Modifications:
- target: {fileID: 2090076763714845189, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value: Not Connected To Photon
objectReference: {fileID: 0}
- target: {fileID: 2090076764477245125, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_RootOrder
Expand Down Expand Up @@ -1300,6 +1325,11 @@ PrefabInstance:
propertyPath: m_Name
value: Moveable Cube
objectReference: {fileID: 0}
- target: {fileID: 2090076765059844014, guid: 63d41041cface864cbc3c324765868e6,
type: 3}
propertyPath: m_text
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
Expand All @@ -1313,6 +1343,76 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_Id
value: ce78dce0-18b0-4c00-9447-e580e8bc1d12
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_Id
value: 23c4c17c-cee1-4c36-88fd-a57ca8085454
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_Name
value: Position Input
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_Name
value: Rotation Input
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_TrackingStateInput.m_Action.m_Id
value: e647db30-1b18-4f50-9f11-46b7f9309793
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_TrackingStateInput.m_Action.m_Name
value: Tracking State Input
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_SingletonActionBindings.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_SingletonActionBindings.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Id
value: fd560ebc-a009-4051-82f9-93fd9cc2feca
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Id
value: 8b1aa2e1-ecc0-4f31-85b6-bd63b463cd08
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Path
value: <XRHMD>/centerEyePosition
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Path
value: <XRHMD>/centerEyeRotation
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_PositionInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Action
value: Position Input
objectReference: {fileID: 0}
- target: {fileID: 556147534609547638, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_RotationInput.m_Action.m_SingletonActionBindings.Array.data[0].m_Action
value: Rotation Input
objectReference: {fileID: 0}
- target: {fileID: 2408004626713862601, guid: 4b7b31e30b61762449b60c46c68c18cc,
type: 3}
propertyPath: m_Name
Expand Down Expand Up @@ -1488,6 +1588,11 @@ PrefabInstance:
propertyPath: _desktopRig
value:
objectReference: {fileID: 6576317625673081306}
- target: {fileID: 2620892672312268187, guid: 4fb8466322a31c147ae36f4f903eaa55,
type: 3}
propertyPath: _magicLeapRig
value:
objectReference: {fileID: 4785960936823609616}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
Expand Down Expand Up @@ -1684,11 +1789,36 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6420312414655734290, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6420312414655734294, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_Camera
value:
objectReference: {fileID: 69381326}
- target: {fileID: 6420312414655734294, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6420312414772962358, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6420312414772962358, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6420312414772962358, guid: ddab83da00e3fa94285c2bdfd7781aa8,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public static void InstallGenericAprilTagTracking()
{
System.IO.Compression.ZipFile.ExtractToDirectory(fullPathToZip, fullPathToDestination);
AssetDatabase.Refresh();
Client.Resolve();

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ private void OnValidate()

void Start()
{
_markerTracker = BaseMarkerTrackerBehaviour.Instance;
OnFollowClicked();

OnFollowClicked();
StartCoroutine(FindMarker());
_instructionsPanel.gameObject.SetActive(true);
_calibrationPanel.gameObject.SetActive(false);

Expand All @@ -54,6 +54,19 @@ void Start()
SubscribeToInput();
}

IEnumerator FindMarker()
{
_markerTracker = BaseMarkerTrackerBehaviour.Instance;
while (_markerTracker== null)
{
_markerTracker = BaseMarkerTrackerBehaviour.Instance;
Debug.LogWarning("Searching for marker tracker...");
yield return null;
}

Debug.LogWarning("<color=green>marker tracker found.</color>");
}

private void SubscribeToInput()
{
if (_desktopCalibrationAction.action != null)
Expand Down
Loading

0 comments on commit 45cf848

Please sign in to comment.