Skip to content

magicallightandsound/GlobalWorldOrigin-MLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Global World Origin Source Package

Research and development, with the Magic Leap v0.24.1 SDK

What you get:

a) A cube that is aware of Persisten Coordinate Frames (PFC). Move the cube with the controller and after restarting the App, the cube should be re-positioned automatically at the PCF-bound position.
b) A controller picker/manipulator
c) A world mesh (tap the bumper to show or hide the mesh)


Required:

Unity 2019.3.4f1 (Install via the Unity Hub)
Magic Leap SDK v0.24.0 or higher
Lumin OS 0.98.10 or higher

To use:

1) You should have a working version of The Lab and have installed the necessary Packages using the Package Manager
2) git clone the Unity-Template-0.24.0 located at https://github.com/magicleap/UnityTemplate.git  (Latest commit 9eb927c on Dec 19, 2019)
3) Open the Unity Project in Unity 2019.3.4f1  (You may have to use the Unity Hub to install the older Unity Editor v2019.3.4f1)
4) When asked to upgrade to use the latest Asset Database v2.0, click on YES
5) It may take a few minutes for Unity3D to import/open the Project
6) Go to File -> Build Settings and choose Lumin as the Platform and click on the Switch Platform button
7) It may take a few minutes for Unity3D to switch to the Lumin Platform
8) Leave the Built Settings Window open
9) In the Project Window, right click on Assets then -> Import Package, then click on Custom Package, then click opn GlobalWorldOrigin.unitypackage and click on the Open button
10) When asked to choose what to import, click on the All button, then click on the Import button
11) It may take a few minutes to import the Demo.unitypackage
12) If you look at the Project Windows, and look at the Assets folder, you will see new folders "GlobalOrigin-MLS" and TextMesh Pro 
13) Click to open the GlobalOrigin-MLS folder, then click to open the Scenes folder
14) Double click on the "Global Origin" scene, to load it
15)  In the Build Settings Folder, click on the Player Settings button
16)  In the Player, go to Publisher Settings and enter the path to your Magic Leap dev certificate, then close the Project Settings window
17) In the Build Settings Folder, click the Build button to build the mpk file

Rodney Degracia
rodney@magicallightandsound.com


Note: 

To test, you should do the following:

Prequisites:
- You have successfully built the App following the above 17 steps
- You have enabled Shared World in your device settings

1) Restart your ML device.
2) When it asks you to scan your Home,  scan your Home so that it will create a localized map.
3) After you're done scanning your home and ML says it recognizes your space, then launch the App.
4) Move the cube to the center of the room.
5) Hold down the home button to pause the App, to get back to the Main menu.
6) When you are back at the Main menu, hold the home button again and you will see the task list.
7) Terminate the App from the list of running/paused tasks.
8) Then relaunch the App from the Main menu.
9) The cube should reaapper in the center of the room.




About

Persistent Coordinate Frames research and development with the Magic Leap SDK v0.24.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors