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

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

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

使用unity2017.3 vuforia7摄像头放大的问题

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

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

  E:\Unity 2017.3.0.3\Editor\Data\PlaybackEngines\VuforiaSupport\VuforiaResources\webcamprofiles.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>

 

相关文章:

  • 2021-10-01
  • 2021-12-27
  • 2022-02-09
  • 2021-12-03
  • 2022-01-05
  • 2021-06-27
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-05-27
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案