Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuki-koyama/bvh11

A tiny C++11 library for reading BVH motion capture data
https://github.com/yuki-koyama/bvh11

bvh cpp11 motion-capture

Last synced: about 2 months ago
JSON representation

A tiny C++11 library for reading BVH motion capture data

Awesome Lists containing this project

README

        

# bvh11

[![macOS](https://github.com/yuki-koyama/bvh11/actions/workflows/macos.yml/badge.svg)](https://github.com/yuki-koyama/bvh11/actions/workflows/macos.yml)
[![Ubuntu](https://github.com/yuki-koyama/bvh11/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/yuki-koyama/bvh11/actions/workflows/ubuntu.yml)
![GitHub](https://img.shields.io/github/license/yuki-koyama/bvh11)

A tiny C++11 library for reading (and writing) BVH motion capture data.

![](./docs/sample.gif)

## Dependencies

- C++11 standard library
- Eigen 3 (`brew install eigen`)

### Additional Dependencies for Demos (Optional)

- three-dim-util
- Eigen 3 (`brew install eigen`)
- Qt 5 (`brew install qt`)

## Usage

### Build and Install

```bash
git clone https://github.com/yuki-koyama/bvh11.git --recursive
mkdir build
cd build
cmake ../bvh11
make
make install
```

### Import (and Export) BVH Data

```cpp
#include

int main()
{
// Import data
auto bvh_object = bvh11::BvhObject("/path/to/bvh/data.bvh");

// Do something (e.g., render the motion data, apply some processing, etc.)

// Export data (if necessary)
bvh_object.WriteBvhFile("/path/to/bvh/new_data.bvh");

return 0;
}
```

## License

MIT License.

## Contributing

Contributions are welcome.