<html>
    <head>
    </head>
    <body style="margin: 0pt; padding: 0pt;">
        Hi Sven-Erik<br /><br />Don't know much about simulation engines, but maybe can contribute "my two cent".<br /><br />>  <span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">The intention are to use the same script for  all transfere of states over the network or only local in the  mashine.</font></span> <span class="yiv1888844435013381811-02092010"></span><br /><br />If you use TCP/IP for transmission, and if you assume an IP stack always being present, you can delegate the "local/remote" decision to the IP stack. Use "localhost"/127.0.0.1 as destination address and the "short cut" will be done by the IP stack (saving development effort on the cost of some additional computational overhead, keeping scripts simple).<br />I had a similar problem in the "SrrTrains" project, where I rely on the "EventStreamSensor" / "NetworkSensor" and I aimed to support single-player-mode without(!) collaboration server. Unfortunately, "EventStreamSensor"/"NetworkSensor" don't support "single-player-mode without collaboration server", but only "single-player-mode with collaboration server" (which is nothing else than a multi-player session, that hosts only one user accidentally). I had to implement some if()s to bypass "EventStreamSensor"/"NetworkSensor" in case of single-player-mode.<br /><br />> <span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">Primarily I'v taken the example to have a MU 3D space with many 3D  clients and one or more servers. </font></span>
        <div><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">Secondly one computer hosting both a 3D Browser and a  simulation/animation engine.</font></span></div>
        <span class="yiv1888844435013381811-02092010"></span><br />So you have an m:n relationship between clients and servers. I assume, that servers will not be added or removed frequently, unless you add or remove models dynamically.<br /><br />Starting up and terminating clients will change the communication relations on the other hand, you will have to update all servers to tell them, to which addresses the states will have to be distributed.<br /><br />What about having a dispatcher in between, such that you have:<br />     m clients     ---     1 dispatcher     ---     n servers<br /><br />Kind regards<br />Christoph<br /><blockquote type="cite">
        <p>-------- Original-Nachricht --------<br />Datum: Thu, 2 Sep 2010 04:53:26 -0700 (PDT)<br />Von: Tom Sparks <tom_a_sparks@yahoo.com.au><br />An: 'Christoph Valentin' <christoph.valentin@gmx.at>, Sven-Erik Tiberg <Sven-Erik.Tiberg@ltu.se><br />CC: "x3d-public@web3d.org" <x3d-public@web3d.org><br />Betreff: Re: [X3D-Public] XMPP or not XMPP<br /><br /></p>
        <table cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <td valign="top" style="font: inherit;">--- On <strong>Thu, 2/9/10, Sven-Erik Tiberg <em><Sven-Erik.Tiberg@ltu.se></em></strong> wrote:<br /><blockquote style="border-left: 2px solid; margin-left: 5px; padding-left: 5px;"> <br />From: Sven-Erik Tiberg <Sven-Erik.Tiberg@ltu.se><br />Subject: Re: [X3D-Public] XMPP or not XMPP<br />To: "'Christoph Valentin'" <christoph.valentin@gmx.at><br />Cc: "x3d-public@web3d.org" <x3d-public@web3d.org><br />Received: Thursday, 2 September, 2010, 9:28 PM<br /><br />
                    <div id="yiv1888844435">
                    <title></title>
                    <style type="text/css"></style> <style type="text/css"></style>
                    <div align="left" dir="ltr"><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">Hi Christioph</font></span></div>
                    <div align="left" dir="ltr"> <span class="yiv1888844435013381811-02092010"></span> </div>
                    <div align="left" dir="ltr"><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">The intention are to use the same script for  all transfere of states over the network or only local in the  mashine.</font></span></div>
                    <div align="left" dir="ltr"><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">If local the script would transfere states between a  X3Dbrowser and a simulation/animation engine on the same  computer.</font></span></div>
                    <div align="left" dir="ltr"><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">If MU the script will transfer states over the  network to either another or many X3Dbrowser or / and one or more  simulation/animation engine on one or many servers.</font></span></div>
                    <div> </div>
                    <div><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">Primarily I'v taken the example to have a MU 3D space with many 3D  clients and one or more servers. </font></span></div>
                    <div><span class="yiv1888844435013381811-02092010"><font size="2" face="Arial" color="#0000ff">Secondly one computer hosting both a 3D Browser and a  simulation/animation engine.</font></span></div>
                    <div> <span class="yiv1888844435013381811-02092010"></span> </div>
                    <div><font size="2" face="Arial" color="#0000ff"><span class="yiv1888844435013381811-02092010">If  it's possible to use js or ajax as a network extension to any 3D Browser I will  get a cace and celibrate with my collegues.</span></font></div>
                    <div><font size="2" face="Arial" color="#0000ff"><span class="yiv1888844435013381811-02092010">A dinner when we got the MU running and guess what  when we got a MU with simulation engines runing. :)</span></font></div>
                    <div> <font size="2" face="Arial" color="#0000ff"><span class="yiv1888844435013381811-02092010"></span></font> </div>
                    <div><font size="2" face="Arial" color="#0000ff"><span class="yiv1888844435013381811-02092010">/Sven-Erik </span></font></div>
                    </div>
                    </blockquote>
                    <div id="yiv1888844435">
                    <div> there is a catch in simulation/animation engine that are server side<br />you'll need to use something like <span style="font-weight: bold;"></span>Discrete Event Simulation (<a href="http://www.cs.brown.edu/~scd/world/sim.html)">http://www.cs.brown.edu/~scd/world/sim.html)</a><br /><br />tom<br /> </div>
                    </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />           </blockquote>
    <div class="signature"><br /><br /><br />-- <br />GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern<br />E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail</div></body>
</html>