Collaborative 3D Environments over Windows Azure

  • View
    534

  • Download
    1

Embed Size (px)

Transcript

Snmek 1

Collaborative 3D Environments over Windows Azure

Jiri DanihelkaPhD Candidate, Department of Computer Graphics and InteractionProject Lead, R&D Centre for Mobile Application (RDC)Czech Technical University in Prague

Dr. Lukas KenclDirector, R&D Centre for Mobile Application (RDC)Department of Telecom EngineeringCzech Technical University in Prague

Czech Technical Universityin PragueFaculty of Electrical Engineering

1

AgendaObjectivesInteractive 3D platforms in Windows Azure3D shop single user3D teapot multi-userDemoPerformance Lessons learned & future workCollaborative 3D Environments over Windows Azure

2

Czech Technical Universityin PragueFaculty of Electrical Engineering

Lets start with the Agenda. First I will tell you something about our objective, what we want to achieve. 2

Principal QuestionsHow to create and distribute 3D interactive environments over the cloud?How to enable their creation for 3rd parties?How to do it using scalability of Windows Azure Platform?How to bring these worlds on various client platforms? (PC, tablet, phone)Collaborative 3D Environments over Windows Azure3

Czech Technical Universityin PragueFaculty of Electrical Engineering

Inspiration: (own, past) 3D Mobile Internet ProjectInteractive 3D client-server solutions3D Mobile Talking Head3D e-ShopTechnologyVRML, Server scriptsStandalone application or 3D-viewer pluginServer-based speech recognition and synthesishttp://www.rdc.cz/3Dinternet/Best Paper Award, Danihelka, Hak, Kencl, Zara. 3D Talking-Head Interface to Voice-Interactive Services on Mobile Phones. SiMPE Workshop at MobileHCI 2010 Android and iPhone licenses sold commerciallyCareful considerations of functionality distribution

Collaborative 3D Environments over Windows Azure44

Czech Technical Universityin PragueFaculty of Electrical Engineering

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++66+++++++++++++++4

Long-term project big picture: 3D Collaborative Cloud ServicesNatural interaction: speech, 3D environment, real-time, multi-userArchitecture: new graphics technologies together with cloud scalability & functionsFast creation & deployment of cloud-based 3D apps (e-Shops, Games, Education, etc)

Collaborative 3D Environments over Windows AzureWindows Azure Platform

InventorySQL AzureClientwith web browser3D contentAzure StorageSL 5Businness logicAzure ComputeClientwith Windows PhoneSL 4XNA

Logic updateGeometry updateInventory update3D Service administratorInteractionDownloadInteractionDownload

Configuration Tools

5

Czech Technical Universityin PragueFaculty of Electrical Engineering

Related workSecond Lifeclosed server infrastructure RuneScape cloud MMORPG (Amazon)

Collaborative 3D Environments over Windows Azure

Social games in Azure (turn based)

Is Azure good for this?

Tankster

Vampire Legacy6

Czech Technical Universityin PragueFaculty of Electrical Engineering

Prototype I: Single-user 3D shop with Talking Head on Azure

Cloud (Windows Azure)Client (MS Silverlight5 in browser)4. .obj, .jpg2. .xap1. request3. requestCollaborative 3D Environments over Windows Azure7Azure Compute

Web RoleWeb page

SL 5HTTP7

Czech Technical Universityin PragueFaculty of Electrical Engineering

Prototype II: 3D Teapot - Multi-user collaboration on a shared 3D objectCollaborative 3D Environments over Windows Azure8

Silverlight browser clientXNA mobile apppitchyawcolor-30.534.5#FFAC58

Represented by a simple, shared state8

Czech Technical Universityin PragueFaculty of Electrical Engineering

8

Demo

Czech Technical Universityin PragueFaculty of Electrical Engineering

Collaborative 3D Environments over Windows Azure

Client Software Architecture10

Czech Technical Universityin PragueFaculty of Electrical Engineering

Azure Deployment ArchitectureCollaborative 3D Environments over Windows Azure

11

Czech Technical Universityin PragueFaculty of Electrical Engineering

Detailed architecture browser clientCollaborative 3D Environments over Windows AzureAzure Storage (Europe)

Azure Compute(West USA)

SQL Azure Server (South-Central USA)

Clientwith web browserWebRoleWeb page

SL 5SL 51. http requestWeb page

SL 52. download SL 5 page3. SOAP communication withweb synchronization service usingWindows Communication Foundationlibrary (WCF)4. store state to databaseusing SQL queries and Entity Frameworkpitchyawcolor-30.534.5#FFAC58

12

Czech Technical Universityin PragueFaculty of Electrical Engineering

Collaborative 3D Environments over Windows AzureWP7 Marketplace(operated by Microsoft)

Azure Compute(West USA)

state

Windows Phone 7.5 MangoWebRoleApplication

SL 4 + XNA1. download request2. download application3. SOAP communication withweb synchronization service usingWindows Communication Foundationlibrary (WCF)Application

SL 4 + XNADetailed interconnection mobile XNA clientSQL Azure Server (South-Central USA)

pitchyawcolor-30.534.5#FFAC58

13

Czech Technical Universityin PragueFaculty of Electrical Engineering

Teapot state synchronization protocol Collaborative 3D Environments over Windows AzureSL 5 or SL 4 + XNAapplicationWebRolePitch deltaYawdeltaRGB+15-7nullnullnull

PitchYawRGB1586845200150

GetState- returns all fields of current state- server does not maintain sessionsUpdateStatesends relative change on client to serveronly changed fields sentclient must track changes (maintain session)14

Czech Technical Universityin PragueFaculty of Electrical Engineering

Measurement setup

Collaborative 3D Environments over Windows Azure

Configurable auto-movement of teapotLogging latency of GetState & UpdateState operations2 scenarios:24 simultaneous instances at university classroomIncrementally increasing # of instancesExcellent network connectivity2 instances per machine2 simultaneous instances at a public caf (Starbucks, Prague center)Typical use caseWiFi connectivity

Auto-movementLogging15

Czech Technical Universityin PragueFaculty of Electrical Engineering

Measurements - LatencyCollaborative 3D Environments over Windows AzureLatency (ms)ClassroomStarbucks Mean91.40204.38St Dev165.86100.95Median63195Min4678Max80782101

Classroom24 instancesStarbucks2 instances

16

Czech Technical Universityin PragueFaculty of Electrical Engineering

Increase of response delay based on number of clientsCollaborative 3D Environments over Windows Azure

17

Czech Technical Universityin PragueFaculty of Electrical Engineering

Delay and its varianceCollaborative 3D Environments over Windows Azure

Value with high response delay are also distant from average

18

Czech Technical Universityin PragueFaculty of Electrical Engineering

Set and Get operationsCollaborative 3D Environments over Windows AzureWriting to a database (Set) takes more time than retrieving data (Get)

19

Czech Technical Universityin PragueFaculty of Electrical Engineering

Lessons Learned & Future WorkAzure lessonsCarefully consider data-center and geographic distributionSQL processing elsewhere?Atomicity of SQL operations has to be consideredShared state closer to web/worker rolesUDP vs TCPGeographic distribution

Further WorkMuch more measurementsSharing state by other means e.g. Azure Mobile ServicesPrototype 3: Multi-user seeing each otherIntegrate with speech recognition and synthesisOpen platform for rapid 3rd party configurationDynamic workload migration between client and cloud based on immediate conditions and contextCollaborative 3D Environments over Windows Azure20

Czech Technical Universityin PragueFaculty of Electrical Engineering

Thank you! Q&AR&D Center for Mobile ApplicationsDept of Telecom EngineeringCzech Technical University in Prague

Jiri DanihelkaRDC Project Leadjiri.danihelka@rdc.cz

Dr. Lukas KenclRDC Directorlukas.kencl@rdc.cz

URLs:www.rdc.czhttp://www.rdc.cz/3Dinternet/http://danihelka.blob.core.windows.net/sync/usa/index.htmlhttp://danihelka.blob.core.windows.net/world//index.html

Collaborative 3D Environments over Windows Azure21

Czech Technical Universityin PragueFaculty of Electrical Engineering

Czech Technical University in PragueEstablished 1707Edict of Emperor Joseph I. Among oldest technical universities in Central Europe8 FacultiesElectrical Engineering (since 1950) FEEComputing, Telco, EE, Cybernetics, Electronics~25000 studentshttp://www.cvut.cz/Top 500 Worldwide, Top 120 TUTight cooperation with:GoogleIBM MicrosoftVodafoneT-MobileCiscoHoneywellRockwell Automation

Collaborative 3D Environments over Windows Azure22

Czech Technical Universityin PragueFaculty of Electrical Engineering

22Pokus

Department of Telecommunications EngineeringHeadProf. Boris SimakStaff Researchers and teachers 25PhD students 50www.comtel.czTeachingMajor provider of KME courses (Communications, Multimedia, Electronics)Research GroupsWireless NetworkSignal ProcessingTransmission SystemsSwitching SystemsManagement in TelecommunicationsStrong industrial collaboration: Vodafone, T-Mobile, Telefonica, Cisco, Juniper Networks JNAA signed 2012!, Huawei, 3M, Alvarion, Sitronics, Microsoft, IBM R&D Centre for Mobile Applications

Collaborative 3D Environments over Windows Azure23

Czech Technical Universityin PragueFaculty of Ele