【问题标题】:AR With Printed Buttons带有印刷按钮的 AR
【发布时间】:2011-10-02 04:13:00
【问题描述】:

我制作了一个 AR 应用程序,它可以检测打印的标记并在其上播放视频。 我想在纸上打印一个按钮,当它被手指挡住时会触发一个事件。

图片链接: http://tinypic.com/view.php?pic=23le2h2&s=7

应用程序开发是有一个仅适用于简单打印纸和网络摄像头的 AR 测验。通过隐藏标记触发按钮事件的最佳解决方案是什么?

操作系统:Windows PC

框架: FLARManager

【问题讨论】:

    标签: augmented-reality flartoolkit


    【解决方案1】:

    你只需要听什么时候以及什么标记组合是活跃的,并做出如下陈述:

    private function onEnterFrame (evt:Event) :void
    {           
      if (this.activeMarker_1 && this.activeMarker_2)
      {
         trace("no button is being pressed");
      }
      else if (this.activeMarker_1 && this.activeMarker_2 == null)
      {
          trace("answer: no");
      }
      else if (this.activeMarker_1 == null && this.activeMarker_2)
      {
          trace("answer: yes");
      }
      else if (this.activeMarker_1 == null && this.activeMarker_2 == null)
      {
          trace("both buttons are being pressed");
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2018-09-01
      • 2019-01-30
      • 2016-01-03
      • 1970-01-01
      • 2013-03-11
      • 2013-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多