-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduces GZ_MESH_FORCE_ASSIMP flag #403
Introduces GZ_MESH_FORCE_ASSIMP flag #403
Conversation
Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
These flags utilized to use assimp for mesh loading process. If useAssimp flag is true then STL, GLTF and FBX meshes are loaded using assimp library, otherwise old loaders will be used. forceAssimp flags used to load all supported mesh formats using assimp. Signed-off-by: Onur Berk Tore <[email protected]>
@chapulina, |
Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
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.
Thanks! Could you document the new environment variables? Maybe on the MeshManager
's header?
MeshManager only uses forceAssimp flag. Signed-off-by: Onur Berk Tore <[email protected]>
Signed-off-by: Onur Berk Tore <[email protected]>
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.
Looks great, thanks! Since we're not checking extensions when forcing assimp, it would be nice to add a test where GZ_MESH_FORCE_ASSIMP=true
and we try to load a mesh format that isn't supported by assimp (i.e. mesh.invalid
), to make sure that doesn't cause a crash.
Signed-off-by: Onur Berk Tore <[email protected]>
27b8a2b
to
de3015c
Compare
Codecov Report
@@ Coverage Diff @@
## luca/assimp_sandbox #403 +/- ##
=======================================================
- Coverage 80.35% 80.34% -0.01%
=======================================================
Files 85 85
Lines 9933 9944 +11
=======================================================
+ Hits 7982 7990 +8
- Misses 1951 1954 +3
Continue to review full report at Codecov.
|
Hi @chapulina, On the other hand, I am very open to ideas about possible test cases, so if you have anything in mind, I would love to implement it. |
These flags utilized to use assimp for mesh loading process. If useAssimp flag is true then STL, GLTF and FBX meshes are loaded using assimp library, otherwise old loaders will be used. forceAssimp flags used to load all supported mesh formats using assimp.