Top Banner
A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL [email protected]
74

A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL [email protected].

Jan 16, 2016

Download

Documents

Roy Sharp
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A Virtual Worlds Architecture Framework

VWF

David A. SmithChief Innovation Officer

Lockheed Martin GTL

[email protected]

Page 2: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

VWFVision

Frank DiGiovanni, SES Director, Training Readiness and Strategy

Office of the Deputy Under Secretary of Defense (Readiness)

The Pentagon, Washington D.C.

Page 3: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

David A. Smith

Who I am…

Chief Innovation Officer at Lockheed Martin GTL – largest simulation training company in the world

Wrote first real-time 3D adventure game: The Colony 1987

Wrote first real-time 3D design tool: Virtus Walkthrough 1990

Co-founded Red Storm Entertainment (created Rainbow 6) with Tom Clancy 1995

Co-founded Timeline Computer Entertainment with Michael Crichton 1998

Co-founded the Croquet Project with Alan Kay (was also Chief Architect) 2001

Co-founded Qwaq/Teleplace 2006

Co-founded 3Dsolve 2001 sold to LM 2007

Page 4: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Essential Features of a Next Generation Virtual World Platform

• Platform scalability - need to work across OSs and devices (desktops - handhelds)

• Distribution - Needs to be easily deployed across an entire organization with a 0-install preferred. Needs to work on both sides of a firewall.

• Security - needs to work with existing IT capabilities and requirements

• Open source - must avoid being a captive solution. Must be accessible to non-business users, especially education

• Utilize and Define Standards - for interoperability and scalability. Must interoperate and fully enable the Global Information Grid (GIG)

• Future Proof – must scale dynamically with new requirements and new opportunities while protecting investments in content and infrastructure

• Business models - must provide interesting business ecosystem for small and large organizations. Must lower the cost of content development while raising the level of quality and affordability.

Page 5: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

The Web is the Future of Virtual Worlds

• The next generation of browsers incorporating WebGL coupled with HTML 5 will become the de facto foundation for the next generation of shared virtual worlds.

• The next big 3D platform is simply the current WWW with additional capabilities.

Browser+

WebGL+

HTML 5+

JavaScript+

Jabber+

Collada

Page 6: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

VWF

• Replicated computing platform for multi-user interactive 2D and 3D

• Focused on training, collaboration and entertainment

• Component based model – intelligent objects that can be easily added to existing spaces

• Model view architecture to allow multiple rendering models (2D and 3D) as well as dead-reckoning models

• Open Source platform

Page 7: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

ReleaseAlpha released November 2011 (waiting for DoD export clearance)

Beta release March 2012

Probably hosted on Github

Will include:

• Full working system

• Online working Demo applications

• Demo Servers also distributed as running VMs

• Apache

• Ruby

• NodeJS

• Documentation

• System docs

• Developer docs

• Cookbook

Page 8: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Demos

Page 9: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Components

• YAML or JSON based• Goal is Drag and Drop – user

extendable• Programming does NOT require deep

multi-user networking knowledge• May require managing multiple user

events – basically matching mouse, keyboard etc to a given user

• Support both 2D and 3D

Page 10: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Model/ViewView

Rendered imageCan be 2D, 3D, WebGL,UnityAllows for approximate representation of system state (eg dead reckoning)

Model

Replicated stateProvides replicated “truth”Deterministic Simulation Platform

Page 11: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Model/View

View

Model

Models are read only from view

Page 12: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Model/View

View

Model

User Interactions are indirect via a Reflector server

Reflector

User Event

Page 13: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobbles* are “safe” replicated containers of other objects

* From “The Peace War” by Vernor Vinge

• Bobbles live in the Model

• Any component can be a Bobble

• Bobbles can also contain other components

Page 14: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobbles can be easily saved and duplicated via JSON or YAML

Page 15: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Objects and components can interact directly with other

objects within Bobbles directly

Page 16: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Replicated Bobbles

Machine A Machine B

Page 17: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Replicated Bobbles

Deterministically Equivalent Bobbles replicated via checkpoint mechanism

(YAML or JSON) Internal Future messages implicitly replicated External Future messages explicitly replicated External non-replicated messages VERY bad New objects: Reflectors and Controllers

