Skip to content

Android: Textures no longer loading in 3.10.0 #2930

Description

@terranprog

Issue:
After upgrading android app from 3.9.0-stable to 3.10.0-beta2: custom textures (in png and jpg format) did not load.

AI told me this:

General.cfg now points png/jpg loading at StbImageLoader, which lives in
jme3-plugins (not a dependency of jme3-android, and not Android-viable
anyway), so no loader ends up registered for those extensions. Registered the
existing AndroidBufferImageLoader for png/jpg/jpeg/bmp/gif manually in
simpleInitApp().

The workaround was to call
assetManager.registerLoader(AndroidBufferImageLoader.class, "png", "jpg", "jpeg", "bmp", "gif");

in simpleInitApp()

In the log I note a lot of "Cannot find loader" warnings including this one:

WARNING Cannot find loader com.jme3.texture.plugins.StbImageLoader

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues that affect the Wiki, Javadoc or any other form of documentation

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions