-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support loading glb with compressed jpeg textures #545
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## gz-common5 #545 +/- ##
==============================================
+ Coverage 82.86% 83.65% +0.79%
==============================================
Files 75 90 +15
Lines 9558 10272 +714
==============================================
+ Hits 7920 8593 +673
- Misses 1638 1679 +41
|
graphics/src/AssimpLoader_TEST.cc
Outdated
EXPECT_EQ(math::Color(0.4f, 0.4f, 0.4f, 1.0f), mat->Ambient()); | ||
EXPECT_EQ(math::Color(1.0f, 1.0f, 1.0f, 1.0f), mat->Diffuse()); | ||
EXPECT_EQ(math::Color(0.0f, 0.0f, 0.0f, 1.0f), mat->Specular()); | ||
EXPECT_EQ(math::Color(0.0f, 0.0f, 0.0f, 1.0f), mat->Specular()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a duplicate call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed duplicate call, 76be6e6
Signed-off-by: Ian Chen <ichen@openrobotics.org>
🎉 New feature
Summary
Extended the AssimpLoader to support loading glb files with embedded compressed jpeg textures.
Previously if you tried to load one with jpeg texture, you would get a confusing error message about invalid texture settings but no meshes would be loaded.
To Test
Added a test to
AssimpLoader_TEST
that verifies a simple box glb mesh with jpeg can be loaded.Tested with this DamagedHelmet glb mesh:
Note: there are some discrepancies between the rendering in gz and the provided screenshot - that needs to be investigated later.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.