kyuu-test2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Floating Picture Sphere</title>
<script src="https://aframe.io/releases/1.4.2/aframe.min.js"></script>
</head>
<body>
<a-scene background="color: #ECECEC">
<!-- 画像を貼り付けた球体 -->
<a-sphere
src="#myTexture"
radius="1.5"
position="0 2 -5"
segments-width="32"
segments-height="32">
</a-sphere>
<!-- テクスチャ画像の定義 -->
<a-assets>
<img id="myTexture" src="./pic/a7.jpg">
</a-assets>
<!-- 地面 -->
<a-plane rotation="-90 0 0" width="10" height="10" color="#7BC8A4"></a-plane>
<!-- カメラ -->
<a-entity camera look-controls wasd-controls position="0 1.6 0"></a-entity>
</a-scene>
</body>
</html>
使用変数
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Floating Picture Sphere</title>
<script src="https://aframe.io/releases/1.4.2/aframe.min.js"></script>
</head>
<body>
<a-scene background="color: #ECECEC">
<!-- 画像を貼り付けた球体 -->
<a-sphere
src="#myTexture"
radius="1.5"
position="0 2 -5"
segments-width="32"
segments-height="32">
</a-sphere>
<!-- テクスチャ画像の定義 -->
<a-assets>
<img id="myTexture" src="./pic/a7.jpg">
</a-assets>
<!-- 地面 -->
<a-plane rotation="-90 0 0" width="10" height="10" color="#7BC8A4"></a-plane>
<!-- カメラ -->
<a-entity camera look-controls wasd-controls position="0 1.6 0"></a-entity>
</a-scene>
</body>
</html>
使用変数
background | |
charset | |
color | |
height | |
id | |
position | |
radius | |
rotation | |
src | |
width |