使用unity2017.3 vuforia7攝像頭放大的問題


 

最近項目需要用到vuforia並且運行環境是Win10,所幸vuforia7剛好出來了,特此記錄下開發中遇到的坑

1.從assets store下載示例,運行找不到vuforia命名空間

   很多人說的解決方案是要導入最新內置在unity中的vuforia sdk包,確實是這樣,但是!!!在導入之前,要先勾選vuforia augmented realit

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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM