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

glTF importer using cgltf library #835

Merged
merged 2 commits into from
Feb 26, 2024
Merged

glTF importer using cgltf library #835

merged 2 commits into from
Feb 26, 2024

Conversation

ksuprynowicz
Copy link
Member

This fixes issue with ReadyPlayerMe avatars being broken and a lot of other glTF-related issues.

@ksuprynowicz ksuprynowicz added bug Something isn't working needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested labels Feb 25, 2024
@JulianGro JulianGro linked an issue Feb 26, 2024 that may be closed by this pull request
@ksuprynowicz ksuprynowicz added CR approved This pull request has been successfully code reviewed QA approved This pull request has been successfully tested and removed needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested labels Feb 26, 2024
@ksuprynowicz ksuprynowicz merged commit c6e39bd into master Feb 26, 2024
6 checks passed
@ksuprynowicz ksuprynowicz deleted the feature/cgltf branch February 26, 2024 20:47
Copy link
Member

@HifiExperiments HifiExperiments left a comment

Choose a reason for hiding this comment

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

nice 😄

@@ -20,5 +20,6 @@ hfm::Model::Pointer ModelLoader::load(const hifi::ByteArray& data, const hifi::V
if (!serializer) {
return hfm::Model::Pointer();
}
qDebug() << "ModelLoader::load: " << url;
Copy link
Member

Choose a reason for hiding this comment

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

near the end, hifi tried to remove all instances of directly printing model URLs from the logs as a basic security measure, so I would vote for removing this or just commenting it out

Copy link
Member Author

@ksuprynowicz ksuprynowicz Feb 26, 2024

Choose a reason for hiding this comment

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

Thanks! That was indeed intended to be removed and I forgot. What do you think about urls in error messages? Maybe for broken models it would make sense to log url?

Copy link
Member

Choose a reason for hiding this comment

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

yeah I think in error messages it's helpful, I believe hifi left some of those around too

hfmModel.loadErrorCount++;
continue;
return false;
Copy link
Member

Choose a reason for hiding this comment

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

we used to continue here but now we completely bail. is there a reason for that? there are several other places like this above and below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CR approved This pull request has been successfully code reviewed QA approved This pull request has been successfully tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

broken (?) glTF model crashes Interface
3 participants