Hi,

On Sun, 2003-12-28 at 12:50, Robert Hinn wrote:
> Hi,
> 
> I'm indeed working on a collaborative application, trying to have 
> several independant clients and one scene server. I was just thinking 
> about having one central server manage scenegraph changes, and one 
> rendering server per client just to render the scene (probably with 
> little modifications for that client only, like highlighting nodes, etc.)
> 
> I'll try to get deeper into the RemoteAspect (and change list) stuff, 
> I'm just not sure wether the RemoteAspect handles the scene replication 
> for me, or if I have to do that myself, via the functors that can be 
> added to the RemoteAspect (e.g. for node creation / deletion, etc).

The RemoteAspect (and the ChangeList) are there to handle the
replication for you with something like

Sending side:

  RemoteAspect *aspect;
  Connection *connection;
  ...setup connection...
  aspect->sendSync(*connection, Thread::getCurrentChangeList());
  connection->flush();

Receiving side:

  RemoteAspect *aspect;
  Connection *connection;
  ...setup connection...
  connection->selectChannel();
  aspect->receiveSync(*connection);

Be ware of your begin-/endEdit calls, since only changes made in between
these will be replicated!


The register* functions of the remote aspect is there to let you do
stuff when special field containers are created, changed and/or
destroyed. For example you might want to collect a handle to all Switch
node(core)s in a vector the moment they are created and throw away the
handles the moment the nodes are destroyed.


> Anyway, thanks for the answer, I'll experiment with the RemoteAspect for 
> now...

You're welcome... and I think experimentation is the best way to get to
know how all this works. Hopefully you can now do some "guided"
experimentation :-)


/Rasmus


-- 
Rasmus Agerholm

Research Assistant
VR Media Lab            (+45) 9635 8792
Niels Jernes Vej 14
DK-9220 Aalborg

Phone: (+45) 9635 8784
Fax:   (+45) 9815 2444

http://www.vrmedialab.dk/~rasta



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to