plunkerでa-frame
概要
plnkerでa-frameやってみた。
gltfをアニメーション表示してみた。
写真
サンプルコード
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="lib/style.css">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="lib/script.js"></script>
</head>
<body>
<h1>Hello Plunker!</h1>
<a-scene>
<a-assets>
<a-asset-item id = "vrm" src= "https://rawcdn.githack.com/pissang/claygl/c4f45119/example/assets/models/SambaDancing/SambaDancing.gltf"></a-asset-item>
</a-assets>
<a-entity gltf-model = "#vrm" scale = "0.2 0.2 0.2" animation-mixer></a-entity>
<a-camera position = "0 10 30" cursor-visible = "true" cursor-scale = "5" cursor-color = "#0095DD" cursor-opacity = "1"></a-camera>
<a-light type = "directional" color = "#FFF" intensity = "0.5" position = "-1 1 2"></a-light>
<a-light type = "ambient" color = "#FFF"></a-light>
</a-scene>
</body>
</html>
成果物
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="lib/style.css">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="lib/script.js"></script>
</head>
<body>
<h1>Hello Plunker!</h1>
<a-scene>
<a-assets>
<a-asset-item id = "vrm" src= "https://rawcdn.githack.com/pissang/claygl/c4f45119/example/assets/models/SambaDancing/SambaDancing.gltf"></a-asset-item>
</a-assets>
<a-entity gltf-model = "#vrm" scale = "0.2 0.2 0.2" animation-mixer></a-entity>
<a-camera position = "0 10 30" cursor-visible = "true" cursor-scale = "5" cursor-color = "#0095DD" cursor-opacity = "1"></a-camera>
<a-light type = "directional" color = "#FFF" intensity = "0.5" position = "-1 1 2"></a-light>
<a-light type = "ambient" color = "#FFF"></a-light>
</a-scene>
</body>
</html>
以上。
Author And Source
この問題について(plunkerでa-frame), 我々は、より多くの情報をここで見つけました https://qiita.com/ohisama@github/items/c433a4c1e4c3919c9911著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .