2014-12-07 64 views
0

我環顧了所有的互聯網,仍然沒有解決我的問題。谷歌玻璃上的模糊相機視圖

我試圖在Google Glass上推出一個非常簡單的AR應用程序。項目是使用Vuforia插件在Unity 3D中創建的。我已經在GGlass上獲得了應用程序,所以它從語音觸發開始「玩遊戲」,然後我可以看到「由統一動力」介紹。

但是,這之後我的相機在玻璃上就模糊了。甚至沒有清晰的相機視圖,當然對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 對不起,太多的代碼,但是這是我第一次與工作這一切(的Android,團結和玻璃)

有人可以給我一個提示在哪裏看和做什麼?

+0

發佈代碼,發佈更多詳細信息,幫助我們,幫助你! – FunctionR 2014-12-07 21:47:01

+0

@FunctionR請查看列表[這裏](http://slides.com/annadubovik/deck--3) – Dubovich 2014-12-07 22:00:05

+0

您可以發佈相機的代碼? – Koh 2015-01-17 00:56:56

回答

0

不確定您的用例,但接受的答案here可能會對您有所幫助。特別是,請注意surfaceCreated()surfaceChanged()中的Camera調用。

當我嘗試它時,相機預覽並不模糊。