OpenVR独立驱动制作

   使用OpenVR+HTcVive的VR程序,每次部署都需要安装steam平台,再安装steamVR 运行环境,导致部署相对麻烦,尤其是多台主机部署,所以就想研究下有什么办法脱离steam框架。
  
  
  1. 经过反复测试和摸索,发现,Steam下载SteamVR时,会先缓存到本地downloading目录,然后拷贝到制定目录进行注册安装。最终Steam安装目录下的:steamapps\common\SteamVR目录文件得到了更新。
  2. 找到SteamVR目录,发现vrpathreg.exe比较有嫌疑,命令行下执行:vrpathreg.exe /?
 
            Commands:
              show - Display the current paths
              setruntime <path> - Sets the runtime path
              setthis - Sets the runtime path to the runtime that vrpathreg lives in
              setconfig <path> - Sets the config path
              setlog <path> - Sets the log path
              adddriver <path> - Adds an external driver
              removedriver <path> - Removes an external driver
          
  3. 研究了下参数,发现:setruntime、setlog、setconfig 命令可以执行安装路径设置,明确可以运行VR程序。
  
  4. 整理了下,只需写个批处理就可完成Runtime的安装:
  
        vrpathreg.exe setruntime %~dp0\SteamVR
        vrpathreg.exe setconfig %~dp0\config
        vrpathreg.exe setlog %~dp0\logs
    
        %regApp% show
   
  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值