作为一个非游戏玩家,我只想玩虚拟现实,并体验它。与Oculus和Hive相比,OSVR似乎是一个便宜的选择。
我上周拿到了HDK,非常兴奋,想马上在我的(OSX10.11.5 El Capitan / 2.7 GHz i7 /16 GT DDR3 / nVidia GeForce GT 650 m 1024 my )上测试它。
首先,我在每个https://github.com/OSVR/OSVR-Docs/blob/master/Getting-Started/Installing/osx.md上安装了osvrcore,使用了homebrew选项
$ brew tap OSVR/osvr
$ brew install osvr-core --HEAD不过,我必须使用自制软件手动安装opencv。
然后我把所有的电缆连接起来,把HMD和摄像头连接到我的Mac电脑上。看到我的屏幕延伸到HMD屏幕,但旋转了90度。根据https://github.com/OSVR/OSVR-Docs/blob/master/Getting-Started/HDK/HDK-Unboxing-and-Getting-Started.md
在默认情况下,它可能会以1080x1920“肖像”显示器的形式出现。这是最高性能的模式。但是,此时大多数应用程序都无法在这种模式下使用它,因此您需要选择1920x1080分辨率。(这并不意味着您必须更改“旋转”设置--只要选择替代分辨率,HMD将在内部执行旋转。)
然而,上面并没有对我起作用,在将分辨率设置为1920x1080之后,HMD上的显示就变得一团糟了。所以我跟踪了http://www.osvr.org/forum/viewtopic.php?f=10&t=3572&p=4272&hilit=osx#p4272,做了屏幕旋转,然后我可以看到扩展屏幕显示在HMD上。
从那以后我就被困住了。根据https://github.com/OSVR/OSVR-Docs/blob/master/Getting-Started/HDK/HDK-Unboxing-and-Getting-Started.md
默认配置应该适用于具有直接模式系统的HDK1.3/1.4用户,但还有其他配置选项。此外,HMD本身有一个配置工具,可以让您进一步定制。
并且看起来默认配置文件只是空的:
/* The default config file, as used with the HDK, is fully auto-detected, so no configuration required. */
/* See the JSON-Schema for server config or other samples to see possible options. */
{
"description": "The default config file, as used with the HDK, is fully auto-detected, so no configuration required. See the JSON-Schema for server config or other samples to see possible options."
}不管怎么说,我做了个测试:
$ pwd
/usr/local/Cellar/osvr-core/HEAD/share/osvrcore
$ osvr_server osvr_server_config.json
[OSVR Server] Using config file 'osvr_server_config.json'
[OSVR Server] Constructing server as configured...
[OSVR Server] Loading auto-loadable plugins...
[OSVR Server] Loading plugins...
[OSVR Server]
[OSVR Server] Instantiating configured drivers...
[OSVR Server]
[OSVR Server] Using OSVR HDK for display configuration. Did not find an alternate valid 'display' object in config file.
[OSVR Server] Triggering automatic hardware detection...
[OSVR Server] Registering shutdown handler...
[OSVR Server] Starting server mainloop: OSVR Server is ready to go!
[OSVR] Performing hardware auto-detection.
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKit0
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKitPrediction0
[OSVR] Path tree updated or connection detected
[OSVR] Sending path tree to clients.然后我跟随http://hapticmonkey.weebly.com/blog/installing-osvr-on-yosemite-mac-os安装OSVRTrackerView,并在一个单独的窗口上运行OSVRTrackerView。我确实在我的mac屏幕上的一个窗口中看到了红色/蓝色/绿色箭头,当我旋转我的HMD时,这些箭头确实旋转。但仅此而已。我在我的HMD屏幕上看不到它。
下面是来自osvr-服务器的输出
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKit0
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKitPrediction0
[OSVR] Path tree updated or connection detected
[OSVR] Sending path tree to clients.
vrpn: Connection request received from 127.0.0.1: 127.0.0.1 65307
[OSVR] Performing hardware auto-detection.
[OSVR] Path tree updated or connection detected
[OSVR] Sending path tree to clients.
vrpn: Connection request received from 127.0.0.1: 127.0.0.1 65309[/code]下面是来自TrackerView控制台的输出:
$ /usr/local/Cellar/osvr-tracker-viewer/HEAD/OSVRTrackerView
[OSVR] Connecting to default (local) host
[OSVR] Client context initialized for org.osvr.trackerview
[OSVR] Got connection to main OSVR server
[OSVR] Got updated path tree, processing
[OSVR] Connected 0 of 0 unconnected paths successfully
[OSVR] Connection process took 10ms: have connection to server, have path tree
[TrackerViewer] No arguments passed: default is as if you passed the following:
--pose /me/hands/left --pose /me/hands/right --pose /me/head你可以指定--姿态或-方向,然后是路径,随你想要多少次。传递论点--帮助获取更多信息。
[OSVR] Interface initialized for /me/hands/left
[OSVR] Could not resolve source for /me/hands/left
[OSVR] Interface initialized for /me/hands/right
[OSVR] Could not resolve source for /me/hands/right
[OSVR] Interface initialized for /me/head
[OSVR] Constructed a TrackerHandler for com_osvr_Multiserver/OSVRHackerDevKitPrediction0@localhost:3883 sensor 0
[OSVR] Successfully produced handler for /me/head
[TrackerViewer] /me/head - got first report, enabling display![/code]现在我想更进一步。根据https://github.com/OSVR/OSVR-Docs/blob/master/Getting-Started/HDK/HDK-Unboxing-and-Getting-Started.md,我可以运行The "Palace" Demo
OSVR统一宫演示(源回购)是一个视觉丰富的环境,看看周围和探索在使用OSVR支持的硬件,包括HDK。第一个链接包含Windows的二进制下载:只需下载并运行(确保OSVR服务器正在运行!),如果需要,可以使用游戏垫或键盘和鼠标在环境中移动。在启动屏幕上,您需要选择HDK配置为的显示器,以及1920x1080全高清分辨率。
但它似乎只适用于Windows。我不知道怎么才能让它在Mac上工作。
我还尝试使用其他配置文件: osvr_server_config.HDK13DirectMode.sample.json:
$ cp sample-configs/osvr_server_config.HDK13DirectMode.sample.json osvr_server_config.json
$ osvr_server osvr_server_config.json
[OSVR Server] Using config file 'osvr_server_config.json'
[OSVR Server] Constructing server as configured...
[OSVR Server] Loading auto-loadable plugins...
[OSVR Server] Loading plugins...
[OSVR Server]
[OSVR Server] Instantiating configured drivers...
[OSVR] Added device: org_osvr_filter_videoimufusion/HeadFusion
[OSVR] Client context initialized for org.osvr.analysisplugin
[OSVR] Interface initialized for /com_osvr_Multiserver/OSVRHackerDevKitPrediction0/semantic/hmd
[OSVR] Interface initialized for /com_osvr_VideoBasedHMDTracker/TrackedCamera0_0/semantic/hmd/front
[OSVR Server] Successes:
[OSVR Server] - com_osvr_VideoBasedHMDTracker/VideoBasedHMDTracker
[OSVR Server] - org_osvr_filter_videoimufusion/VideoIMUFusion
[OSVR Server]
[OSVR Server]
[OSVR Server] Aliases found and parsed from config file.
[OSVR Server] Display descriptor found and parsed from config file.
[OSVR Server] RenderManager config found and parsed from the config file.
[OSVR Server] Triggering automatic hardware detection...
[OSVR Server] Registering shutdown handler...
[OSVR Server] Starting server mainloop: OSVR Server is ready to go!
[OSVR] Performing hardware auto-detection.
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKit0
[OSVR] Added device: com_osvr_Multiserver/OSVRHackerDevKitPrediction0但是,正如您在上面看到的,它只是停留在那里,我没有看到默认(空)配置文件中的行[OSVR] Sending path tree to clients.。更重要的是,使用这个配置文件,我甚至不能再杀死osvr服务器了。它只是打印出来:
^C[OSVR Server] Received shutdown signal...
^C[OSVR Server] Received shutdown signal...
^C[OSVR Server] Received shutdown signal...
^C[OSVR Server] Received shutdown signal...
^C[OSVR Server] Received shutdown signal...所以我不得不杀了-9那个过程。
我还试着继续前进,从https://itch.io/games/osvr/platform-osx下载了一个游戏,这个游戏是:https://seven-hills-games.itch.io/hellicott-city。但当我发射的时候。它只显示在我的Mac屏幕上的所有东西,并在顶部警告“没有检测到HMD”。
有谁能对下一步该做些什么给出建议吗?
发布于 2016-06-20 08:21:00
不是Mac用户,也不是熟悉该特定游戏的人,但是,它可能只在扩展模式和/或Mac上不可用的直接模式下运行。您是否尝试过更改配置以关闭直接模式?跟踪查看器不应该出现在HDK中,它更像是一个跟踪工作/调试的验证。在Windows上,当HDK处于扩展模式时,它将显示为显示属性中的另一个屏幕。有一个名为OSVR的应用程序,但它可能只适用于Windows。显示配置位于\OSVR-Core\bin\osvr_server_config.json中。尝试设置"directModeEnabled": false
发布于 2016-06-21 18:58:11
这里有OSVR和Hellicott城的开发商。
您能让RenderManagerOpenGL示例运行吗?不确定这是否包括在自制安装。我无法让自制安装工作,但是当我从源代码构建OSVR时,RenderManager示例可以工作。在转到其他应用程序之前,我会用扩展模式配置来测试这一点,因为它运行所需的一切都已经存在了。
@reden是正确的,直接模式将无法工作,您将需要使用扩展模式配置文件,或任何空的配置文件,如您张贴的,将不使用RenderManager。
Hellicott城市,宫演示,和其他OSVR -统一的例子不随OSVR libs为Mac。我认为你必须做的是打开宫演示在统一,添加必要的osvr*.so库到插件目录,并为Mac构建。这些osvr*.so文件应该在家里安装OSVR的地方。然而,在RenderManager也为Mac构建之前,您将无法使用OSVR-统一渲染插件。到目前为止,这个插件不适用于OpenGL,但是OSVR在没有RenderManager/的情况下仍然可以工作。这些事情都在待办事项清单上,但Mac支持并不是首要任务。
https://stackoverflow.com/questions/37910163
复制相似问题