Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20200916_XRMTG_LT資料
Search
Satoru Hayasaka
September 16, 2020
Technology
47
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20200916_XRMTG_LT資料
Satoru Hayasaka
September 16, 2020
More Decks by Satoru Hayasaka
See All by Satoru Hayasaka
SparkARでARエフェクトを作成してみよう#1(公開用)
satoruhayasaka
0
190
SparkARでARエフェクトを作成してみよう#2(公開用)
satoruhayasaka
0
540
20211215_XRMTG_LT資料
satoruhayasaka
0
24
2021/11/17 XRMTG LT資料
satoruhayasaka
0
250
2021/3/17 XRMTG LT資料
satoruhayasaka
0
360
20201226_NT札幌_LT
satoruhayasaka
0
53
Other Decks in Technology
See All in Technology
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
130
AI 駆動 Terraform 開発/SRE_BizReach_MIXI_2
visional_engineering_and_design
3
1.9k
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.8k
ASTを使って影響範囲を特定する
nealle
0
110
Sigmaユーザーのための有用リソース一挙公開 & Sigmaで使えるMCP #sigma_ucj /useful-resources-for-sigma-computing-users-and-mcps-with-sigma
shinyaa31
0
170
AIで開発は速くなったのに、なぜ現場は楽にならないのか 〜あなたの組織のボトルネックを突き止めるワークショップ〜
jacopen
1
280
深夜のクラウド懺悔室 1:29:300 or 1:0:0
kazzpapa3
0
200
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
170
Multica × 長期記憶:40個のミニプロジェクト管理
eiei114
1
210
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
270
スクラムで身についていた動き方を、XPで捉え直してみた
codmoninc
PRO
1
310
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
240
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
570
Design in an AI World
tapps
1
310
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
520
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
320
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
How STYLIGHT went responsive
nonsquared
100
6.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Making Projects Easy
brettharned
120
6.7k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Become a Pro
speakerdeck
PRO
31
6.2k
Transcript
Webアプリ開発やった事ない おじさんエンジニアがWebARやってみた話 さって〜(たいちょ〜) @s_haya_0820
プロフィール という会社で開発エンジニアやってます 肩書きは『隊長』です(ガチの役職名ですw) 弊社のHP見るとテスト屋さんな感じですがシステム開発やってます! SE歴は20年くらいで主に組み込み系、アプリ開発などなどやってました さって〜(たいちょ〜) キャンプ大好きオジサンです
#DoMCN の会場貸し出し担当 せっかくだから自分でもXRの開発したい!
None
これ作ってみたい! Unityワカラン… アプリにしたら インストール面倒… どうすればいいんだ…
None
コレだ! 札幌にいると なかなか巡り会えなかったハンズオンに オンラインなら参加できる! WEBアプリなら インストール不要
None
うぉぉぉぉ!できた!
がっ! ここから発展させるためには いろんな知識がそもそも必要だった! SE歴は20年くらいで主に組み込み系、アプリ開発などなどやってました… JavaScriptチョットダケデキル... A-Frameの扱い方イマイチ分かってない... マーカーの検出はなんとかなるかな? (ハンズオンのおかげ!) HTMLチョットダケデキル...
A-Frameとの戦い… 最新Verの1.0.4を使ったが地味に情報が少ない Animationはググると古いVerの情報で 実は使えない構文があったり…と翻弄される… Three.jsのことも勉強しておけばよかった
やってみたこと - 試行錯誤 -
ü <a-plane><a-image>の配置 ü <a-entity>と<a-plane>の組み合わせによる配置 ü 複数アニメーションの同時進行 (position、rotate、visible) ü PNGの透明部分が重なることで裏側の<a-image>が 消えちゃう問題の解消
<a-plane color="#6846A5" width="1" height="1" depth="1" position="0 0 0" rotation="0 0
0"> ↓ <a-plane color="#6846A5" width="1" height="1" depth="1" position="0 0 0" rotation="-90 0 0"> <a-plane><a-image>の配置 ARマーカーに対して並行に表示したい →X軸に-90回転
<a-plane color="#6846A5" width="1" height="1" depth="1" position="0 0 0" rotation=”-90 0
0"> ↓ <a-plane color="#6846A5" width="1" height="1" depth="1" position="0 1 0" rotation="-90 0 0"> ↓ <a-plane color=“#6846A5” width=“1” height=“1” depth=“1” position=“0 0 1” rotation="-90 0 0"> <a-plane><a-image>の配置 ARマーカーの下側に移動したい →Y軸に”1”移動(浮き上がる…ソウジャナイ) →Z軸に”1”移動 Y X Z
<a-entity id="panel_1" width="1" height="1" depth="1" position="0 0 0" rotation="-90 0
0"> <a-plane color="#6846A5" width="1" height="1" depth="1" position="0 1 0" rotation="0 0 0"></a-plane> </a-entity> <a-entity>と<a-plane>の組み合わせによる配置 あまりX軸に-90していることを意識せずに<a-image>を配置できないものか… (x,yの配置で位置関係を把握したい…zとか出てくるとオジサンよくわからんw) →<a-entity>の子要素として<a-iamge>を置くことで <a-entity>を回転させつつ、<a-image>はx,y方向の位置指定で移動ができた Y X
<a-entity id="panel_1" width="1" height="1" depth="1" position="0 0 0" rotation="-90 -45
0"> <a-plane color="#d40010" width="0.5" height="0.5" position="-0.25 0.25 0" rotation="0 0 0"></a-plane> <a-plane color="#f2e500" width="0.5" height="0.5" position="-0.25 -0.25 0" rotation="0 0 0"></a-plane> <a-plane color="#744295" width="0.5" height="0.5" position="0.25 -0.25 0" rotation="0 0 0"></a-plane> <a-plane color="#e93587" width="0.5" height="0.5" position="0.25 0.25 0" rotation="0 0 0"></a-plane> </a-entity> <a-entity>と<a-image>の組み合わせによる配置
複数アニメーションの同時進行(position、rotate、visible) <a-entity id="panel_1" width="1" height="1" depth="1" position="0 0 0" rotation="-90
-45 0" animation__1 = " property : object3D.position.x; from : -1; to : 1; dir : alternate; dur : 2000; loop : true; easing : easeInOutSine; delay : 0; startEvents : animation_start; " animation__2 = " property : rotation; dur : 2000; to : -90 314 0; loop : true; easing : linear; delay : 0; startEvents : animation_start; " >
PNGの透明部分が重なることで裏側の<a-image>が消えちゃう問題の解消 <a-entity id="panel_1" width="1" height="1" position="0 0 0" rotation="-90 0
0"> <a-image src="#image_2" width="1" height="1" position="0 0 0.5" rotation="0 0 0"></a-image> <a-image src="#image_3" width="1" height="1" position="0 0 0.25" rotation="0 0 0"></a-image> <a-image src="#image_4" width="2" height="1" position="0 0 0" rotation="0 0 0"></a-image> </a-entity> 上の層の透過部分が 下のimageを消しちゃってる
PNGの透明部分が重なることで裏側の<a-image>が消えちゃう問題の解消 <a-entity id="panel_1" width="1" height="1" position="0 0 0" rotation="-90 0
0"> <a-image src="#image_4" width="2" height="1" position="0 0 0" rotation="0 0 0"></a-image> <a-image src="#image_3" width="1" height="1" position="0 0 0.25" rotation="0 0 0"></a-image> <a-image src="#image_2" width="1" height="1" position="0 0 0.5" rotation="0 0 0"></a-image> </a-entity> 下の層になる要素から 順に定義することで解消!
というわけでできたものがこちら
None
まとめ WEBアプリヨクワカランおじさんでも A-FrameとAR.jsでいい感じに作れる とはいえまだやりたくてもできてないことが 結構あるのでまだまだ試行錯誤必要!
p ARでのClick(TAP)検知 →イマイチうまく検知できず… p 自前の3Dモデルの表示やアニメーション →3Dモデリングの知識が必要? p 当たり判定使った表現 →やったことない p
Image Tracking(NFT) →やったことある が、ブレる(揺れる)のでなんとかしたい
ありがとうございました! さって〜(たいちょ〜)