SlideShare a Scribd company logo
1 of 16
Download to read offline
1
Babylon.js EditorでWebXRコンテンツを
開発するときのプレビュー確認機能について
| Limes
| 2021.5.24
本⽇の概要 2
・WebXRとBabylon.jsとBabylon.js Editor
・WebXRアプリ開発⽅法の注意点
・新しく搭載される予定のプレビュー実⾏機能について
3
Babylon.jsとは
• Webブラウザで3DCGを描画するためのフレームワーク
• Graph Editorにより、ローコード開発も可能
• WebXRへの対応が進んでいる
(1) https://campusalbano.se/view/2rU8PVbbXWgeQ0sko0yOQA/op
en
(2) https://doc.babylonjs.com/resources/using_grapheditor#list-of-
all-available-nodes
(3) https://www.davrous.com/2017/07/07/from-zero-to-hero-
creating-webvr-experiences-with-babylon-js-on-all-platforms/
(1) (2) (3)
4
WebXRとは?
https://developer.mozilla.org/ja/docs/Web/API/WebXR_Device_API/Fundamentals
意訳:WebXRはVRヘッドセットやAR向けの
グラスなどをWebで使⽤するためのAPI
意訳:WebXRはシーン描画のための
スケジューリングなどは担当するが、直接的な
3Dモデル描画などの機能は持たない
5
WebXRとは?
https://developer.mozilla.org/ja/docs/Web/API/WebXR_Device_API/Fundamentals
意訳:3D graphicsの描画をするには、WebGL
を直接たたくのはお勧めせず、フレームワークの
使⽤が良い。
フレームワークの例
A-Frame, Babylon.js, Three.js
Game toolkitsの例
PlayCanvas
6
Babylon.js Editorとは?
・GUI上で3DCGオブジェ
クトを配置、オブジェクト
別にスクリプトアタッチし
て制御しながらコンテンツ
開発ができるツール
・まだ正式リリースではな
い(2021/5/21時点で4.0.0-
rc.3)
7
Babylon.js Editorとは?
・最近話題のPLATEAUの
3DCGオブジェクトも表⽰
できる
(Blenderなどでglb形式に
変換が必要)
3D都市モデル「PLATEAU」から取得するファイルの構成と、Blenderで読み込んで確認する⽅法 -
CrossRoad (crossroad-tech.com)
Babylon.jsでWebXRコンテンツを開発するときの注意点 8
・https対応のページであることが必要
メリット デメリット
GitHub pagesを利⽤ GitHubにソースコードを公開すれ
ば、https対応のページが使える
ソースコードを公開したくないと
きは使いづらい
Playgroundを利⽤ ソースコードを公開すればhttps対
応のページが使える
同上
⾃分でコードを書いて
ローカルサーバに⽴てる
プライベート環境で検証できる httpsを使うための秘密鍵と認証局
の証明書が必要(オレオレ可)
Playground : Babylon.js専⽤の動作検証サイト。CodePenのようなもの
誰でも閲覧、更新できて公式Docmentationの検索対象になる
Babylon.js Playground (babylonjs.com)
Babylon.js Editor でWebXRコンテンツを作るときの課題 9
Editorからプレビュー実⾏できる内蔵サーバがhttpsに
対応していない
サーバ配置⽤にビルド、エクスポートしてからhttpsに必
要な秘密鍵、認証局の証明書を準備すれば可能だが、都度
エクスポートすると、開発効率が落ちる。
Babylon.js Editor のhttps対応サーバ機能 10
Editorの開発者の⽅と相談して要件や画⾯遷移を決めまし
た。
最終的にEditorの変更が⼤きいということで、コーディン
グのほとんどは開発者の⽅に対応いただきました。。
(まだ正式リリースされていません。スライド末尾に
Githubからの⼊⼿、環境構築⽅法を記載しています)
アプリの画⾯デザインを簡単に作るためのAdobeXDのTipsについて - CrossRoad
(crossroad-tech.com)
Babylon.js Editor のhttps対応サーバ機能 11
設定画⾯
秘密鍵と証明書の設定
https対応の有効
と無効の切替
12
Babylon.js EditorによるWebXRコンテンツのプレビュー実⾏例
(1) Editorからhttpsサーバを起動。
(2) 任意の端末から、
https://<Editorが動いているPCのIPアドレス>:<設定したポート番号>
にアクセス
(3) HMDアイコンが表⽰され、immersive-vrまたはimmersive-arモード
で実⾏できる。
13
Babylon.js EditorによるWebXRコンテンツのプレビュー実⾏例
以下はPCのFirefoxとWebXR Emulatorでの動作実⾏例
参考:WebXR API Emulator ‒ 🦊 Firefox (ja) 向け拡張機能を⼊⼿ (mozilla.org)
14
今後の予定
リリースに合わせて、WebXRコンテンツのテンプレートを作成、提供予定
現在、VRコントローラの⼊⼒に関するテンプレートを作成中
テンプレートは起動直後
の画⾯で指定可能
15
drumath2237/babylonjs-editor-webxr-app: trials to develop WebXR App in BabylonJs Editor
(github.com)
httpsサーバ対応機能を試したい場合、Babylon.js EditorのGitHubから
4.0.0-rc.3のソースコード⼀式をダウンロードし、ビルドしてElectron形
式の実⾏ファイルを⽣成する必要があります。
参考情報
テンプレートサイト作成の参考にさせていただきました。
Babylon.js EditorでWebXRコンテンツを開発し、Github pagesに
⾃動アップロードできるサンプルコード (にー兄さん提供)
Tags · BabylonJS/Editor (github.com)
ソースコード置き場所
$ node ./script/install.js
$ npm run build
→electron-packagesフォルダ以下に実⾏ファイルが⽣
成される
16
ご静聴ありがとうございました。

