Hi,
I was hoping to implement an applet-based application that streams polygons over the network. I have the networking code working, and manage to stream float arrays over to the client applet, which are then turned into Object3Ds and built.
The problem, of course, is the limited memory in the applet. I find I can only support roughly 200-300 Object3Ds on the applet (with an average of 15 vertices per Object).
I was hoping to resolve this problem by using a VertexController, so that I just create a fixed number of Object3Ds when I start the applet, and then whenever the camera moves, I re-use older Object3Ds that are no longer visible, transforming their vertices with the Vertex Controller (for now, I'm not worrying about textures, just dealing with wireframes). This way, I don't have to create new Object3Ds or meshes.
At last, here is my question: Using the GeneralVertexController, am I allowed to change the number of vertices in a Mesh (i.e. replace the whole SimpleVector array)? Or am I only allowed to change the vertex coordinates? Thanks! And any other suggestions would be appreciated. The JPCT framework is great, very fast and easy to use.