How would you make a ....

i want to make a java3d multilayer RPG were each user is represented by a Shape3d all users see the world[u] exactly[u/] the same and the world changes all the time
how would you do this in SGS i just can`t figure it out ??? ??? :’(

Hi

If all the players are on their own machines, what you are asking is only possible using a few techniques, like lockstep. If you want a real time universe then you are asking for the imposible. It has to be approximation. This is due to the fact that the internet takes time to transfer information, it’s in the magnitude of 100’s of milliseconds, but it’s noticable between 2 locations, and amplified when there is also a server.

Thems the breaks.

Endolf

ok so all most real time then but still how do you do it

This post sums it up. The server has a data model. Each client has a copy of the data model, and you use the network channels in SGS to send messages that synchronise the clients with the server. When the client moves, a message is sent to the server and the server data model is updated. Next time the server sends the synchronise message, all clients get that new player location.

It’s not quite that simple, but that would get you something. There are huge threads around these boards on refining the general case to cover the latency/lag that the network introduces.

mostly you will need to find the best way to hide the lag yourself as every type of multiplayer network game requires slightly different network characteristics.

Endolf