Problem in loading my own assets

This problem frustrates me for a long time.



Like, when I tried to load “FullskiesBlueClear03.dds”,



I put it in the directory /assets/Textures/Sky/Bright/FullskiesBlueClear03.dds.

then TextureKey key = new TextureKey(“Textures/Sky/Bright/FullskiesBlueClear03.dds”, true);

IT WORKS. (It is from the tests/examples provided along with JME)



I put it in the directory /assets/Textures/FullskiesBlueClear03.dds.

then TextureKey key = new TextureKey(“Textures/FullskiesBlueClear03.dds”, true);

IT FAILS



I put it in the directory /assets/Textures/Sky/FullskiesBlueClear03.dds.

then TextureKey key = new TextureKey(“Textures/Sky/FullskiesBlueClear03.dds”, true);

IT FAILS



I always get “Cannot locate resource: Textures/Sky/FullskiesBlueClear03.dds” for the following 2.



I have no idea why. It seesm I have to register an asset with a certain path, so that I can use it. But how can i register for my own pictures/textures?



Thanks,

Mystere

No you dont have to register multiple paths for each model, one path to load models from is enough. I guess this must be some typo or you copied the file to the wrong folder… If it can load “Textures/Sky/Bright/FullskiesBlueClear03.dds” it should also be able to load “Textures/Sky/FullskiesBlueClear03.dds”.