Can't deserialize object

Started by denzel, March 22, 2012, 08:01:08 AM

Previous topic - Next topic

denzel

The error in logcat when i load a serialize file from an obj model
03-22 14:53:05.983: E/AndroidRuntime(11550): java.lang.RuntimeException: [ 1332399185965 ] - ERROR: Can't deserialize object: [ 1332399185963 ] - ERROR: A texture with the name '__obj-Color:255/255/255' has been declared twice!
03-22 14:53:05.983: E/AndroidRuntime(11550): at com.threed.jpct.Logger.log(Logger.java:189)
03-22 14:53:05.983: E/AndroidRuntime(11550): at com.threed.jpct.DeSerializer.deserialize(DeSerializer.java:210)
03-22 14:53:05.983: E/AndroidRuntime(11550): at com.threed.jpct.Loader.loadSerializedObject(Loader.java:97)
03-22 14:53:05.983: E/AndroidRuntime(11550): at com.tt.lx.ModelRenderer.onSurfaceCreated(ModelRenderer.java:139)
03-22 14:53:05.983: E/AndroidRuntime(11550): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1317)
03-22 14:53:05.983: E/AndroidRuntime(11550): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)


and when i load a serialize file from the same model but 3ds,it is all same except
ERROR: A texture with the name '__3ds-Color:255/255/255' has been declared twice!

And i didnot load any texture yet.What's wrong?

The code
Object3D[] models = Loader.loadSerializedObjectArray(master
.getResources().openRawResource(R.raw.room));


When i use 3ds without serialize, it' all right.
The model in 3ds:

[attachment deleted by admin]

EgonOlsen

That's a known bug in the latest official version. It has been fixed in the last beta: http://jpct.de/download/beta/jpct_ae.jar

denzel

 :)
alright,im going to the last beta