Multiple NeoTextures: Part 2

I’ve been playing around with NeoTexture, but, I don’t seem to be able to get it working with two materials in the same application. Whichever material gets loaded first, the second material ends up being exactly the same, even though the .tgr files contain different textures.

This topic seems to be about the same problem, but, no solution was found. Disabling or enabling the cache (suggested in that topic) doesn’t make any difference.

Here’s my code:

    @Override
    public void simpleInitApp() {
        assetManager.registerLoader(com.jme3.material.plugins.NeoTextureMaterialLoader.class, "tgr");
        
        createBox(-1, 0, 0, "Materials/newexample_Bricks.tgr");
        createBox( 1, 0, 0, "Materials/newexample_Wood.tgr");
        
        /** A white, directional light source */ 
        DirectionalLight sun = new DirectionalLight();
        sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalizeLocal());
        sun.setColor(ColorRGBA.White);
        rootNode.addLight(sun);
    }
    
    private void createBox(float x, float y, float z, String name) {
        NeoTextureMaterialKey neoKey = new NeoTextureMaterialKey(name);
        neoKey.setResolution(256);
        Material material = assetManager.loadAsset(neoKey);
        
        Box b = new Box(1, 1, 1);
        Geometry geom = new Geometry("Box", b);
        
        geom.setLocalTranslation(x, y, z);
        geom.setMaterial(material);
        
        rootNode.attachChild(geom);
    }

What I would expect is a brick box on the left, and a wood box on the right. However, I get two brick boxes instead:

However, if I comment out the call to createBox that uses newexample_Bricks.tgr, the newexample_Wood.tgr material seems to work fine:

I’ve tried using a couple of different approaches: using .j3m files that reference the .tgr files, and using the com.mystictri.neotexture.TextureGenerator class, but, the same thing happens.

Is there something I’ve overlooked?