<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY 
style="PADDING-RIGHT: 0pt; PADDING-LEFT: 0pt; PADDING-BOTTOM: 0pt; MARGIN: 0pt; PADDING-TOP: 0pt">
<DIV dir=ltr align=left><SPAN class=188111513-03092010><FONT face=Arial 
color=#0000ff size=2>Hi Christoph </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=188111513-03092010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=188111513-03092010><FONT face=Arial 
color=#0000ff size=2>About a dispatcher, do you think that ejabberd <A 
href="http://www.ejabberd.im/">http://www.ejabberd.im/</A> could be 
usefull? </FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=188111513-03092010></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=188111513-03092010>On t</SPAN><SPAN 
class=188111513-03092010>he issue "only local on the mashine" my thought was to 
have a local grapical displayer of a simulation and a physical engine on the 
same mashine.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN 
class=188111513-03092010></SPAN></FONT></FONT></FONT><SPAN 
class=188111513-03092010></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>G<SPAN class=188111513-03092010>raphical display ( and interaction ) 
would be any X3D browser and physical engine could be a model running in a 
simulation engine.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN 
class=188111513-03092010></SPAN></FONT></FONT></FONT><FONT face=Arial 
color=#0000ff size=2><SPAN class=188111513-03092010>Anyone knowing if this could 
be done with AJAX or XMPP/jabber?</SPAN></FONT></DIV>
<DIV><BR><SPAN class=188111513-03092010><FONT face=Arial color=#0000ff 
size=2>/Sven-Erik</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Christoph Valentin 
[mailto:christoph.valentin@gmx.at] <BR><B>Sent:</B> den 2 september 2010 
18:17<BR><B>To:</B> Sven-Erik Tiberg<BR><B>Cc:</B> x3d-public@web3d.org; Tom 
Sparks<BR><B>Subject:</B> Re: [X3D-Public] XMPP or not XMPP<BR></FONT><BR></DIV>
<DIV></DIV>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 face=Arial color=#0000ff size=2>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 face=Arial color=#0000ff 
size=2>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 face=Arial color=#0000ff 
size=2>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>--- On <STRONG>Thu, 2/9/10, Sven-Erik Tiberg 
        <EM><Sven-Erik.Tiberg@ltu.se></EM></STRONG> wrote:<BR>
        <BLOCKQUOTE 
        style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: 2px solid"><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>
          <STYLE type=text/css></STYLE>

          <STYLE type=text/css></STYLE>

          <DIV dir=ltr align=left><SPAN 
          class=yiv1888844435013381811-02092010><FONT face=Arial color=#0000ff 
          size=2>Hi Christioph</FONT></SPAN></DIV>
          <DIV dir=ltr align=left><SPAN 
          class=yiv1888844435013381811-02092010></SPAN> </DIV>
          <DIV dir=ltr align=left><SPAN 
          class=yiv1888844435013381811-02092010><FONT face=Arial color=#0000ff 
          size=2>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 dir=ltr align=left><SPAN 
          class=yiv1888844435013381811-02092010><FONT face=Arial color=#0000ff 
          size=2>If local the script would transfere states between a 
          X3Dbrowser and a simulation/animation engine on the same 
          computer.</FONT></SPAN></DIV>
          <DIV dir=ltr align=left><SPAN 
          class=yiv1888844435013381811-02092010><FONT face=Arial color=#0000ff 
          size=2>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 face=Arial 
          color=#0000ff size=2>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 face=Arial 
          color=#0000ff size=2>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 face=Arial color=#0000ff size=2><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 face=Arial color=#0000ff size=2><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 face=Arial color=#0000ff size=2><SPAN 
          class=yiv1888844435013381811-02092010></SPAN></FONT> </DIV>
          <DIV><FONT face=Arial color=#0000ff size=2><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>