This is probably very obvious but any help would be appreciated:
when using TextureLoader i have to specify the exact path that contains the image i’m trying to load,
otherwise i just get ‘Error loading image back.jpg’
This will be a pain when i have to upload onto a server and change all the paths.
I’ve looked at lots of forums and tryed many ways of using the textureloader to no avail.
Appearance wallAppearance(){
String filename = (“c:/new folder/back.jpg”);
Appearance appearance = new Appearance();
TextureLoader myLoader = new TextureLoader(filename, this);
Texture brick = myLoader.getTexture();
appearance.setTexture(brick);
return appearance;
}
my image is in the same folder as my code and i have seen lots of examples where just the filename
is specified, is there something i am missing?