Main Menu
Menu

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.

Show posts Menu

Topics - Vi_O

#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)



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 :



                Object3D objLoader = Loader.loadSerializedObject(new ByteArrayInputStream(serializedObject));
                _world.addObject(objLoader);



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

Thanks by advance for the help.