Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 8: Middleware and Object-Sharing Systems
OBJECT SHARING SYSTEMS
Client A Objects Application Network Object-Sharing Client B Objects Application Network Object-Sharing Shared Objects
Client A Objects Application Network Object-Sharing Client B Objects Application Network Object-Sharing
RAKNET
Client A ReplicaObjects Application ReplicaManager 1 2 Server ReplicaObjects Application ReplicaManager 4 Client C ReplicaObjects Application ReplicaManager Client B ReplicaObjects Application ReplicaManager
Client A ReplicaObjects Application ReplicaManager Server ReplicaObjects Application ReplicaManager 1 Client C ReplicaObjects Application ReplicaManager Client B ReplicaObjects Application ReplicaManager
BOIDS USING OBJECT SHARING
GENERAL OBJECT SHARING
OWNERSHIP
Client AClient BClient C
Client AServer Client B Request Move Object O to XYZ Move Object O to XYZ Client A attempts to move Object O to XYZ Object O moves to XYZ Server authorizes move
Client AServer Client B Request Move Object O to XYZ 2 Move Object O to XYZ 2 Client A moves Object O from XYZ 1 to XYZ 2 Client A confirms moves Object O moves to XYZ 2 Server authorizes move
Client AServer Client B Request Move Object O to XYZ 2 Reject Movement Client A moves Object O from XYZ 1 to XYZ 2 Client A moves Object O from XYZ 2 back to XYZ 1 Server refuses move
Client AServer Client B Request Lock Object O Grant Lock Object O Client A requests lock on Object O Client A gets lock and makes move to XYZ 1 Object O moves to XYZ 1 Server grants lock Move Object O to XYZ 1 Client A makes move to XYZ 2 Object O moves to XYZ 2 Move Object O to XYZ 2
Client AServer Client B Request Lock & Move Object O to to XYZ 2 Grant Lock Object O Client A requests lock and move Object O from XYZ 1 to XYZ 2 Client A gets lock and makes move to XYZ 2 Object O moves to XYZ 1 Server grants lock Move Object O to XYZ 1 Object O moves to XYZ 2 Move Object O to XYZ 2
SCENE-GRAPHS, OBJECT-SHARING AND MESSAGES
SUMMARY