Showcase session (in Dutch) about how we combined the best from the Flash world with Unity as the fundamentals for serious 3D browser-based games. Flash is used for everything that's related to the interface and requires usability. Unity is used to display everything that is 3D. Javascript let both elements on the page communicate with each other. Red5 or any other Flash remoting server is used to add multiplayer functionality to Unity, this technique will be open sourced on the long term. This enables the option to build a light version of the 3D environment in a 3D Flash engine, for those who don't want, or can't install the Unity plug-in.
3. Paul Tondeur
• Werkzaam bij Web Wonders
• Gepassioneerde ontwikkelaar
• PHP
• Flash platform
• Red5
• Papervision3D
• Unity
• Passie voor innoverende techniek
• Actief deelnemer van Flash en Unity community
• Auteur van een aankomend Papervision3D boek
MEETING 12 2009
4. Unity
“Unity is an integrated authoring tool for creating 3D video games
or other interactive content such as architectural visualizations or
real-time 3D animations. Unity is similar to Director, Blender game
engine, Virtools or Torque Game Builder in the sense that an
integrated graphical environment is the primary way of authoring
the game.”
Wikipedia - Mei 2009
MEETING 12 2009
5. Unity
• Editor werkt op Windows XP, Windows Vista en Mac OS X
• Publiceerd naar:
• Standalone Windows en Mac
• Wii
• iPhone
• Unity web player (cross browser plug-in) voor Windows en
Mac
• Browser plugin is slechts 3,2 MB
• Integratie met tools als Maya, Cinema 4D en Blender
• Programmeren kan in C#, JavaScript of Boo scripting
• Unity Indy license: € 149,-
MEETING 12 2009
6. Unity features
• Programmeren kan in Microsoft Visual Studio
• Unity kan overweg met DLL’s gemaakt in Visual Studio
• Communicatie met browser via JavaScript calls
• Veel standaard scripts zijn meegeleverd.
MEETING 12 2009
10. Red5
“Red5 is an Open Source Flash Server written in Java that
supports:
- Streaming Audio/Video (FLV and MP3)
- Recording Client Streams (FLV only)
- Shared Objects
- Live Stream Publishing
- Remoting (AMF)”
OSFlash.org– Mei 2009
MEETING 12 2009
11. Waarom Red5?
• Bewezen als stabiele open source server
• Multiplayer 3D server voor Flash: Paperworld3D
• Multi-server setups mogelijk
• Geen hoge licentiekosten bij multi-server setups
• Er bestaan Red5 ontwikkelaars
• Ontwikkelen kan rechtstreeks vanuit Eclipse
• Toegankelijkheid te creëren voor gebruikers zonder Unity
plug-in
• Toekomstige betere 3D support voor Flash
MEETING 12 2009
12. Een RTMP Client in C#
• Geen bestaande open source / commerciele libraries
• Reverse engineeren RTMP
MEETING 12 2009
15. Flash, Red5 en Unity
• Maak gebruik van het beste uit alle werelden
• Flash - Erg goed voor het bouwen van rijke interfaces
• Unity - Erg goed voor het tonen van 3D in de browser
• Red5 - Een goede communicatie server waar zowel Flash en
Unity mee overweg kunnen
MEETING 12 2009
16. JavaScript communicatie
Call naar Unity
Unity JavaScript Flash
Call naar Flash
MEETING 12 2009
19. Hoe het werkt
Unity
Web server
JavaScript Flash Panels
MySQL server
Flash Chat
Red5 World Red5 Chat
server server
MEETING 12 2009
20. Toekomst
• Fine-tunen
• VOIP
• Betere schaalbaarheid voor grote omgevingen
• Toevoegen van functionaliteiten die de gezamenlijke beleving
versterken
• Open stellen voor andere ontwikkelaars
MEETING 12 2009