Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# usdBVHAnim Changelog

## Version 1.1.1

* Verified on USD 25.11
* Support exponent (e.g. `1e-4`) in double values in BVH
* Fix animated translation offsets

## Version 1.1.0

* Added a file format argument to scale BVH animation data at import time. This can be authored by
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.28)
include(extern/prefabricated-cmake/main.cmake)
project(
"usdBVHAnim"
VERSION "1.1.0"
VERSION "1.1.1"
)
set(PROJECT_AUTHOR "James Bird")
set(VALGRIND_ARGS --suppressions=${PROJECT_SOURCE_DIR}/valgrind.supp)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# usdBVHAnim

[![CMake on multiple platforms](https://github.com/jbrd/usdBVHAnim/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/jbrd/usdBVHAnim/actions/workflows/cmake-multi-platform.yml)
| **Version: 1.1.0**
| **Version: 1.1.1**
(**[Changelog](CHANGELOG.md)**)
| **[Documentation](https://jbrd.github.io/usdBVHAnim/)**

Expand Down Expand Up @@ -59,9 +59,9 @@ Ubisoft LAFAN1 dataset to its sample model, visualised in usdview.

First, make sure you are building a version of the plug-in that is compatible with the version of USD you are targetting:

| Plugin Version | USD 24.11 | USD 25.02 | USD 25.05 | USD 25.08 |
|----------------|-----------|-----------|-----------|-----------|
| 1.1.* | ✅ | ✅ | ✅ | ✅ |
| Plugin Version | USD 24.11 | USD 25.02 | USD 25.05 | USD 25.08 | USD 25.11 |
|----------------|-----------|-----------|-----------|-----------|-----------|
| 1.1.* | ✅ | ✅ | ✅ | ✅ | ✅ |
| 1.0.* | ✅ | ✅ | ✅ | |


Expand Down
5 changes: 4 additions & 1 deletion docs/sphinx/source/building_and_installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@ First, make sure you are building a version of the plug-in that is compatible wi
the version of USD you are targetting:

.. list-table::
:widths: 25 25 25 25 25
:widths: 25 25 25 25 25 25
:header-rows: 1

* - Plugin Version
- USD 24.11
- USD 25.02
- USD 25.05
- USD 25.08
- USD 25.11
* - 1.1.*
- ✅
- ✅
- ✅
- ✅
- ✅
* - 1.0.*
- ✅
- ✅
- ✅
-
-


Toolchain Requirements
Expand Down
8 changes: 4 additions & 4 deletions src/usdBVHAnimPlugin/Private/ParseBVH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

static const char* const c_WS = " \t\r\n";
static const char* const c_AlphaNumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
static const char* const c_Double = "-0123456789.";
static const char* const c_Double = "+-0123456789.eE";

static void MultiplyBVHQuat(double a[4], double const b[4])
{
Expand Down Expand Up @@ -179,13 +179,13 @@ Parse ParseMotion(Parse cursor, BVHDocument& result)
BVHChannel channel = channels & BVHChannel::BitMask;
switch (channel) {
case BVHChannel::XPosition:
transform.m_Translation[0] += value;
transform.m_Translation[0] = value;
break;
case BVHChannel::YPosition:
transform.m_Translation[1] += value;
transform.m_Translation[1] = value;
break;
case BVHChannel::ZPosition:
transform.m_Translation[2] += value;
transform.m_Translation[2] = value;
break;
case BVHChannel::XRotation: {
double quat[4] = { std::sin(value * 0.5 * c_DegToRad), 0.0f, 0.0f, std::cos(value * 0.5 * c_DegToRad) };
Expand Down