The Source for Java Technology Collaboration

Home » java.net Forums » Project Looking Glass 3D » Wonderland & MPK20 Interest

Thread: Uploading a cell to the server

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Sep 24, 2007 7:27 PM by: kaplanj
bswett

Posts: 8
Uploading a cell to the server
Posted: Sep 21, 2007 10:31 AM
 
  Click to reply to this thread Reply

In my pursuit of drag and drop, I am now more focused on the "drag in" part. I want to drag a file into the environment and have it appear as some sort of Cell. I believe this means I need the Wonderland Client to send some sort of message to the Server to create a Cell at a particular location. So far, the only precedent I've been able to find is the Avatar, but that's kind of a special case.

Can anyone suggest to me what kind of message I would send, or how to signal to the Server to create a cell?

Thanks!

paulby

Posts: 2,068
Re: Uploading a cell to the server
Posted: Sep 21, 2007 4:43 PM   in response to: bswett
 
  Click to reply to this thread Reply

This is something we have discussed. We want the ability for users to add cells on the client and then have them uploaded to the server for global distribution.

There are a number of steps to the final solution

WFS integration
Client side addition of cell via primitive ui
Generation of wfs files to describe cell
upload wfs description and content to server

WFS is being actively developed and we are about to start work on the first phase of the client interface to allow content to be added.

The focus at the moment is on geometry, but could be extended to other data. For example dragging a OpenOffice doc in world would create a cell running OpenOffice displaying the doc. It will take us a little while to get to that stage however.

kaplanj

Posts: 616
Re: Uploading a cell to the server
Posted: Sep 24, 2007 7:27 PM   in response to: paulby
 
  Click to reply to this thread Reply

Just to elaborate a little on Paul's reply: there are currently two cases where we dynamically add cells to the world. The avatar cell, as you mentioned and the SharedApp2DCell that gets created when you launch a native application. SharedApp2DCell, which gets created in the processNativeApplicationMessage() method of WonderlandSessionListener, is a more typical example than the Avatar.

I think a more general mechanism would be reasonably easy to implement. For example the client could send the server a CellSetup message, and the server could use that information to create a new cell and notify other clients. This would look very much like the current SharedApp2D cell creation path. The only change is that the target cell type would need to provide a method to read its initial data from a CellSetup message. Perhaps these kind of cells could implement a "UserCreatable" interface.

Both the Avatar cell and the NativeApplication cell are currently transient -- they go away when the hosting client disconnects. To make these cells permanent, you might also want to write to the WFS, but that seems like a future concern.




 XML java.net RSS