Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 60cd26c

Browse files
a104437anavoidbert
andauthored
Add normals and texture coordinates to Cone (#78)
* Start to add normals and texture coordinates to cone * Change cone scene * Fix * Fix * Fix * Fix normals in code #1 Attempt one, that fixes top vertex but keeps specular "lighting bolt" issue. * Generate cones like Blender * Generate cone normals like the professor suggested * Regenerate cone models * Add cone and ice cream to report --------- Co-authored-by: voidbert <humbertogilgomes@protonmail.com> Co-authored-by: Humberto Gomes <50591320+voidbert@users.noreply.github.com>
1 parent bb5457a commit 60cd26c

11 files changed

Lines changed: 482 additions & 62 deletions

File tree

Lines changed: 72 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,86 @@
1+
# cone 1.000000 2.000000 4 3
12
v 0 0 0
23
v 1 0 0
34
v -4.37114e-08 0 1
45
v -1 0 -8.74228e-08
56
v 1.19249e-08 0 -1
7+
v 1 0 1.74846e-07
8+
v 1 0 0
9+
v -4.37114e-08 0 1
10+
v -1 0 -8.74228e-08
11+
v 1.19249e-08 0 -1
12+
v 1 0 1.74846e-07
613
v 0.666667 0.666667 0
714
v -2.91409e-08 0.666667 0.666667
815
v -0.666667 0.666667 -5.82818e-08
916
v 7.94992e-09 0.666667 -0.666667
17+
v 0.666667 0.666667 1.16564e-07
1018
v 0.333333 1.33333 0
1119
v -1.45705e-08 1.33333 0.333333
1220
v -0.333333 1.33333 -2.91409e-08
1321
v 3.97496e-09 1.33333 -0.333333
22+
v 0.333333 1.33333 5.82818e-08
23+
v 0 2 0
24+
v -0 2 0
25+
v -0 2 -0
26+
v 0 2 -0
1427
v 0 2 0
15-
f 1 2 3
16-
f 1 3 4
17-
f 1 4 5
18-
f 1 5 2
19-
f 2 6 7
20-
f 2 7 3
21-
f 3 7 8
22-
f 3 8 4
23-
f 4 8 9
24-
f 4 9 5
25-
f 5 9 6
26-
f 5 6 2
27-
f 6 10 11
28-
f 6 11 7
29-
f 7 11 12
30-
f 7 12 8
31-
f 8 12 13
32-
f 8 13 9
33-
f 9 13 10
34-
f 9 10 6
35-
f 10 14 11
36-
f 11 14 12
37-
f 12 14 13
38-
f 13 14 10
28+
vt 0.5 0.5
29+
vt 1 0.5
30+
vt 0.5 1
31+
vt 0 0.5
32+
vt 0.5 0
33+
vt 1 0.5
34+
vt 0 0
35+
vt 0.25 0
36+
vt 0.5 0
37+
vt 0.75 0
38+
vt 1 0
39+
vt 0 0.333333
40+
vt 0.25 0.333333
41+
vt 0.5 0.333333
42+
vt 0.75 0.333333
43+
vt 1 0.333333
44+
vt 0 0.666667
45+
vt 0.25 0.666667
46+
vt 0.5 0.666667
47+
vt 0.75 0.666667
48+
vt 1 0.666667
49+
vt 0 1
50+
vt 0.25 1
51+
vt 0.5 1
52+
vt 0.75 1
53+
vt 1 1
54+
vn 0 -1 0
55+
vn 0.894427 0.447214 0
56+
vn -3.90967e-08 0.447214 0.894427
57+
vn -0.894427 0.447214 -7.81933e-08
58+
vn 1.06659e-08 0.447214 -0.894427
59+
f 1/1/1 2/2/1 3/3/1
60+
f 1/1/1 3/3/1 4/4/1
61+
f 1/1/1 4/4/1 5/5/1
62+
f 1/1/1 5/5/1 6/6/1
63+
f 7/7/2 12/12/2 13/13/3
64+
f 7/7/2 13/13/3 8/8/3
65+
f 8/8/3 13/13/3 14/14/4
66+
f 8/8/3 14/14/4 9/9/4
67+
f 9/9/4 14/14/4 15/15/5
68+
f 9/9/4 15/15/5 10/10/5
69+
f 10/10/5 15/15/5 16/16/2
70+
f 10/10/5 16/16/2 11/11/2
71+
f 12/12/2 17/17/2 18/18/3
72+
f 12/12/2 18/18/3 13/13/3
73+
f 13/13/3 18/18/3 19/19/4
74+
f 13/13/3 19/19/4 14/14/4
75+
f 14/14/4 19/19/4 20/20/5
76+
f 14/14/4 20/20/5 15/15/5
77+
f 15/15/5 20/20/5 21/21/2
78+
f 15/15/5 21/21/2 16/16/2
79+
f 17/17/2 22/22/2 23/23/3
80+
f 17/17/2 23/23/3 18/18/3
81+
f 18/18/3 23/23/3 24/24/4
82+
f 18/18/3 24/24/4 19/19/4
83+
f 19/19/4 24/24/4 25/25/5
84+
f 19/19/4 25/25/5 20/20/5
85+
f 20/20/5 25/25/5 26/26/2
86+
f 20/20/5 26/26/2 21/21/2

reports/RelatorioFase4.tex

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,24 @@ \section{Resultados Obtidos}
405405
{\color{red} TODO - cada faz as suas prints, sem borda de janela, no tamanho especificado pela cena,
406406
com a UI escondida (U), Humberto escreve}
407407

408+
\begin{figure}[H]
409+
\centering
410+
\includegraphics[width=\textwidth]{res/phase4/Cone.png}
411+
\caption{Cone.}
412+
\end{figure}
413+
414+
\begin{figure}[H]
415+
\centering
416+
\includegraphics[width=\textwidth]{res/phase4/IceCream.png}
417+
\caption{Gelado.}
418+
\end{figure}
419+
420+
\begin{figure}[H]
421+
\centering
422+
\includegraphics[width=\textwidth]{res/phase4/IceCreamXYZ.png}
423+
\caption{Gelado.}
424+
\end{figure}
425+
408426
\section{Conclusão}
409427

410428
{\color{red} TODO - Humberto}

reports/res/phase4/Cone.png

54.4 KB
Loading

reports/res/phase4/IceCream.png

62.1 KB
Loading

reports/res/phase4/IceCreamXYZ.png

63.3 KB
Loading

0 commit comments

Comments
 (0)