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>
    
  • 相关阅读:
    网页版游戏(俄罗斯方块)
    模拟简单进程调度实验
    从小型网站到超大规模网站的MySQL参考架构
    Google Chart Tools学习笔记 二 Area Chart
    大话设计模式——建造者模式
    内存管理:分页,分段,段页结合
    2012第50周星期一自制力网摘
    第49周星期五糟糕破系统
    2012年第50周四
    2012第50周五
  • 原文地址:https://www.cnblogs.com/dsh20134584/p/8134518.html
Copyright © 2011-2022 走看看