zoukankan      html  css  js  c++  java
  • 使用unity2017.3 vuforia7摄像头放大的问题

    最近项目需要用到vuforia并且运行环境是Win10,所幸vuforia7刚好出来了,特此记录下开发中遇到的坑

    1.从assets store下载示例,运行找不到vuforia命名空间

       很多人说的解决方案是要导入最新内置在unity中的vuforia sdk包,确实是这样,但是!!!在导入之前,要先勾选vuforia augmented realit

    2.摄像机放大(正常电脑一般没这个问题,我们AR摄像头不知道为什么就是会放的很大)

      同事发现以前vuforia摄像机配置文件路径改变了

      E:Unity 2017.3.0.3EditorDataPlaybackEnginesVuforiaSupportVuforiaResourceswebcamprofiles.xml

     修改这个xml文件,根据你自己的摄像头名字设置其分辨率

     <webcam deviceName="FaceTime HD Camera (Built-in)">
            <windows>
                <!-- size of the web cam texture requested from Unity -->
                <requestedTextureWidth>640</requestedTextureWidth>
                <requestedTextureHeight>480</requestedTextureHeight>
                <!-- size of the texture Unity's web cam texture will be rescaled to -->
                <resampledTextureWidth>640</resampledTextureWidth>
            </windows>
            <osx>
                <!-- size of the web cam texture requested from Unity -->
                <requestedTextureWidth>1280</requestedTextureWidth>
                <requestedTextureHeight>720</requestedTextureHeight>
                <!-- size of the texture Unity's web cam texture will be rescaled to -->
                <resampledTextureWidth>640</resampledTextureWidth>
            </osx>
        </webcam>
    
  • 相关阅读:
    [CQOI2005]三角形面积并(计算几何+扫描线)
    第一天
    LA3026 周期 (kmp)
    HDU 1715 大菲波数 (java大数)
    根据身高重建队列(vector)
    K 连续位的最小翻转次数
    724. Find Pivot Index
    Two Sum
    c
    Most Powerful(状压DP水题)
  • 原文地址:https://www.cnblogs.com/dsh20134584/p/8134518.html
Copyright © 2011-2022 走看看