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

Adjust unit conversion for mesh #315

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Adjust unit conversion for mesh #315

merged 2 commits into from
Nov 8, 2023

Conversation

iory
Copy link
Owner

@iory iory commented Nov 8, 2023

Prior to this PR, certain .dae files with scale parameters were not being loaded correctly. With the changes introduced in this PR, .dae files that contain scale parameters can now be loaded accurately, as demonstrated in the following image.

image
THK's seed r8 robot

@iory iory changed the title Update trimesh version requirement and adjust unit conversion Adjust unit conversion for mesh Nov 8, 2023
…terials

- Implemented `get_transparency` function to retrieve the alpha value from mesh material's main_color.
- Updated `_load_meshes` function to check for transparency in meshes and set alpha to 255 for fully transparent PBRMaterials to ensure visibility.
- Imported `PBRMaterial` from `trimesh.visual.material` to support the transparency correction.
@iory iory merged commit 971aef4 into master Nov 8, 2023
6 checks passed
@iory iory deleted the dae branch November 8, 2023 05:02
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.

1 participant