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

Out of resources for glTF model with many external textures #11876

Open
javagl opened this issue Mar 7, 2024 · 0 comments
Open

Out of resources for glTF model with many external textures #11876

javagl opened this issue Mar 7, 2024 · 0 comments

Comments

@javagl
Copy link
Contributor

javagl commented Mar 7, 2024

(Edit: I found this while looking at #11871, and based on a recent comment there, this now turns out to be a duplicate. Either of these issues could be closed as a duplicate of the other, but the description here is more focussed on the reason for the problem, and includes test data)

What happened?

When loading a glTF model that has many external textures in Chrome, then it will suddenly report ERR_INSUFFICIENT_RESOURCES errors from this line in Resource.js.

Note that this is NOT related to the size or number of textures in general. The textures in my test model are intentionally only 32x32 pixels, and when loading it as a single GLB, then it works. This is really related to the number of requests that are going out.

Reproduction steps

  1. Start Cesium server locally
  2. Drop the CesiumManyTextures folder from the attached file into Apps\SampleData\models\
  3. Use Chrome to start the Sandcastle that is stored as _Sandcastle.js in the archive

The archive:

CesiumManyTextures.zip

(It contains the model as .gltf, where the issue can be observed. It also contains the .glb, which works as expected)

It should display the model like this, here rendered with FireFox:

Cesium ManyTextures 001

Instead, it bails out with the ERR_INSUFFICIENT_RESOURCES error at some point (and then, does no longer display any textures at all - which is particularly unfortunate)

Sandcastle example

(Included in the archive above, using the data from the archive)

Environment

Browser: Chrome only. (It works on FireFox - for me, at least)
CesiumJS Version: 1.114
Operating System: Win10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants