Implementasi A-FRAME
Dosen :
Institute of Business
(IOB)
Program Master Teknik Informatik
2022
1. Visual Studio Code
<html>
<head>
<title>Tugas 2_Alexandre A-FRAME</title>
<script
src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
//Sphere geometry with source texture grasslight-big”
<a-sphere src="https://raw.githubusercontent.com/aframevr/sample-
assets/master/assets/images/terrain/grasslight-big.jpg" radius="1.5"
segments-height="85">
//Animation for the object Sphere
<a-animation attribute="rotation"
dur="10000"
to="0 360 0"
ease="linear"
repeat="indefinite"></a-animation>
</a-sphere>
<a-camera position='0 0 3' user-height='0'></a-camera>
<a-sky color='lightyellow'></a-sky>
</a-scene>
</body>
</html>
d. Untuk melihat hasil, klik kanan di file “index.html”, lalu pilih “open with
live server”. Lihat hasil di gambar berikut ini.