Page 18: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Timing is Everything!

External messages must be executed in the same order and at the same time in all replicated bobbles.

Internal messages are executed deterministically, as long as bobble structure remains identical – we have identical results.

But how?

Page 19: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobble’s View of Time is defined only by message order!

Machine A

Target

Message

Arguments

Timestamp

Message Queue Sorted by Time

Page 20: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

New message inserted with future()

Machine A

Target: cylinder

Message: turn()

Arguments: {25}

Time: now+100

Message Queue Sorted by Time

self.future(100).turn(25) // this adds a new message to the future message queue

Page 21: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

An example (temporal tail recursion):

ACylinder.aMessage(arg)

// this is a typical pattern for performing // redundant tasks, such as animations

self.doSomethingWith(arg){ if (arg>0){

self.doSomethingHere(arg);self.future(100).doSomethingWith(arg-1);

}}

Page 22: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Reflectors, Controllers and Genuine Time Based Replication

Page 23: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

The Reflector

Acts as the clock for the replicated bobbles Determines when an external message is

actually executed for all bobbles Sends heartbeat messages to move time

forward by executing internal replicated messages

Page 24: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

The Controller

Manages the interface between the Bobble and the Reflector

Manages the message queue Non-replicated part of

Bobble/Controller pair Can exist without a Bobble, acting as

a proto-Bobble until the real Bobble is either created or duplicated.

Page 25: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

The Reflector/Controller

Machine A

Reflector

ControllerFarRef

Page 26: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Message sent to farRef – no time is specified

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 27: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

farRef forwards to Controller

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 28: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Controller forwards to Reflector

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 29: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Reflector adds time stamp (and enumeration), forwards back to

Controller

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 30: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Controller forwards time-stamped message to add to message

queue.

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 31: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobble executes all messages up to the new external message

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 32: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobble executes all messages up to the new external message

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 33: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobble executes all messages up to the new external message

Machine A

Reflector

Controller

farRef.future.aMessage(args)

FarRef

Page 34: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

If there is no external message to move things forward, the reflector

will manufacture one.

Machine A

Reflector

Controller

Heartbeat message

Page 35: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Messages are then executed by Bobble up to and including the

heartbeat message from Reflector

Machine A

Reflector

Controller

Heartbeat message

Page 36: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Messages are then executed by Bobble up to and including the heartbeat message from Router

Machine A

Reflector

Controller

Heartbeat message

Page 37: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Messages are then executed by Bobble up to and including the

heartbeat message from Reflector

Machine A

Reflector

Controller

Heartbeat message

Page 38: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

This works for any number of replicated Bobbles.

Machine A

Reflector

Machine B

Page 39: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

This works for any number of replicated Bobbles.

Machine A

Reflector

Machine B

Page 40: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

This works for any number of replicated bobbles.

Machine A

Reflector

Machine B

Page 41: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

This works for any number of replicated Bobbles.

Machine A

Reflector

Machine B

Page 42: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Reflector/Controller/Bobbles

Does not matter where the message comes from

Bobbles can not move past whatever time the Reflector specifies it is

Reflector sends heartbeat messages to move time forward when no external messages are available to drive time forward

Guarantees Bobbles execute identical messages in identical order

Page 43: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Reflector enumerates messages

Messages from Reflector are enumerated.

If controller receives m1, m2, m4, Controller knows that it missed m3 and request that it be resent.

Page 44: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Bobbles view of time

Bobbles only understand time in quantized terms – there is only now (when message is executed)

– and now + x (when future message will be executed)

Reflector controls execution time for all Bobbles.

Reflector needs to send heartbeat messages to ensure smooth animations.

Heartbeat messages can be ignored by Controller, with result of jerky animation updates – though the View can update any way it likes (dead reckoning).

Page 45: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Starting and Joining

Page 46: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

First there was the server/Reflector...

Reflector

The new Reflector can be anywhere in the world.

Page 47: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

User creates a Controller

Reflector

Controller

The new Controller will be on the users machine. It is given the Reflector address and port number. Since it will be used to construct the initial Bobble, we call it the master Controller.

Page 48: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Request to join

Reflector

