【问题标题】:How to replace POI images in the ARView如何在 ARView 中替换 POI 图像
【发布时间】:2010-02-03 22:24:06
【问题描述】:

我正在运行一个 Wikiitude 应用程序,它显示了兴趣点 (兴趣点)。当应用程序启动时,我单击一个按钮来启动 ARView (增强现实),在那里我可以看到叠加的 POI 图像 在实时相机图像上。

现在我想经常更换这些图像。

我正在使用:

// Need handler for callbacks to the UI thread  
final Handler mHandler = new Handler();  

// Create runnable for posting
final Runnable mUpdateResults = new Runnable() {
   public void run() {
       updateResultsInUi();
   }
};

protected void startLongRunningOperation() {

   // Fire off a thread to do some work
   Thread t = new Thread() {
       public void run() {
           Pi.computePi(800).toString(); //Do something for a while
           mHandler.post(mUpdateResults); //then update image
       }
   };
   t.start();
}

但没有任何效果。我确定我做错了什么......

提前谢谢大家。

【问题讨论】:

    标签: android image point-of-interest


    【解决方案1】:

    当您说您正在运行“Wikitude 应用程序”时,您的意思是您正在使用他们公开可用的设备上 Android API (http://www.wikitude.org/developers) 构建应用程序吗?如果是这样,则不支持动态更改 POI 标记图像。 AR 视图是 Wikiitude 应用程序本身中的一项活动,通过您的意图启动。启动相机视图后,您没有进一步的 POI 控制(除了回调意图)。

    【讨论】:

      【解决方案2】:

      我们可以为兴趣点添加自定义图标。您是否浏览过Wikitude 提供的示例代码?在那里你可以找到一个方法 startARViewWithIcons()。只需浏览一遍,如果还有其他问题,请告诉我......谢谢和问候,Raghavendra K

      【讨论】:

        猜你喜欢
        • 2020-09-28
        • 2023-03-10
        • 2011-11-09
        • 2019-07-31
        • 1970-01-01
        • 2023-02-09
        • 2023-03-11
        • 2021-06-16
        • 1970-01-01
        相关资源
        最近更新 更多