Code Monkey home page Code Monkey logo

arview's Introduction

An Alloy Widget for Augmented Reality inspired by...

ParmaVision: A sample Titanium AR App by Jeff Bonnes

The purpose of this "port" is to create an Alloy Widget and keep working on the functionality of Jeff's Titanium AR example.

Main Differences

  • Alloy widget vs. pure Titanium (increasingly Alloy at least)

  • Jeff wrapped 360 degrees with a series of overlay views that had the AR tags placed on them. This widget uses one overlay view and moves AR tags within that one view.

Usage

	var arWin = require('/alloy').createWidget('ArView', null, {
		pois : [],					// place description objects (see below)
		overlay : null,
		maxDistance : 50000,		// in meters
		initialLocation: {
			latitude: 44,
			longiude: -93
		},
		showDebugView: true,		// show orientation variables center screen
		staticLocation: true		// lock to the initial location
	}).getView();
  • `pois' is an array of objects representing places to be tagged in the view.

The poi description objects in the array take this form:

	{
		title: "My Place's Name",
		image: "place_icon.png",
		latitude: 44.1,
		longitude: -93.1
	}   
  • `overlay' is a view, possibly a title view, etc. that will sit on top of the ArView.

Example App

For an example of how to use this widget, please see ArView-Example-App.

arview's People

Contributors

jbeuckm 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.