hi
I’ve downloaded really cool .max models of space ships. I would really like to load them in Xith3D. I know .max is a closed format, so I’ve loaded the 30day test version of 3DS-Max 8 to export them to a usable format. I tested the .3ds format but some model parts were moved a bit and the textures weren’t loaded steadily. So I tried the .obj format which I can also load in blender. The geometries were fine but the textures haven’t been loaded. I also tried the .ase format but the export was totally broken (or for some other reason not loadable by xith).
What is the best format to use with xith3d? What is the best way to convert a .max model (with textures)? What can I do to make the OBJLoader also load the textures (an .mtl file exists and was found by the loader!)?
Is there a page where I can download free suitable space ship models for non commercial use?
Thanks a lot in advance,
Qudus
Oh, by the way. Here is my coding to load the model:
File modelFile = new File("model.obj"); // there's a model.mtl in the same path (created by 3ds-max obj-export)
Scene model = null;
try
{
model = (new OBJLoader2().load(modelFile.getAbsolutePath()));
}
catch(Exception e)
{
e.printStackTrace();
}
myGroup.addChild(model.getSceneGroup());
AmbientLight light1 = new AmbientLight(true, new Color3f(0.5f, 0.5f, 0.5f));
DirectionalLight light2 = new DirectionalLight(true, new Color3f(Color.GRAY), new Vector3f(0, -1, 0));
myGroup.addChild(light1);
myGroup.addChild(light2);