Presentation is loading. Please wait.

Presentation is loading. Please wait.

Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 4: More Than Two.

Similar presentations


Presentation on theme: "Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 4: More Than Two."— Presentation transcript:

1 Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 4: More Than Two

2 BOIDS

3

4

5

6 SIMPLE PEER TO PEER

7

8

9

10

11

12 PEER TO PEER WITH MASTER

13 Host E Host A Host B Host C Host D Host E Host A Host B Host C Host D Host E Host A Host B Host C Host D Host E Host A Host B Host C Host D

14

15

16 InactiveActive code(Flock flock) create Announce message send message to master host code(Flock flock) create State message send message to every participating host

17 Inactive/ Active decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer decode(String str) and State message extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str Inactive/ Active decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer create an Announce message for local flock send the created Announce message to the remote host for each registered remote flock { send the received Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock } decode(String str) and State message extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str

18 PEER TO PEER WITH RENDEZVOUS

19 Hos t A Host C Hos t B Rendez vous Server Hos t A Host C Hos t B Rendez vous Server Hos t A Host C Hos t B Hos t A Host C Hos t B Rendez vous Server Hos t A Host C Hos t B Rendez vous Server Hos t A Host C Hos t B Rendez vous Server

20

21

22 InactiveActive code(Flock flock) create Announce message send message to server code(Flock flock) create State message send message to server Inactive/ Active decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer decode(String str) and State message extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str

23 Inactive/ Active receive() and Announce message extract flock from received str add FlockRemote to the datamodel for each registered remote flock { send the received Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock }

24 CLIENT/SERVER

25 Ho st A Host C Ho st B Server Ho st A Host C Ho st B Server Ho st A Host C Ho st B Ho st A Host C Ho st B Server Ho st A Host C Ho st B Server Ho st A Host C Ho st B Server

26

27

28

29 InactiveActive code(Flock flock) create Announce message send message to rendezvous server code(Flock flock) create State message send message to every participating host Inactive/ Active decode(String str) and Announce message extract flock from received str add Flock to the Datamodel add Flock to the Renderer decode(String str) and State message extract flock identifier from received str retrieve Flock from Datamodel update Flock from data on str

30 Inactive/ Active decode(String str) and Announce message extract flock from received str add FlockRemote to the Datamodel for each registered remote flock { create stripped version of the received Announce send the stripped Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock } decode(String str) and State message extract flock identifier from received str for each registered remote flock that is not the sender { send the received State to remote flock }

31 MULTICAST

32 Hos t E Host A Hos t B Hos t C Hos t D Hos t E Host A Hos t B Hos t C Hos t D Hos t E Host A Hos t B Hos t C Hos t D Hos t E Host A Hos t B Hos t C Hos t D

33

34

35

36 Inactive Active code(Flock flock) create Announce message send message to multicast group code(Flock flock) create State message send message to multicast group Joined Inactive code(Flock flock) join multicast group

37 Inactive/ Active decode(String str) and Announce message extract flock from received str add Flock to the Datamodel add Flock to the Renderer decode(String str) and State message extract flock identifier from received str retrieve Flock from Datamodel update Flock from data on str

38 SUMMARY


Download ppt "Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 4: More Than Two."

Similar presentations


Ads by Google