Thanks for your help, in case any one else comes up against this problem, here is the code I am using:
planet1Texture = new Texture(assetManager.open("PlanetTexture1.png"));
TextureManager.getInstance().addTexture("Planet", planet1Texture);
.....
InputStream inputStrm1 = null;
try {
inputStrm1 = assetManager.open("Planet.3ds");
}catch
.....
planet1 = loadModel(inputStrm1, 5.0f);
planet1.setTexture("Planet");
planet1.build();
planet1.strip();
world.addObject(planet1);
.....
public Object3D loadModel(InputStream filename, float scale) {
Object3D[] model = Loader.load3DS(filename, scale);
Object3D o3d = new Object3D(0);
Object3D temp = null;
for (int i = 0; i < model.length; i++) {
temp = model;
temp.setCenter(SimpleVector.ORIGIN);
temp.rotateX((float)( -.5*Math.PI));
temp.rotateMesh();
temp.setRotationMatrix(new Matrix());
o3d = Object3D.mergeObjects(o3d, temp);
o3d.build();
}
return o3d;
}
The result is attached.
[attachment deleted by admin]
planet1Texture = new Texture(assetManager.open("PlanetTexture1.png"));
TextureManager.getInstance().addTexture("Planet", planet1Texture);
.....
InputStream inputStrm1 = null;
try {
inputStrm1 = assetManager.open("Planet.3ds");
}catch
.....
planet1 = loadModel(inputStrm1, 5.0f);
planet1.setTexture("Planet");
planet1.build();
planet1.strip();
world.addObject(planet1);
.....
public Object3D loadModel(InputStream filename, float scale) {
Object3D[] model = Loader.load3DS(filename, scale);
Object3D o3d = new Object3D(0);
Object3D temp = null;
for (int i = 0; i < model.length; i++) {
temp = model;
temp.setCenter(SimpleVector.ORIGIN);
temp.rotateX((float)( -.5*Math.PI));
temp.rotateMesh();
temp.setRotationMatrix(new Matrix());
o3d = Object3D.mergeObjects(o3d, temp);
o3d.build();
}
return o3d;
}
The result is attached.
[attachment deleted by admin]