• 使用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>
    
  • 相关阅读:
    用python3实现linux的sed功能
    查找列表中指定的所有元素的位置
    Django分页
    python3中字典的copy
    Python中is和==的区别的
    python3的文件读写模式
    使用python3简单完成购物过程
    python3中str的函数
    第一篇
    《笑傲江湖》传剑摘录 有感而发
  • 原文地址:https://www.cnblogs.com/dsh20134584/p/8134518.html
Copyright © 2020-2023  润新知