0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

8thwallのimage targetの作り方

Posted at

はじめに

8thwallのimage targetを用いることで画像に3Dのオブジェクトを重ねることが可能となります。また面白いのは、コップなどの湾曲した形状にも対応しているということで今回試してみました。

ドキュメント
https://www.8thwall.com/docs/web/#manage-image-targets

3Dファイルを用意する

ポイントは下記のような感じ。

ポリゴン数が 35,000 トリスを超えない
結合されたファイル サイズは 10 MB を超えません
スケールは (1, 1, 1)

画像を登録する

1
スクリーンショット 2023-02-13 10.56.02.png

2
スクリーンショット 2023-02-13 10.57.23.png

3
スクリーンショット 2023-02-13 10.57.32.png

アニメーションglbの設定

A-Frameのanimation mixierを使ったサンプルプロジェクトが用意されているので、こちらを参考につくる

blenderでアニメーションを作成する

runを作成

アニメーション > 「タイムライン」を選択
スクリーンショット 2023-02-14 10.33.41.png

オブジェクトを動かしてキーフレームをセット
スクリーンショット 2023-02-14 10.33.50.png

アニメーション > 「ドープシート」を選択
スクリーンショット 2023-02-14 10.35.14.png

名前をrunに設定する
スクリーンショット 2023-02-14 10.35.25.png

jumpを作成

新規アニメーションをセット
スクリーンショット 2023-02-14 10.38.34.png

タイムラインに戻りキーフレームを削除 (xで削除する)

スクリーンショット 2023-02-14 10.39.52.png

オブジェクトを動かしてキーフレームをセット

Conclusion

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?