Coder Social home page Coder Social logo

portah / augmentedsolarsystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thumbworks/augmentedsolarsystem

0.0 2.0 0.0 144.1 MB

An Augmented reality experience to explore planets in our Solar System

Objective-C 32.49% Swift 63.89% C 3.62%

augmentedsolarsystem's Introduction

BuddyBuild

Now accepting beta testers. Sign up here

Augmented Reality Solar System

This is a fun toy app which explores the capabilities of ARKit. The heavy lifting is done by SceneKit but the possibilities for exploring the world(s) are endless and exciting.

The app can be run either in ARKit with the SolarSystem target and requires the user to find an ARAnchorPlane:

Solar System on the floor

It can also be run in a SceneKit View with a black background using the SolarSystemScene target:

Solar System on a SCNView

The ARKit is much more interactive, while the SCNView is much more debuggable.

Structure

The main data type, called a Planet describes the properties of each of the planets in the solar system. This includes the name, the planet's radius, axialTilt, orbitalRadius, orbitalPeriod and rotationDuration. There are static initializers for each of the planets for convenience. A Planet implements Equatable for easy identification of planet objects in collections.

This app relies heavily on SceneKit. Within the main scene, either in SceneKit or ARKit, all planets (including the sun) are added to the scene with a given position. The x value of the position ultimately defines the distance the planet is from the Sun. As such, manipulating this parameter allows us to describe a scale version of the Solar System where each Planet describes the distance from the Sun. See image below:

Layers

Earth Layers were found on Blender Guru and they look pretty slick up close.

Up Close

augmentedsolarsystem's People

Contributors

rodericj avatar

Watchers

James Cloos avatar Andrey Kartashov 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.