Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
MagicOnionでマルチプレイゲームを作ってみる / Introduction to de...
Search
sotanmochi
June 25, 2019
Technology
2.6k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MagicOnionでマルチプレイゲームを作ってみる / Introduction to developing multiplayer games using MagicOnion
Roppongi.unity #3 のLT資料
sotanmochi
June 25, 2019
More Decks by sotanmochi
See All by sotanmochi
URP/HDRPを使ったVRM対応アプリの開発方法 / VRM Importer Extension
sotanmochi
0
1.8k
画像処理から始めるコンピュートシェーダ / Introduction to Image Processing using Compute Shader
sotanmochi
2
2.8k
Diminished Reality 入門 / Introduction to Diminished Reality
sotanmochi
2
9.6k
Unityでテクスチャにお絵描きするための線分描画アルゴリズムの話 / Line drawing algorithm using fragment shader
sotanmochi
2
4.1k
SmartRig Bipedを使ってみよう / Introduction to SmartRig Biped
sotanmochi
0
3.5k
VRMを使ったAR/MR撮影ツールを試作開発してみた話 / Prototype of Mobile Mixed Capture
sotanmochi
0
1.8k
リアルとバーチャルの融合によって越えられない壁を壊す / TechCafe vol.8 LT
sotanmochi
0
300
ユニティちゃんと鬼ごっこができるMRゲームと戦術位置解析システム / Mixed reality game and tactical position analysis
sotanmochi
0
750
Research modeで取得した深度(Depth)データを可視化する / Depth data visualization for Hololens RS4 Research mode
sotanmochi
0
220
Other Decks in Technology
See All in Technology
自作バイナリを動かす「入口」8選
puhitaku
1
1.2k
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
320
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
220
1万名の社員が使う認証基盤で どう信頼性を担保するか?
kairim0
0
220
go-sqletch
moznion
0
120
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
0
610
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.1k
SDDの運用にめげずに向き合った話
sansantech
PRO
1
140
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
370
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
100
全人類(ほぼ)AWS Organizations の上でAWSを利用している、その世界を知る話
htan
1
130
Featured
See All Featured
Leo the Paperboy
mayatellez
10
2.4k
Prompt Engineering for Job Search
mfonobong
0
490
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Unsuck your backbone
ammeep
672
58k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
300
Making Projects Easy
brettharned
120
6.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Paper Plane
katiecoart
PRO
4
54k
So, you think you're a good person
axbom
PRO
2
2.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Transcript
MagicOnionでマルチプレイゲームを 作ってみる 2019/06/25 Soichiro Sugimoto sotan (@sotanmochi)
自己紹介 杉本 宗一郎(Soichiro Sugimoto) Twitter:@sotanmochi xR系Unityエンジニア(自称) TIS株式会社・戦略技術センター xR技術に関する応用研究・プロトタイプ開発 2 2019/06/25 Roppongi.unity
#3
本日お伝えしたいこと MagicOnionを使ってアクションゲーム風のサンプルプロジェクトを作りました https://github.com/sotanmochi/MagicOnionExample-ActionGame 3 2019/06/25 Roppongi.unity #3 動画:https://youtu.be/9nTxbHahXZI
Unityでマルチプレイゲームを作る リアルタイムネットワークエンジンの選択肢 • Photon Unity Networking + Photon Cloud •
Monobit Unity Networking + モノビットエンジンクラウド • UNET • Mirror • Photon Unity Networking + Photon Server • Monobit Unity Networking + Monobit Revolution Server など 4 2019/06/25 Roppongi.unity #3
MagicOnionについて Unified Realtime/API Engine for .NET Core and Unity. gRPC(HTTP/2)ベースの統合型ネットワークエンジン
https://github.com/Cysharp/MagicOnion 5 2019/06/25 Roppongi.unity #3
MagicOnionについて 詳細はMagicOnion勉強会の資料などを参考にしてください The Usage and Patterns of MagicOnion https://www.slideshare.net/neuecc/the-usage-and-patterns-of-magiconion 明日から使えるMagicOnion
https://ykimisaki-my.sharepoint.com/:p:/g/personal/y_kimisaki_kimisaki_jp/EX9J_lb_fj1Gpt YDZ4tX_ZcBanQZ_FfNDIpQDT4wOrZueQ?rtime=9qMsyxv51kg 黒騎士と白の魔王 gRPCによるHTTP/2 - API, Streamingの実践 https://www.slideshare.net/neuecc/grpchttp2-api-streaming 6 2019/06/25 Roppongi.unity #3
Why MagicOnion? これまでに使った(試した)ことがあるリアルタイムネットワークエンジンは 基本的にクライアント側の実装のみだった • Photon Unity Networking(PUN) + Photon
Cloud • Monobit Unity Networking(MUN) + モノビットエンジンクラウド • Mirror 7 2019/06/25 Roppongi.unity #3
Why MagicOnion? Unityエンジニアがサーバーサイド開発にも手を出そうとしている Photon Server / Monobit Revolution Server? →
API通信は別のフレームワークで実装が必要・・・ 8 2019/06/25 Roppongi.unity #3
Why MagicOnion? リアルタイム通信とAPI通信を同じフレームワークでC#で書ける 9 2019/06/25 Roppongi.unity #3 Unity Realtime API
Service
チュートリアル チャットアプリのサンプルがQiita記事やMagicOnionのリポジトリにある Unity+MagicOnionで超絶手軽にリアルタイム通信を実装してみた https://qiita.com/mitchydeath/items/cecf01493d1efeb4ae55 MagicOnionSample(ChatApp) https://github.com/Cysharp/MagicOnion/tree/master/samples 10 2019/06/25 Roppongi.unity #3
チュートリアル 次のステップへ進むため、もう少しゲームっぽいサンプルが欲しい・・・ 11 2019/06/25 Roppongi.unity #3
サンプルプロジェクト MagicOnionを使ってアクションゲーム風のサンプルプロジェクトを作りました https://github.com/sotanmochi/MagicOnionExample-ActionGame 12 2019/06/25 Roppongi.unity #3 動画:https://youtu.be/9nTxbHahXZI
サンプルプロジェクト • ルーム管理 • プレイヤーキャラクターの同期 • テキストチャット 13 2019/06/25 Roppongi.unity
#3
サンプルプロジェクトを作ってみて • PUNやMUNに対応するものは自作が必要 • 色々と参考にしながら作ってみたが、どんな設計にすると良いのか分からない • 非同期処理を理解していないと上手く実装できない 14 2019/06/25 Roppongi.unity
#3
参考にしたプロジェクト・資料など MagicOnionDemo https://github.com/yika-aixi/MagicOnionDemo UnityResearch https://github.com/yKimisaki/UnityResearch 「オンラインゲームのしくみ」のサンプルプロジェクト (第8章・第9章) https://www.sbcr.jp/support/13006/ 15 2019/06/25
Roppongi.unity #3
サーバーサイドをクラウド環境へデプロイする Unity+MagicOnionのサンプルプログラムをコンテナ化してAzureContainerInstancesで 簡単に動かす方法 https://qiita.com/_y_minami/items/aa57873bbb9ea0b36dd2 Unity:MagicOnionの.NET CoreコンテナサーバーをAWS Fargateで実行する方法 https://qiita.com/simplestar/items/b1d29e986b0b2cd6af2b 16 2019/06/25
Roppongi.unity #3
まとめ • MagicOnionはリアルタイム通信/API通信が統合されたネットワークエンジン • アクションゲーム風のサンプルプロジェクトを作ってみた • MagicOnionでサーバーサイド開発を始めてみる 17 2019/06/25 Roppongi.unity
#3
ありがとうございました