Skip to content

Use libmmd(Saba)#32

Merged
AiMiDi merged 73 commits intorefactoringfrom
saba_test
Aug 12, 2025
Merged

Use libmmd(Saba)#32
AiMiDi merged 73 commits intorefactoringfrom
saba_test

Conversation

@AiMiDi
Copy link
Copy Markdown
Owner

@AiMiDi AiMiDi commented Aug 12, 2025

No description provided.

AiMiDi and others added 30 commits May 27, 2024 19:48
Updates model loading to utilize shared pointers for improved memory management.

Moves MMD data path error logging to a more appropriate class, enhancing code organization.

Refactors camera motion loading and saving by leveraging the saba library, resulting in more efficient and maintainable code.

Adds a dedicated MMDCamera object type with conversion and keyframe functionalities, improving camera management.
Refactors MMDCamera to use more descriptive member names
(camera_ and protection_tag_). This improves code readability
and maintainability. Also, updates the unique ID string for
the camera object.
Replaces the direct loading of PMX data within the CMTToolsManager with a new approach that utilizes `saba::ReadPMXFile` for initial file reading and `PMXModel::LoadPMX` for processing. This change improves code organization and separation of concerns, making the loading process more modular and maintainable. It also removes the dependency on PMD model loading.
AiMiDi and others added 28 commits July 22, 2025 16:15
Streamlines I/O logging by replacing `Log` variables with `logger` within the scope they are used.

Improves PMX model loading by passing `PMXFile` into the `LoadModelLog::Set` function to retrieve the vertex count and load bones.

Removes unused `vmd_interpolator` files.

Updates dependency `saba`.
Streamlines the creation and updating of MMD manager objects
(Bone, Mesh, Rigid, Joint) within the MMDModelManager.

This includes:
- Passing the MMDModel pointer down to the individual managers.
- Adding CreateManagers function to instantiate manager objects.
- Modifying manager update logic to ensure correct initialization and object assignment.
- Passing MMDPhysicsManager down to Joint and Rigid managers.

These changes improve the overall structure and data flow of the MMD
model management system.
Replaces `#ifndef` header guards with `#pragma once` in multiple header files for improved readability and potential performance benefits.

Updates object and scene hook IDs to use constexpr auto instead of #define.

Refactors object hierarchy management in `MMDJointObject` and `MMDRigidObject` to improve robustness and maintainability.

Addresses potential object lifetime issues related to bone tag management.
@AiMiDi AiMiDi merged commit efffce3 into refactoring Aug 12, 2025
0 of 3 checks passed
@AiMiDi AiMiDi deleted the saba_test branch March 20, 2026 10:41
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

Successfully merging this pull request may close these issues.

2 participants