Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"In place" flag #301

Open
jumpjack opened this issue Aug 17, 2024 · 2 comments
Open

"In place" flag #301

jumpjack opened this issue Aug 17, 2024 · 2 comments

Comments

@jumpjack
Copy link

Can you please add an option to make the character stay in place while moving?

@hjessmith
Copy link
Contributor

Sorry, we don't have the resource to add additional features like this to the codebase. If you want to add that functionality yourself, I'd be happy to review the PR and merge though.

The root position is updated here in the code:

self.rig.root_joint.set_position(root_position)

You'd need to:

  1. Add logic to ignore if the flag is set,
  2. Add the flag as a parameter in the Retarget config
  3. Modify config.py to parse and validate the flag
  4. Update the Retarget ReadMe to properly describe the flag

Alternatively, you can just edit the BVH files so there's no root motion within them. That would involve replacing the first 3 values in the motion frame (at the bottom of the BVH) with zeros.

@jumpjack
Copy link
Author

I don't know python, I am using the web version of your tool, and I know javascript,; where should I look for which BVH file is loaded?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants