Giter VIP home page Giter VIP logo

arkitworldmaps's Introduction

ARKitWorldMaps

This project is a basic example of using MultipeerConnectivity within ARKit2 to share ARWorldMaps and ARAnchors across multiple devices.

All the code is fully commented so the apps functionality should be clear to everyone.

Branches:

The Master Branch was originally compiled in XCode10 Beta using Swift 4.

An updated Branch called 'Swift4.2' contains the project built in XCode 10.5 Beta and uses Swift 4.2.

Requirements:

The project is setup for iPhone, and in Landscape Orientation.

Core Functionality:

The application automatically creates an MCSession which can be found in ARCloudShare.swift and shares ARWorldMaps and ARAnchors in real time.

Using NSKeyedArchiver and NSKeyedUnarchiver the users can rotate (using a UIPanGestureRecognizer), scale (using UIPinchGestureRecognizer), and change the colours of each of the faces of a single SCNBox using a UITapGestureRecognizer.

For the purpose of this application, I have only allowed placement of one Cube but this can easily be adapted to meet your needs.

The cube can only be placed on a detected ARPlaneAnchor, which again can easily be customised as per your needs.

The core idea behind this app, was a basic comparison between the functionality of Google Cloud Anchors, and ARKit, with ARKit winning easily.

To change the colour of one of the faces of the cube, you need to double tap on the face and then select one of the colours from the bottom menu.

arkitworldmaps's People

Contributors

blackmirrorz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.