1
Support / Serialization problems -> nullPointerException in Object3D.transformVertices
« on: December 14, 2011, 04:35:22 pm »
Hello there,
I've been trying for a while to send simple 3D objects from a server to an android device using the DeSerializer class on the server and the Loader one on the client. The object is loaded on client-side but it does give me an NullPointerException for Object3D.transformVertices when trying to rendering the world and I don't know how to fix it...
Any suggestions ?
Here's the source code server-side : (exemple with a cube)
Then it goes all the way to the client...
Client-side :
Can't see what I've done wrong...
Thanks by advance for the help.
I've been trying for a while to send simple 3D objects from a server to an android device using the DeSerializer class on the server and the Loader one on the client. The object is loaded on client-side but it does give me an NullPointerException for Object3D.transformVertices when trying to rendering the world and I don't know how to fix it...
Any suggestions ?
Here's the source code server-side : (exemple with a cube)
Code: [Select]
Object3D obj = Primitives.getCube(1);
obj.setTexture("rouge");
obj.build();
_deSerializer.serialize(obj, os, true);
byte[] serializedObject = os.toByteArray();
return serializedObject;
Then it goes all the way to the client...
Client-side :
Code: [Select]
Object3D objLoader = Loader.loadSerializedObject(new ByteArrayInputStream(serializedObject));
_world.addObject(objLoader);
Can't see what I've done wrong...
Thanks by advance for the help.