-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.html
More file actions
99 lines (89 loc) · 2.3 KB
/
3.html
File metadata and controls
99 lines (89 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!--
METAVERSO QUICK START, 2a Edição
Material Didático
Leonardo Azzi Martins, José Rodolfo Masiero e Plínio Ricardo Gonçalves
Abril de 2022
DBServer Assessoria de Sistemas de Informação LTDA
EXEMPLO 3: TEXTO
-->
<!DOCTYPE html>
<html>
<head>
<title>Inserindo Texto - A-Frame</title>
<!-- IMPORTA O A-FRAME -->
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
</head>
<body>
<!-- CONJUNTO DA CENA -->
<a-scene>
<!-- DEFININDO O GERENCIADOR DE ARQUIVOS "ASSETS" PARA ADCIONAR IMAGENS/VIDEOS/OBJETOS 3D -->
<a-assets>
<!-- IMPORTA A PRIMEIRA IMAGEM -->
<img
id="imagem1"
src="https://cdn.glitch.global/a8822043-5948-448f-b273-e07c6ce381ab/metaverso-quick-start.jpg?v=1649951355185"
/>
<!-- IMPORTA A SEGUNDA IMAGEM -->
<img
id="imagem2"
src="https://cdn.glitch.global/a8822043-5948-448f-b273-e07c6ce381ab/dblab.png?v=1649936687377"
/>
</a-assets>
<!-- CÂMERA -->
<a-camera position="0 1.2 0">
<a-cursor></a-cursor>
</a-camera>
<!-- CÉU -->
<a-sky color="#ECECEC" hide-on-enter-ar></a-sky>
<!-- CHÃO = PLANO -->
<a-plane
position="0 0 -4"
rotation="-90 0 0"
width="4"
height="4"
color="#7BC8A4"
></a-plane>
<!-- CUBO -->
<a-box
position="-1 0.5 -3"
rotation="0 45 0"
color="blue"
></a-box>
<!-- ESFERA -->
<a-sphere
position="0 1.25 -5"
radius="1.25"
color="#EF2D5E"
></a-sphere>
<!-- CILINDRO -->
<a-cylinder
position="1 0.75 -3"
radius="0.5"
height="1.5"
color="purple"
></a-cylinder>
<a-entity position="0 1 0">
<!-- ADICIONANDO IMAGENS A CENA -->
<a-image
src="#imagem1"
position="4 0.5 -3"
height="2"
width="2"
></a-image>
<a-image
src="#imagem2"
position="4 2 -3"
height="1"
width="2"
></a-image>
<!-- ADICIONANDO O TEXTO -->
<a-text
value="Metaverso Quick Start"
position="4 -1 -3"
color="blue"
align="center"
></a-text>
</a-entity>
</a-scene>
</body>
</html>