Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Vi_O

Pages: [1]
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)

Code: [Select]

Object3D obj = Primitives.getCube(1);
_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));

Can't see what I've done wrong...

Thanks by advance for the help.

Pages: [1]