jMonkeyEngine / jMonkeyEngine/jmonkeyengine
Android: Textures no longer loading in 3.10.0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 14
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing AndroidBufferImageLoader registration and the General.cfg references to StbImageLoader, using the reported upgrade path to reproduce the missing-loader warnings. Check the Android asset-loading setup and verify that custom PNG and JPG textures load without the application-level workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 57/100