17
« on: August 08, 2011, 11:12:23 am »
i have loaded to try your file hose_poser.obj (convert in 3ds), and i see only the "hip:2 hip" in the emulator android. (the hip:2 hip is white and the rest is blue)
why? i write this in the application java to create the ser
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.threed.jpct.DeSerializer;
import com.threed.jpct.Loader;
import com.threed.jpct.Object3D;
import com.threed.jpct.Texture;
import com.threed.jpct.TextureManager;
//import java.awt.Color;
public class Main {
public static void main(String[ ] args) throws FileNotFoundException {
Object3D hose_poser = null;
DeSerializer de;
hose_poser = Loader.load3DS("C:/workspace/file/res/raw/hose_poser3ds",20)[0];
hose_poser.build();
de = new DeSerializer();
de.serialize(hose_poser, new FileOutputStream("C:/workspace/file/res/raw/serhose_poser.ser"), true);
}
}
May be it 's in my application android??
should i write in my code android something in rapport with the loading of all the object in ser, because i have writen only this
Hoseposer = Loader.loadSerializedObject(getResources().openRawResource(R.raw.serhose_poser));