More Related Content

Similar to Babylon.js EditorでWebXRコンテンツを開発するときのプレビュー確認機能について

RIM Casual Meetup - Bandung #DevIDBdg
RIM Casual Meetup - Bandung #DevIDBdgRIM Casual Meetup - Bandung #DevIDBdg
RIM Casual Meetup - Bandung #DevIDBdg
Ziyad Bazed
 
10264 developing web applications with microsoft visual studio 2010
10264 developing web applications with microsoft visual studio 201010264 developing web applications with microsoft visual studio 2010
10264 developing web applications with microsoft visual studio 2010
bestip
 
React-JS.pptx
React-JS.pptxReact-JS.pptx
React-JS.pptx
jatinkumarchhabra101
 
Cassandra summit - Big Data Apps on the cloud
Cassandra summit - Big Data Apps on the cloud Cassandra summit - Big Data Apps on the cloud
Cassandra summit - Big Data Apps on the cloud
Uri Cohen
 
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
Simplilearn
 

Similar to Babylon.js EditorでWebXRコンテンツを開発するときのプレビュー確認機能について (20)

[D2 campus seminar]웹브라우저 엔진
[D2 campus seminar]웹브라우저 엔진[D2 campus seminar]웹브라우저 엔진
[D2 campus seminar]웹브라우저 엔진
 
Zedrick girish p_tryambakee 5102589493
Zedrick girish p_tryambakee 5102589493Zedrick girish p_tryambakee 5102589493
Zedrick girish p_tryambakee 5102589493
 
Seven Versions of One Web Application
Seven Versions of One Web ApplicationSeven Versions of One Web Application
Seven Versions of One Web Application
 
Front End Applications Using One Stop JavaScript Library from Telerik
Front End Applications Using One Stop JavaScript Library from TelerikFront End Applications Using One Stop JavaScript Library from Telerik
Front End Applications Using One Stop JavaScript Library from Telerik
 
Best JavaScript Frameworks for Web Development in 2023.pptx
Best JavaScript Frameworks for Web Development in 2023.pptxBest JavaScript Frameworks for Web Development in 2023.pptx
Best JavaScript Frameworks for Web Development in 2023.pptx
 
RIM Casual Meetup - Bandung #DevIDBdg
RIM Casual Meetup - Bandung #DevIDBdgRIM Casual Meetup - Bandung #DevIDBdg
RIM Casual Meetup - Bandung #DevIDBdg
 
Introduction to Backbone.js
Introduction to Backbone.jsIntroduction to Backbone.js
Introduction to Backbone.js
 
10264 developing web applications with microsoft visual studio 2010
10264 developing web applications with microsoft visual studio 201010264 developing web applications with microsoft visual studio 2010
10264 developing web applications with microsoft visual studio 2010
 
從狗熊到英雄 - 我的.Net 6 blazor新體驗
從狗熊到英雄 - 我的.Net 6 blazor新體驗從狗熊到英雄 - 我的.Net 6 blazor新體驗
從狗熊到英雄 - 我的.Net 6 blazor新體驗
 
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet""BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
 
Blazor web apps
Blazor web appsBlazor web apps
Blazor web apps
 
Combining Heritrix and PhantomJS for Better Crawling of Pages with Javascript
Combining Heritrix and PhantomJS for Better Crawling of Pages with JavascriptCombining Heritrix and PhantomJS for Better Crawling of Pages with Javascript
Combining Heritrix and PhantomJS for Better Crawling of Pages with Javascript
 
React-JS.pptx
React-JS.pptxReact-JS.pptx
React-JS.pptx
 
9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose
 
Cassandra summit - Big Data Apps on the cloud
Cassandra summit - Big Data Apps on the cloud Cassandra summit - Big Data Apps on the cloud
Cassandra summit - Big Data Apps on the cloud
 
Top Node.js frameworks for web development in 2022.pdf
Top Node.js frameworks for web development in 2022.pdfTop Node.js frameworks for web development in 2022.pdf
Top Node.js frameworks for web development in 2022.pdf
 
BRushen Resume
BRushen ResumeBRushen Resume
BRushen Resume
 
WebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and SmartphonesWebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and Smartphones
 
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
React vs Vue JS Explained | Vue JS vs React Which Is Better? | Vue JS for Beg...
 
Modern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.jsModern JavaScript Frameworks: Angular, React & Vue.js
Modern JavaScript Frameworks: Angular, React & Vue.js
 

More from WheetTweet

More from WheetTweet (20)

PWAを使ってWebXRコンテンツをオフラインで動くようにする手順について
PWAを使ってWebXRコンテンツをオフラインで動くようにする手順についてPWAを使ってWebXRコンテンツをオフラインで動くようにする手順について
PWAを使ってWebXRコンテンツをオフラインで動くようにする手順について
 
WebXR TechTokyo #3 in Cluster発表資料
WebXR TechTokyo #3 in Cluster発表資料WebXR TechTokyo #3 in Cluster発表資料
WebXR TechTokyo #3 in Cluster発表資料
 
20200629 web xr_techtokyo_1_min
20200629 web xr_techtokyo_1_min20200629 web xr_techtokyo_1_min
20200629 web xr_techtokyo_1_min
 
WebXR TechTokyo #0 in Cluster発表資料
WebXR TechTokyo #0 in Cluster発表資料WebXR TechTokyo #0 in Cluster発表資料
WebXR TechTokyo #0 in Cluster発表資料
 
XRにおけるプロトタイピングについて
XRにおけるプロトタイピングについてXRにおけるプロトタイピングについて
XRにおけるプロトタイピングについて
 
A 3DCG view trial in Noodl with Babylon.js and A-Frame
A 3DCG view trial in Noodl with Babylon.js and A-FrameA 3DCG view trial in Noodl with Babylon.js and A-Frame
A 3DCG view trial in Noodl with Babylon.js and A-Frame
 
Babylon.jsでOculus Quest向けWebVRアプリを作るときのメリットとデメリット
 Babylon.jsでOculus Quest向けWebVRアプリを作るときのメリットとデメリット Babylon.jsでOculus Quest向けWebVRアプリを作るときのメリットとデメリット
Babylon.jsでOculus Quest向けWebVRアプリを作るときのメリットとデメリット
 
ARの教科書輪読会 第13章発表スライド
ARの教科書輪読会 第13章発表スライドARの教科書輪読会 第13章発表スライド
ARの教科書輪読会 第13章発表スライド
 
20171027 japan vr_fest開発者会_発表資料_発表用(English)
20171027 japan vr_fest開発者会_発表資料_発表用(English)20171027 japan vr_fest開発者会_発表資料_発表用(English)
20171027 japan vr_fest開発者会_発表資料_発表用(English)
 
20171015 XR動向とコミュニティ活動のすすめ(XRgirls 1st meetup)
20171015 XR動向とコミュニティ活動のすすめ(XRgirls 1st meetup)20171015 XR動向とコミュニティ活動のすすめ(XRgirls 1st meetup)
20171015 XR動向とコミュニティ活動のすすめ(XRgirls 1st meetup)
 
Meta2を動かしてみたことのまとめ
Meta2を動かしてみたことのまとめMeta2を動かしてみたことのまとめ
Meta2を動かしてみたことのまとめ
 
XR community introduction in Japan
XR community introduction in JapanXR community introduction in Japan
XR community introduction in Japan
 
Japan VR Fest 開発者会 in cluster
Japan VR Fest 開発者会 in cluster Japan VR Fest 開発者会 in cluster
Japan VR Fest 開発者会 in cluster
 
20161125 Unity-Android連携の発表資料
20161125 Unity-Android連携の発表資料20161125 Unity-Android連携の発表資料
20161125 Unity-Android連携の発表資料
 
Meta1のSLAM機能を試してみた
Meta1のSLAM機能を試してみたMeta1のSLAM機能を試してみた
Meta1のSLAM機能を試してみた
 
20161014 vrarmr勉強会発表資料 slideshare
20161014 vrarmr勉強会発表資料 slideshare20161014 vrarmr勉強会発表資料 slideshare
20161014 vrarmr勉強会発表資料 slideshare
 
20160902 unity勉強会発表資料
20160902 unity勉強会発表資料20160902 unity勉強会発表資料
20160902 unity勉強会発表資料
 
20160723 unibook lt大会_発表資料(HoloLensのアプリ開発)
20160723 unibook lt大会_発表資料(HoloLensのアプリ開発)20160723 unibook lt大会_発表資料(HoloLensのアプリ開発)
20160723 unibook lt大会_発表資料(HoloLensのアプリ開発)
 
Unity information for new developer
Unity information for new developerUnity information for new developer
Unity information for new developer
 
第2回裏ocufes(2014/3/30) の登壇資料
第2回裏ocufes(2014/3/30) の登壇資料第2回裏ocufes(2014/3/30) の登壇資料
第2回裏ocufes(2014/3/30) の登壇資料
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Babylon.js EditorでWebXRコンテンツを開発するときのプレビュー確認機能について