All Projects → magicleap → xr-kit-samples-unity

magicleap / xr-kit-samples-unity

Licence: other
Magicverse SDK sample project

Programming Languages

C#
18002 projects
objective c
16641 projects - #2 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to xr-kit-samples-unity

Geostatspy
GeostatsPy Python package for spatial data analytics and geostatistics. Mostly a reimplementation of GSLIB, Geostatistical Library (Deutsch and Journel, 1992) in Python. Geostatistics in a Python package. I hope this resources is helpful, Prof. Michael Pyrcz
Stars: ✭ 200 (+669.23%)
Mutual labels:  spatial
GeoArrays.jl
Simple geographical raster interaction built on top of ArchGDAL, GDAL and CoordinateTransformations
Stars: ✭ 42 (+61.54%)
Mutual labels:  spatial
de9im
DE-9IM spatial predicate library implemented in Javascript.
Stars: ✭ 22 (-15.38%)
Mutual labels:  spatial
Geostats.jl
An extensible framework for high-performance geostatistics in Julia
Stars: ✭ 222 (+753.85%)
Mutual labels:  spatial
SpatGRIS
Sound spatialization tool
Stars: ✭ 37 (+42.31%)
Mutual labels:  spatial
pygeopackage
A Python package to read/write spatial data to a geopackage.
Stars: ✭ 33 (+26.92%)
Mutual labels:  spatial
Doctrine Postgis
Spatial and Geographic Data with PostGIS and Doctrine.
Stars: ✭ 161 (+519.23%)
Mutual labels:  spatial
coupled-sim
Coupled simulator for research on driver-pedestrian interactions made in Unity3D.
Stars: ✭ 20 (-23.08%)
Mutual labels:  multi-user
libimobiledevice-glue
A library with common code used by libraries and tools around the libimobiledevice project
Stars: ✭ 46 (+76.92%)
Mutual labels:  shared
rsgislib
Remote Sensing and GIS Software Library; python module tools for processing spatial data.
Stars: ✭ 103 (+296.15%)
Mutual labels:  spatial
Mathnet Spatial
Math.NET Spatial
Stars: ✭ 246 (+846.15%)
Mutual labels:  spatial
Jquery.scrollto
Lightweight, cross-browser and highly customizable animated scrolling with jQuery
Stars: ✭ 3,609 (+13780.77%)
Mutual labels:  anchors
m1-web-spatialaudioplayer
Consolidated Mach1 spatial audio player focused on collecting all headtracking input methods and defining best practices
Stars: ✭ 26 (+0%)
Mutual labels:  spatial
Depthai
DepthAI Python API utilities, examples, and tutorials.
Stars: ✭ 203 (+680.77%)
Mutual labels:  spatial
shared-react-components-example
An example of a mono-repository of shared React components libraries!
Stars: ✭ 85 (+226.92%)
Mutual labels:  shared
Googleway
R Package for accessing and plotting Google Maps
Stars: ✭ 187 (+619.23%)
Mutual labels:  spatial
geodaData
Data package for accessing GeoDa datasets using R
Stars: ✭ 15 (-42.31%)
Mutual labels:  spatial
lockbot
🔒 Coordinate use of your team's shared resources, in Slack 🤝
Stars: ✭ 47 (+80.77%)
Mutual labels:  shared
AOI
An R 📦 to find, process, and describe "areas of interest"
Stars: ✭ 27 (+3.85%)
Mutual labels:  spatial
wkb-parser
Well-known binary (WKB) Parser.
Stars: ✭ 69 (+165.38%)
Mutual labels:  spatial

Magicverse 101

Copyright 2019-2020 Magic Leap, Inc. All rights reserved.

Created on and tested with :

  • Unity 2019.3.5f1
  • Lumin SDK 0.24
  • Lumin OS 0.98.10
  • Xcode Version 11.3.1 (11C504)
  • iOS Version 13.3.1
  • Android 10

Overview

This example shows how to create a Magicverse enabled Unity project that anchors content to Magic Leap created PCFs and transmits that content across a peer to peer local area network. This enables other devices running either an XR Kit enabled version of the app on iOS or Android, or other Magic Leap devices with the same app to see the same content. The opposite is also shown, where an XR Kit enabled iOS or Android app can place a cube attached to an Anchor and it will appear on peer Magic Leap, iOS, and Android devices as well.

Getting started

This project contains one file that is stored in LFS since it is too large: https://github.com/magicleap/xr-kit-samples-unity/blob/master/Magicverse101/Packages/MagicLeapXRKit/Runtime/Native/iOS/libmlxr_runtime_s.a

So to get started on this project, git clone the repo to a folder in your hard drive, then cd into that folder and run the git lfs pull command to pull down the full file.

Caveat: if you use the "Download Zip" button above, the zip will only contain the lfs link and not the full file.

Implementation notes

Note: This code uses a modified version of the MLTK Transmission API. A new overloaded version of Transmission.Spawn API has been added which takes a PCFID/XRAnchor string as a parameter. If this parameter exists, the passed position and rotation will be used as a local offset to the given PCF (rather than to the current user’s headpose). It is used to spawn a resource from the resource folder on all peers and set the newly spawned object as a child of a PCF.

The Unity project contains a cross platform codebase and can be compiled and ran on Lumin, iOS, and Android.

Note: For iOS and Android, this sample project uses XR Kit for Unity, and will require the developer to obtain OAuth credentials and populate them in the project as described in the documentation there.

The code includes an example main MVPlacementExample which manages the Input and calls our modified Transmission.Spawn to spawn an Anchor/PCF attached game object across all peers on the network.

PCFSystem handles management of both the PCFs (on Lumin) and Anchors (on iOS or Android).

PCFAnchorVisual maintains the text strings seen in space. These will only be visible if the checkbox is checked on PCFSystem and if PCFSystem has a prefab with PCFAnchorVisual attached to it.

There are two scenes, one for Lumin and another for iOS and Android. Select the correct scene for the correct build target, set up OAuth credentials and away you go! Experience the Magicverse…

License

See details in license.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].