Skip to content

Conversation

akleshchev
Copy link
Contributor

@akleshchev akleshchev commented Jun 10, 2025

A cheap hack to detect when skeleton is in a wrong rotation and adjust it.

I'm unwiling to dump more time into it. It works on models I have access to and I can return to it once I understand what's going on and what I'm doing.

// Only supports xy 90 degree rotation
// Todo: figure out how to find skeleton's orientation Correctly
// when model is rotated at a triangle level
constexpr std::string right_shoulder_str = "mShoulderRight";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCC will probably be angry about this because GCC...

For now, it's better to use constexpr char right_shoulder_str[] = "mShoulderRight"; instead.

@akleshchev akleshchev force-pushed the andreyk/viewer_4191 branch from 4dff1ce to 19b106c Compare June 10, 2025 16:30
@akleshchev akleshchev merged commit 4bbd631 into project/gltf_mesh_import Jun 10, 2025
6 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_4191 branch June 10, 2025 16:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants