1
1

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 3 years have passed since last update.

A-Frameで3Dモデルを使用するときのメモ

Last updated at Posted at 2020-09-13

ローカルで動かすのに苦戦したのでメモ

A-Frameで3Dモデル
gltfモデルのサンプルを落としてきた。

scene.gltf
scene.bin
index.html 
index.html
<!doctype html>
<html>
  <head>
    <!-- A-Frameの導入 -->
    <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>

    <title>A-Frame</title>
  </head>
  <body>
    <a-scene>
      <!-- gltfファイル -->
      <a-assets>
        <a-asset-items id="bird" src="scene.gltf" ></a-asset-items>
      </a-assets>
      <a-entity gltf-model="#bird" scale="0.01 0.01 0.01"></a-entity>   
    </a-scene>
  </body>
</html>

index.htmlをそのままクリックしても開かない。
VScodeのliveserverか、Netlifyにデプロイして実行。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?