Can I still load images from HTTP paths?

I'm trying to slap together a demo and I want to show an image loaded from HTTP. I seem to remember it working in the past … do I need to use a HttpZipFile now?


When I do this …

         final Texture texture = assetManager.loadTexture(
         final Geometry cube = new Geometry("My Textured Box", new Box(new Vector3f(-3f, 1.1f, 0f), 1f, 1f, 1f));
         final Material material = new Material(assetManager,"Common/MatDefs/Misc/SimpleTextured.j3md");
         material.setTexture("m_ColorMap", texture);

...  in HelloMaterial ( I get ...

WARNING DesktopAssetManager 09:17:47 Cannot locate resource:

... which makes me think that the feature has been removed from JME3

Try with a UrlLocator.

assetManager.registerLocator("http://", UrlLocator.class.getName());

then the asset manager should be able to get the resource.

Perfect - that did it, thanks a lot