【问题标题】:Blur Camera View on Google Glass在 Google Glass 上模糊相机视图
【发布时间】:2014-12-07 21:45:11
【问题描述】:

我浏览了所有互联网,但仍然没有解决我的问题。

我正在尝试在 Google Glass 上启动一个非常简单的 AR 应用。项目是在 Unity 3D 中使用 Vuforia 插件创建的。我已经在 GGlass 上安装了应用程序,所以它从语音触发“玩游戏”开始,然后我可以看到“由统一驱动”的介绍。

但是,在这之后,我在 Glass 上的相机只是模糊了。甚至没有清晰的摄像头视图,当然对 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>

这就是我的项目 Plugins/AndroidManifest http://slides.com/annadubovik/deck--3 抱歉代码太多了,但这是我第一次使用所有这些(Android、Unity 和 Glass)

谁能给我提示一下在哪里看和做什么?

【问题讨论】:

  • 邮政编码,贴详细信息,帮帮我们,帮到你!
  • @FunctionR 请找到列表here
  • 你能贴出相机的代码吗?

标签: android unity3d google-glass augmented-reality vuforia


【解决方案1】:

不确定您的用例,但接受的答案here 可能会对您有所帮助。特别要注意surfaceCreated()surfaceChanged() 中的Camera 调用。

我试了下,相机预览不模糊。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多