-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Use libgltfio_resources_lite.a library to crash in hello-gltf #4143
Comments
How exactly did you use -DGLTFIO_LITE? Did you compile the gltfio library yourself? That flag is not meant to be used to compile your app. |
In fact, I modified the libs/gltfio/CMakeList.text file. And UbershaderLoader.cpp file. Or how can I use it correctly libgltfio_resources_lite.a Thanks. |
This define is needed in more places than just |
With these two lines of code currently compiled, how do I add flags sudo ./build.sh -p desktop -i release |
You need to modify |
@wangruibobobo The problem you are running into is that gltfio-lite does not support clear coat. gltfio-lite only supports a subset of glTF extensions. If you want to support clear coat you will need to use the full version of gltfio. As for your linker error, you probably need to do a clean build for the flag to take effect (but like I just mentioned this won't fix your original issue with clear coat). |
Thank you for your quick reply. I would like to know if there is a material that is not supported by the Lite Library, will crash be caused? Will this material be ignored |
In debug builds, we assert if a sampler is set that does not exist, which can occur when attempting to load a model that uses an extension that is not supported by the ubershader. The intention is to not crash in release builds. |
We will document this much more thoroughly in a subsequent PR. Fixes #4143.
We will document this much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes #4143.
This avoids an assertion in debug builds. We will document this behavior much more thoroughly in a subsequent PR. Fixes google#4143.
Describe the bug
To Reproduce
Because libgltfio_resources.a took up too much space,
-DGLTFIO_LITE=1 was used at compile time, and libgltfio_resources_lite.a was chosen instead
Expected behavior
A crash occurs while hello-gltf is running
Screenshots
![企业微信截图_5e079b48-69f8-4353-92a5-a267a31debbd](https://user-images.githubusercontent.com/34636280/122177355-1ebded80-ceb8-11eb-94c5-916a0ca403cf.png)
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: