我环顾了所有的互联网,仍然没有解决我的问题。
我正在尝试在谷歌眼镜上推出一个非常简单的AR应用程序。项目是使用Vuforia插件在Unity 3D中创建的。我已经在GGlass上安装了应用程序,所以它从语音触发“玩游戏”开始,然后我就可以看到"powered by unity“的介绍了。
但是,在这之后,我的眼镜上的相机是模糊的。甚至没有清晰的摄像机视野,当然也没有对AR或标记的反应。
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:theme="@android:style/Theme.NoTitleBar"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/my_voice_trigger" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
</activity>
</application>这是我在我的项目插件/AndroidManifest http://slides.com/annadubovik/deck--3中的代码,很抱歉代码太多了,但这是我第一次使用所有这些(安卓,统一和眼镜)
有没有人能给我个提示,告诉我该去哪里看,该怎么做?
发布于 2015-01-24 04:40:52
不确定您的用例,但公认的答案here可能会对您有所帮助。特别要注意surfaceCreated()和surfaceChanged()中的Camera调用。
当我尝试它的时候,相机预览并不模糊。
https://stackoverflow.com/questions/27348208
复制相似问题