Skip to content

DatabasePager sometimes loads models with wrong textures #1704

@ArepMM

Description

@ArepMM

If we added models to scene via PagedLOD, it may be showed with wrong or corrupted textures. Then after few seconds viewer freeze and crash.
I found that vsgExamples/vsgdynamicload does the same things as databasepager - load, compile models and then add them to scene. And curious that it works fine always, but databasepager sometimes fail. I made a minimal example reproducing the problem. There are some results on glTF-Sample-Assets:

Image 1. /Models/ABeautifulGame/glTF/ABeautifulGame.gltf - fail Image 2. /Models/Avocado/glTF/Avocado.gltf - success Image 3. But these models together - fails, avocado somehow got texture from beautiful game Image 4. Scene with many pagedLODs works fine, and I think thats why we rarely see the problem in our real applications, but... Image 5. Sometimes we got bugreports like this, some models with textures from another models, then viewer freeze and crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions