Author Topic: Can't deserialize object  (Read 1215 times)

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Can't deserialize object
« 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]
« Last Edit: March 22, 2012, 08:03:35 am by denzel »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Can't deserialize object
« Reply #1 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

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Re: Can't deserialize object
« Reply #2 on: March 23, 2012, 03:21:49 am »
 :)
alright,im going to the last beta