Fields: Command=TEXTSEND ID (The ID of the sender) Text
Fields: Command=TEXTNOTIFY ID (The ID of the sender, 0 to sign off)
ClientA | -> | ID Server | GetX(ID-B,ADDRESSTYPE) |
ID Server | -> | ClientA | SetX(ID-B,ADDRESSTYPE,12.34.56.78,9000) |
ClientA | -> | ClientB | TextSend(ID-A,Hi there) |
ClientB | -> | ID Server | GetX(ID-A,NAMETYPE) |
ID Server | -> | ClientB | SetX(ID-A,NAMETYPE,Joe Smith) |
ClientB | Displays "Joe Smith: Hi there" in the text window |
DEF Podium RegionSensor { bbox ~~~~~~ # define a volume around the podium for sensing } Connect { while Podium.isIn to [ "vrmltextto://server.com:1234"] # send text to the server }A client may only have one sink for text it generates at a time, when a vrmltextto is activated it should push the current "vrmltextto" URL onto a stack, and send all new text typed to the new "textto". Ideally in the case of something activated by CLICK, then sending the text (typically hitting Return) should pop the previous "vrmltextto" off the stack. The effect of this, is that a client can be participating in a group communication by virtue of their location, then click on a Avatar to send them an aside, automatically returning to the previous communication. In the case of a "vrmltextto" activated by "isIn", then leaving the Activation node (i.e. exiting the space defined by its geometry) should cause the stack to be popped. An example of this, would be being in a room, conversing with neighbours, then approaching a table, which captures the attention of people around it, on leaving the table the user would be back in the room.
When a client has NO vrmltexto's activated, then it will select the Avatar's closest to itself, and send the text to a number of them (maybe 5 to 10).
DEF MyTable RegionSensor { bbox ~~~~~~ # define a volume around the table for sensing } Connect { while MyTable.isIn to [ "vrmltextto://server.com:1234", "vrmltextfrom://server.com:1234"] # send text to and receive from the server }There are three things to note in the above Node
All contents Copyright © 1995 Worlds Inc. Reproduction for
personal use is permitted. All other uses are prohibited without the
formal authorization of Worlds Inc., Worlds, Worlds Chat, AlphaWorld, VRML+, Internet Worlds Fair, LifeForms, Worlds Class Builder and It's
Your World are all trademarks of Worlds Inc.
Web Problems?