View Full Version : linkup with other computers
09-17-2002, 07:51 PM
part of my opengl project requires me to
allow interactive communication between 2 users within a single opengl environment.
its kind of like allowing another user in another location control of objects in the environment i'm looking at.
could anyone advise me on where i could look for information on this or which software i should be looking at?
thanks in advance
09-17-2002, 11:57 PM
You'll need to learn about network programming (sockets). You'll need to invent a protocol to enable the remote user to interact with the environment.
In the running opengl app you will need to decide where you will accept the input from the remote user. I wrote an app a while ago which simply polled the socket in the idle loop. If there was data, it decoded the message and actioned it, else, well, nothing coz it was the idle loop.
For a more complete solution you most likey want to devise a "user managment" system which manages users local and remote and then this process communicates with the opengl application.
As for pre-existing resources. You may be out of major luck. To recap ..
Check network programming - sockets.
Check idle loop, or other places where data can be processed from the remote user.
Make sure the local user data is also processed!
09-18-2002, 01:30 AM
I did exactly this for one of my University classes a few years ago. A 2d plan view on one pc updated a 3d view of the same scene on another pc (actually, I was using Unix workstations). I used sockets too.
09-18-2002, 06:31 AM
thanks a lot. will check that out
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.