MIT License

项目介绍

ebadier/ViveTrackers 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 48 个 Star、11 次 Fork。

仓库全名
ebadier/ViveTrackers
开源许可证
MIT License
Star 数
48
Fork 数
11
未关闭 Issue
5

README 摘要

Use HTC Vive Tracker devices in Unity3D with the following benefits Directly use OpenVR API for best performance Current features include update of positions, rotations, and Pogo-Pins buttons Small library, easy to integrate in any projects A simulator, to develop without having a Vive tracking system connected A complete test scene to understand the use of the library Some documentation to setup Unity3D, SteamVR…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ViveTrackers 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 48 个 Star。

ViveTrackers 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ViveTrackers 的源码?

可以直接克隆仓库:git clone https://github.com/ebadier/ViveTrackers.git,默认分支为 master;安装与运行步骤见仓库 README。

ViveTrackers 最近还在维护吗?

仓库最近一次更新为 2025年4月18日,当前有 5 个未关闭 Issue;Star 数为 48,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A simple library to use HTC Vive Tracker devices in Unity

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
74
价值分
32
活跃状态
活跃

语言占比

C#

README

alt text

Use HTC Vive Tracker devices in Unity3D with the following benefits

  • Directly use OpenVR API for best performance
  • Current features include update of positions, rotations, and Pogo-Pins buttons
  • Small library, easy to integrate in any projects
  • A simulator, to develop without having a Vive tracking system connected
  • A complete test scene to understand the use of the library
  • Some documentation to setup Unity3D, SteamVR (with & without an HMD connected), and Windows to get the best tracking quality from your Vive Trackers

Getting Started

1. Open SteamVR, configure your tracking space, connect your Vive Trackers, and leave SteamVR running in the background.
2. Open the ViveTrackersTest scene in Unity and press Play.
3. Hotkeys used to control the application:
  • F1 : show/hide local reference frames of ViveTrackers.
  • F5 : refresh the list of currently connected ViveTrackers.
  • F8 : calibrate the ViveTrackers (make their local reference frames aligned with the Origin reference frame).
  • F6 : save the last calibration.
  • F7 : load the last calibration.
4. Understanding the code:
  • The update of all ViveTrackers (position, rotation, and optionally buttons) happens at the first line in ViveTrackersTest.Update(), see ViveTrackersManager.UpdateTrackers() for more details.
  • ViveTrackersManager contains a list of all connected ViveTrackers.
  • Optionally, ViveTrackersManager can create only a restricted set of ViveTrackers declared in the file ViveTrackers.csv (see documentation/“Keep Vive Trackers identification consistent during runtime”).
  • To log your ViveTrackers serial numbers in the console, ensure ViveTrackersManager.logTrackersDetection is enabled in Unity editor.
  • You can access the last position/rotation of ViveTrackers using their transform.localPosition/localRotation.
  • You can also register to some actions to know if the pogo-pins corresponding to Grip/Trigger/TouchPad/Menu buttons are pressed or released.

System requirements

Unity 2017.4.35f1 and newer versions

评论

暂无评论