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>
    
  • 相关阅读:
    汉字词组换行
    C#中获取Excel文件的第一个表名
    SQL查找某一条记录的方法
    C#数据库连接字符大全
    整理的asp.net资料!(不得不收藏)
    母版页的优点,及母版页与内容页中相互访问方法
    13范式
    使用 Jackson 树连接线形状
    word2007,取消显示回车符
    三张表之间相互的多对多关系
  • 原文地址:https://www.cnblogs.com/dsh20134584/p/8134518.html
Copyright © 2011-2022 走看看