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

Lump legs and arm together in .bioMod #252

Open
MahsaP opened this issue Jan 14, 2022 · 3 comments
Open

Lump legs and arm together in .bioMod #252

MahsaP opened this issue Jan 14, 2022 · 3 comments

Comments

@MahsaP
Copy link

MahsaP commented Jan 14, 2022

In a human model how can I lump together legs and also arms? I can do that simply in a .lua model by adding left and right side in the visual tag, and redefine the mass and inertia matrix. Thanks!

@pariterre
Copy link
Member

Hi @MahsaP
Do you mean automatically symmetrize the model?

If so, you basically have to do it by hand. I do not have an automatic symmetry feature implemented. But it would be a nice idea though... Not really hard to implement either

@MahsaP
Copy link
Author

MahsaP commented Jan 14, 2022

Hi @pariterre. Doing that automatically would be nice, but I am trying to understand how to do that by hand. Would you please give me an example how I can do that? for example for two thighs. Is it like adding them in one segment and having both mesh files there? The markers have to be define separately anyway.

@pariterre
Copy link
Member

First you have to define a new RT. Let suppose you want to symmetrize against the XY plane (usually because Y is vertical). Then you define the new RT as : -Rx -Ry Rz xyz Tx Ty -Tz
If you don't have RT as euler angles, you just have to convert them in Euler angles then perform the rotation (and convert back to matrix if you want)

For everything using only translation, -Tz should be applied.
For the obj, you have to read them and convert them the same way

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