Git Product home page Git Product logo

ar-ane-samples's Introduction

AR-ANE-Samples

###Sep 07 , 2015 Update: We just finished Beta development on the Android side of the Wikitude SDK. You can use this version to test it in your projects but please note that it's not in release mode yet and we may change a lot of things about it. This is just a showcase to keep you devs updated with the process read here for more information

MyAR ANE

AS3 API:

import com.doitflash.air.extensions.AR.MyAR;
import com.doitflash.air.extensions.AR.MyAREvent;
import com.doitflash.air.extensions.AR.CameraPosition;

var _ex:MyAR = new MyAR([YOUR Wikitude License for Android], [YOUR Wikitude License for iOS], true);
_ex.addEventListener(MyAREvent.STATUS, onArStatus);
_ex.addEventListener(MyAREvent.COMMUNICATION, onCommunication);
_ex.addEventListener(MyAREvent.COMPASS_ACCURACY_CHANGED, onCompassAccuracyChanged);

var isSupported:Boolean = _ex.isSupported;
trace("is Supported = ", isSupported);

// can read Artichect path from assets, sdcard or online
_ex.startAR("samples/1_Client$Recognition_1_Image$On$Target/index.html", false, true, CameraPosition.DEFAULT, true) // returns false if the file is not found
// _ex.finishAR(); // call this method to close the AR camera and return back to flash

function onArStatus(e:MyAREvent):void
{
	trace("onArStatus = " + e.param);
}

function onCompassAccuracyChanged(e:MyAREvent):void
{
	trace("Compass Accuracy = " + e.param);
}

function onCommunication(e:MyAREvent):void
{
	trace("msg from JS = " + e.param);
	
	// send a msg to JS
	_ex.callJavascript("javascript:msgFromFlash('param 1 from Flash!')");
}

ar-ane-samples's People

Contributors

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