守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2869|回复: 0
打印 上一主题 下一主题

Metaio增强现实(AR,Augmented Reality)ANE

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52693
    钢镚
    1422

    开源英雄守望者

    跳转到指定楼层
    楼主
    发表于 2015-4-8 17:52:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    应用下载
    应用名称: AR-ANE-SampleMarkerless3DAnimation
    支持64位: 支持
    当前版本: 未知
    运行平台: Android IOS 
    开发语言: ActionScript 3 JAVA 其他 
    应用类别: ANE-多平台
    应用简介: MyAR is an augmented reality Air Native Extension supporting Android and iOS 64-bit based on Metaio's SDK which gives you full power over your AR content through AREL.
    AR-ANE-SampleMarkerless3DAnimation

    MyAR is an augmented reality Air Native Extension supporting Android and iOS 64-bit based on Metaio's SDK which gives you full power over your AR content through AREL. http://www.metaio.com/

    check out this video to see how it looks: https://www.youtube.com/watch?v=2j6HLW1CzzM

    you may also run the demo .apk in your device to see it in action: https://github.com/myflashlab/AR-ANE-SampleMarkerless3DAnimation/raw/master/FlashDevelop/dist/exAR-captive-runtime.apk

    for more information, read "ReadMe.pdf"

    AS3 API:

    1. import com.doitflash.air.extensions.AR.MyAR;
    2. import com.doitflash.air.extensions.AR.MyAREvent;

    3. var _ex:MyAR = new MyAR();
    4. _ex.stage = stage;
    5. _ex.fixAirSDKOrientsBug(stage.autoOrients); // this is a bug on iOS 64-bit only. we must wait for adobe to give a final solution. calling this method is just a workaround so the app won't break when returning from AR in iOS devices.
    6. _ex.addEventListener(MyAREvent.COMMUNICATION, onCommunication); // A listener to listen to messages coming from AREL side
    7. _ex.addEventListener(MyAREvent.STATUS, onStatus); // A listener to know about the AR status: MyAR.AR_STARTED / MyAR.AR_FINISHED

    8. trace("is Supported = ", _ex.isSupported());

    9. _ex.startAR("/METAIO_AR_ANE_demo/AREL_FILES/index.xml", true); // returns false if the file is not found
    10. // _ex.finishAR(); // call this method to close the AR camera and return back to flash

    11. function onCommunication(e:MyAREvent):void
    12. {
    13.      // send a message from AREL to flash like: arel.Media.openWebsite("flash://MY_MESSAGE_FROM_JS")
    14.      trace("message from AREL = " + e.param);

    15.      // on the AREL side, you may wish to open a URL in device's browser. for this reason, call:
    16.      // arel.Media.openWebsite("http://www.myappsnippet.com/")

    17.      // you can also call functions on the AREL side from flash, like this:
    18.      _ex.toAREL("javascript:myjavascriptfunc('param 1 from Flash!', 'param 2 from Flash!')"); // myjavascriptfunc is a function you may create on the AREL side
    19. }

    20. function onStatus(e:MyAREvent):void
    21. {
    22.      trace("AR Status = " + e.param);
    23. }
    复制代码


    相关链接:

    https://github.com/myflashlab/AR-ANE-SampleMarkerless3DAnimation



    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
    收藏收藏 分享分享 支持支持 反对反对 微信
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-4-19 20:34 , Processed in 0.053841 second(s), 32 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表