Hi,
I have download a 3DS file from the net and I try to load it into AE.
I have use the DeSerializer from PC. Here is my code:
Config.oldStyle3DSLoader = true;
Object3D[] obj = Loader.load3DS(args[0], 1f);
System.out.println("Object loaded!");
DeSerializer ds = new DeSerializer();
for(int i = 0; i < obj.length; i++) {
System.out.println("serializing object: " + i + "/" + obj.length);
obj[i].build();
ds.serialize(obj[i], new FileOutputStream("out"+i+".ser"), true);
}
When I run the above program, I got this in console (my 3DS file is called 23moon.3DS)
Loading file 23moon.3DS
File 23moon.3DS loaded...243558 bytes
Processing new material Material #1!
Texture named MOONMAP.JPG added to TextureManager!
Processing object from 3DS-file: Sphere01
Object 'Omni04_jPCT-2' created using 9800 polygons and 4902 vertices.
Object loaded!
serializing object: 0/1
Now I have out0.ser which I can load into AE, but I am not sure how I can apply texture to it.
Please advice. Thx.