Hi Java Guys!!!
I´m just learning about MMOG technology and I have some questions about rendering the same java virtual universe among different clients through the net. Let me explain you...
I wanted two Java JFrames pointing to the same virtual universe. I´ve solved it by manually creating two (or more) Viewing Superstructures branches and attach´em to the same Locale object belonging to just one VirtualUniverse instance, then I put two (or more) different Canva3D objects in the frames that I wanted at the begining and DONE!!!
But my problem goes beyond than sharing THE SAME Virtual Universe in the SAME machine. Could you guess what is it??? ... ha ha ... I know you can!!!
Exactly!!! Would not be even more interesting be able to share that SAME Universe between (or among) different computers by using a network connection???
I tried by sending the Canvas3D object through the net (java.io.Serialization) and receive it at the other side in order to be used in a JFrame located "ailleurs", but the operation was not succesful.
I´ve found some interesting ideas about the use of RMI, but I cannot conceptualize how exactly would work.
- I know how to create a simple cube.
- I know how to stablish communication by using RMI between two computers.
So... how to make clients able to SEE that universe??
... so, what to do?, could be better send the universe or some Viewing superstructures (writeObject(), readObject())??, How to make two or more computers render THE SAME VIRTUAL UNIVERSE at real time?, so many answers?, and if so, what would be the best one?
I read some documentation, nevertheless I want to use a logic in which the server HOSTS the Virtual Universe COMPLETELY, and for each client trying to acquire it, the server sends a kind of "WINDOW" that points to that same universe; I mean, dinamically LOAD 3D objects into the client in order to avoid memory leaks in the client side when treating with complex and big Virtual Universes.
I would like to receive your comments and suggestions to develop my applications.
Thanks for your time and attention.