www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: denzel on March 22, 2012, 08:01:08 am

Title: Can't deserialize object
Post by: denzel on March 22, 2012, 08:01:08 am
The error in logcat when i load a serialize file from an obj model
 
Code: [Select]
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
Code: [Select]
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
Code: [Select]
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]
Title: Re: Can't deserialize object
Post by: EgonOlsen on March 22, 2012, 03:23:29 pm
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 (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: Can't deserialize object
Post by: denzel on March 23, 2012, 03:21:49 am
 :)
alright,im going to the last beta