如何使用vuforiaSDK开发第一个AR demo应用

本文详细介绍了如何使用Android Studio和Vuforia SDK进行AR应用开发,包括环境搭建、项目导入、示例程序运行、关键代码配置及应用部署等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.If you are using or planning to use the Android Studio IDE, here are some notes about how to import and build the Vuforia samples:

首先安装好环境:JDK,NDK,AndroidSDK,AndroidStudio IDE

  • Read our Getting Started Guide for instructions on setting up the Java SDK, Android SDK and NDK:
  • Make sure you have installed the latest version available of Android Studio from:
  • 下载好VuforiaSDK for Android :(暂时没什么用)             https://developer.vuforia.com/downloads/sdk
  • Use the Android SDK Manager (from within Android Studio) to get the latest Android SDK and Platform tools
  • Launch Android Studio
  • 下载示例程序      https://developer.vuforia.com/downloads/samples
  • Select File - > Import Project ... 导入示例程序
  • Select "Create Project from Existing Source" (选择已经存在的AS project) and select the  sample directory (or any other Vuforia sample) to import the sample project
  • 在项目设置那里设置NDK路径
  • Click Apply
  • Compile the project
  • Build the native code using ndk-build (as explained in our Getting Started guide)
  • Run the app on your device

 

2.申请key

如果不申请项目key,会报错

https://developer.vuforia.com/targetmanager/licenseManager/licenseListing

申请完成后,点击APP NAME可以看到申请的key

 

3.为项目配置key

添加key的方法是在 SampleApplicationSession类里面的
Vuforia.setInitParameters(mActivity, mVuforiaFlags, " ");  空格里面就是填写key

 

这是官方介绍:https://developer.vuforia.com/library/articles/Solution/How-To-add-a-License-Key-to-your-Vuforia-App

 

 

4.下载samples的示例PDF,运行里面的功能即可实现AR的一些demo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值