Controller

The Controller sends a message to the Reflector asking for messages. The Reflector (if it is authorized) begins publishing its message stream to the Controller.

Join request

Page 49: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Controller joins Router message stream

Reflector

Controller

Once the join is accepted, the Reflector sends all replicated messages and heartbeats to the Controller. The Controller saves these into a message queue.

MessageStream

Page 50: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Controller constructs new Bobble

Reflector

Controller

MessageStream

Machine A

Page 51: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Adding a new user – construct Controller

Machine A

Reflector

A B

This is similar to constructing the initial Controller/Bobble pair. First, create the new users Controller.

Page 52: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Request to join Reflector

Machine A

Reflector

Request to join the Reflector.

Page 53: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Reflector

A B

Start receiving messages

Machine A Once granted, we add new messages into the message queue.

Page 54: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

BA

Request Bobble

Machine A

Reflector

The Controller can now be used to request a copy of the Bobble.

Page 55: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Bobble checkpointed and sent

Machine A

Reflector

The Bobble is checkpoint streamed to the new Controller via the Reflector.

Page 56: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Bobble checkpointed and sent

Machine A

Reflector

Page 57: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Bobble checkpointed and sent

Machine A

Reflector

The Controller resurrects the Bobblelocally.

Page 58: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Bobble is resurrected and can now be displayed.

Machine A

Reflector

Machine B

Page 59: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

BA

Message queue is culled to >= Bobble current time.

Machine A

Reflector

Machine B

Page 60: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Participating

Joining is “view only” interaction – the user can not modify the Bobble contents until he gets permission to participate.

The user must request permission from the Reflector to participate.

The Reflector grants participation capability via “facets”

Interesting aside – we can manage any number of “joined” users simply by broadcasting the message stream to them. This allows arena type interactions.

Page 61: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

B

Controller requests right to participate from Reflector

Reflector

Machine B

A

Page 62: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

BA

Reflector passes a list of facets, or interfaces to Controller.

Reflector

Machine B

Page 63: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

A B

Reflector passes a list of facets, or interfaces to controller.

Reflector

Machine B

Page 64: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

B

External message is sent to controller.

Reflector

Machine B

Page 65: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Controller looks up object/message pair in facet

dictionary.

Reflector

Machine B

Page 66: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Facet is used to invoke replicated message, sent to router

Reflector

Machine B

Page 67: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Router performs reverse look-up to find original message.

Reflector

Machine B

Page 68: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Actual message is sent to all controllers.

Reflector

Machine B

Page 69: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Capability Facets

Each facet dictionary is unique to a Controller/Bobble pair.

Different users may have different size dictionaries – they may be granted fewer or more capabilities than other users.

The Controller cannot send a message if it is not in the facet dictionary.

Facets ensure that only trusted users have ability to modify a given state. They must be explicitly granted this access.

This does not mean they won't abuse it!

Page 70: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Nice side effects

Latency does not create timing problems, just feedback problems (system acts sluggish if you have higher latency).

Users are not punished for having a high-latency participant sharing a Bobble (though the high latency participant has a poor experience).

Reflectors can be independent of Bobble/Controller pairs, hence can be positioned on minimal latency or centralized balanced latency servers.

Reflectors can even be moved around if necessary to improve latency for specific users or groups.

Page 71: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Latency does not effect accuracy – only usability.

Reflector

Page 72: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Router

Reflector can be moved to more latency centric location.

Router

Page 73: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Overlay Portals

Portals are the main access to Bobbles.

They can be overlaid on top of each other such that a Bobble portal may be overlaid with a user interface portal, and system control portal.

They also contain the user interface objects used to manipulate the contents of a Bobble.

This is TBD.

Page 74: A Virtual Worlds Architecture Framework VWF David A. Smith Chief Innovation Officer Lockheed Martin GTL david.alan.smith@lmco.com.

Ghost Objects

Ghost objects are objects that do not actually exist inside of a Bobble, but act as if they do.

They are in a separate Bobble that is accessed by an overlay portal.

Examples of ghosts might be window frames, UI handles, billboards, and portals into other Bobbles

This means that though Bobbles are never directly connected to each other, they can still look and act as if they are.