SlidePub
Home
Categories
Login
Register
Home
General
Computação Gráfica: Transformadas Geométricas 2
Computação Gráfica: Transformadas Geométricas 2
elainececiliagatto
568 views
25 slides
Mar 10, 2018
Slide
1
of 25
Previous
Next
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
About This Presentation
Transformações geométricas em computação gráfica
Size:
348.99 KB
Language:
pt
Added:
Mar 10, 2018
Slides:
25 pages
Slide Content
Slide 1
TRANSFORMAÇÕES
GEOMÉTRICAS Parte 2
Prof.ª M.ª Elaine Cecília Gatto
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
1
Slide 2
CooordenadasHomogêneas e
Matrizes de Transformação
•Atranslaçãoétratadacomoumasomade
vetores,aescalaearotaçãosãotratadascomo
umamultiplicaçãodeumvetorporumamatriz.
•Paraquesepossacombinarfacilmenteessas
transformações,devemospodertratardomesmo
modotodasas3transformaçõesdeumaforma
consistente.
•AsoluçãoérepresentarospontosPdoespaço
atravésdetrêscoordenadas(coordenadas
homogêneas).
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
2
Slide 3
CooordenadasHomogêneas e
Matrizes de Transformação
•Afimdepossibilitarmúltiplastransformações
noponto,utilizandocomposiçãodematrizes,
temosquefazercomqueasoperaçõesdas
matrizesdetransformaçãocomospontos
sejamconsistentes–todasdevemser
multiplicativasemrelaçãoàmatrizponto.
•Paraqueasoperaçõespossamser
multiplicativas,estasdevemserconvertidasde
cartesianasparaHOMOGENEAS
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
3
Slide 4
CooordenadasHomogêneas e
Matrizes de Transformação
•Doispontosemcoordenadashomogêneas
(x, y, W) e (x’, y’, W’)
•RepresentamomesmopontoSEESOMENTESE
umémúltiplodooutroepelomenosumadas
coordenadashomogêneasdeveserdiferente
dezero
•Acoordenada(0,0,0)nãoépermitida
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
4
Slide 5
CooordenadasHomogêneas e
Matrizes de Transformação
•Emsuma,umponto2Dpassaatertrês
coordenadasaoinvésdeapenasduas.
•Istopermitequecadapontotenhamuitas
representações
•Wéacoordenadahomogênea.
•HOMEGEIZARsignificadividirporWporxe
y.
•SeWéacoordenadanãozero,podemos
dividir(x,y,W)porela,obtendoomesmo
ponto(x/W,y/W,1).
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
5
Slide 6
CooordenadasHomogêneas e
Matrizes de Transformação
•x/Wey/Wsãoascoordenadascartesianas
dopontohomogêneo
•EXEMPLO:P(2,3,5)podeserrepresentadopor
P(2/5,35/,1)
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
6
Slide 7
TRANSLAÇÃO
•TRANSLAÇÃO:P’=T*P
�′
�′
1
=
10??????�
01??????�
001
∙
�
�
1
•Fazendoamultiplicaçãodamatriztemos:
�′
�′
1
=
1∗�+0∗�+(??????�+1)
0∗�+1∗�+(??????�∗1)
0∗�+0∗�+(1∗1)
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
7
Equação 1
Slide 8
TRANSLAÇÃO
•Logo:
�′
�′
1
=
�+0+??????�
0+�+??????�
0+0+1
•Portanto:
�′
�′
1
=
�+??????�
�+??????�
1
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
8
Slide 9
TRANSLAÇÃO
•Istoé:
�
′
=�+??????�
y
′
=y+dy
w
′
=w
•Logo:
�′
�
=
�
�
+
�??????�
�
=
�
�
+??????�
�′
�
=
�
�
+
�??????�
�
=
�
�
+??????�
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
9
Slide 10
TRANSLAÇÃO
•Aequação1podeserrepresentadadaseguinte
forma:
??????
′
=�??????�,??????�∙??????
•Onde:
�(??????�,??????�)=
10??????�
01??????�
001
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
10
Slide 11
TRANSLAÇÃO
•ATRANSLAÇÃOéADITIVA:transladarumobjetoem
(dx1,dy1)unidades,edepoisem(dx2,dy2)
unidades.
•Paratal,multiplicaropontoPpelamatrizde
translaçãoT1edepoispelamatrizdetranslaçãoT2
�=??????�1+??????�2,??????�1+??????�2
??????
′
=�
1??????�1,??????�1∙??????
??????
′′
=�
2??????�2,??????�2∙??????′
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
11
(a)
(b)
(c)
Slide 12
TRANSLAÇÃO
•SubstituindoP’emP’’:
??????
′′
=�
2??????�2,??????�2∙??????
′
??????
′′
=�
2??????�2,??????�2∙�
1??????�1,??????�1∙??????
??????
′′
=�
2??????�2,??????�2∙�
1??????�1,??????�1∙??????
•Asmatrizescorrespondentessão:
�1??????�1,??????�1=
10??????�1
01??????�1
001
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
12
Slide 13
TRANSLAÇÃO
�2??????�2??????�2=
10??????�2
01??????�2
001
�1∗�2=
10??????�1
01??????�1
001
∙
10??????�2
01??????�2
001
�1∗�2=
1∗1+0∗0+(??????�1∗0) 1∗0+0∗1+(0∗0) 1∗??????�2+0∗??????�2+(??????�1∗1)
0∗1+1∗0+??????�1∗0 0∗0+1∗1+??????�1∗0 0∗??????�2+1∗??????�2+??????�1∗1
0∗1+0∗0+(1∗0) 0∗0+0∗1+1∗0 0∗??????�2+0∗??????�2+1∗1
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
13
Slide 14
TRANSLAÇÃO
�1∗�2=
1+0+(0) 0+0+(0) ??????�2+0+(??????�1)
0+0+0 0+1+0 0+??????�2+??????�1
1+0+(0) 0+0+0 0+0+1
??????�∗??????�=
��??????��+??????��
��??????��+??????��
���
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
14
Isto é o que chamados de TRANSFORMAÇÃO DE COMPOSIÇÃO!
Slide 15
ESCALA
�=
??????�00
0??????�0
001
??????
′
=�∗??????
�′
�′
1
=
??????�00
0??????�0
001
∗
�
�
1
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
15
Slide 16
ESCALA
�′
�′
1
=
??????�∗�+0∗�+(0∗1)
0∗�+??????�∗�+0∗1
0∗�+0∗�+1∗1
�′
�′
1
=
??????�∗�+0+(0)
0+??????�∗�+0
0+0+1
�′
�′
1
=
??????�∗�
??????�∗�
1
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
16
Slide 17
ESCALA
�
′
=??????�∗�
�
′
=??????�∗�
�
′
=�
FAZENDOUMACOMPOSIÇÃODEESCALA:
??????
′
=�??????�1,??????�1∙??????
??????′
′
=�??????�2,??????�2∙??????
′
??????′
′
=�??????�2,??????�2∙[�??????�1,??????�1∙??????]
′
??????′
′
=[�(??????�2,??????�2)∙�(??????�1,??????�1)]∙??????
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
17
Slide 18
ESCALA
EMTERMOSMATRICIAIS:
??????�200
0??????�20
0 01
∙
??????�100
0??????�10
0 01
=
[??????�2∗??????�1+0∗0+0∗0][??????�2+0+0∗??????�1+0∗0][??????�2∗0+0∗0+0∗1]
[0∗??????�1+??????�2∗0+0∗0][0∗0+??????�2∗??????�1+0∗0][0∗0+??????�2∗0+0∗1]
[0∗??????�1+0∗0+1∗0][0∗0+0∗??????�1+1∗0][1∗0+1∗0+1∗1]
=
[??????�2∗??????�1+0+0] [0+0+0] [0+0+0]
[0+0+0] [0+??????�2∗??????�1+0][0+0+0]
[0+0+0] [0+0+0] [0+0+1]
=
??????��∗??????����
�??????��∗??????���
���
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
18
Slide 19
ROTAÇÃO
??????
′
=�.??????
�′
�′
1
=
cos??????−sin??????0
sin??????cos??????0
0 0 1
∙
�
�
1
=
�′
�′
1
=
cos??????∗�+−sin??????∗�+0∗1
sin??????∗�+cos??????∗�+0∗1
0∗�+0∗�+1∗1
=
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
19
Slide 20
ROTAÇÃO
�′
�′
1
=
cos??????∗�+−sin??????∗�+0
sin??????∗�+cos??????∗�+0
0+0+1
=
�′
�′
1
=
cos??????∗�−sin??????∗�
sin??????∗�+cos??????∗�
1
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
20
Slide 21
ROTAÇÃO
PORTANTO:
�
′
=cos??????�−sin??????�
�
′
=sin??????�+cos??????�
�
′
=�
�
′
=cos??????
�
�
−sin??????
�
�
�
′
=sin??????
�
�
+cos??????
�
�
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
21
Slide 22
CISALHAMENTO
??????
′
=�??????∗??????
�′
�′
1
=
1??????ℎ�0
??????ℎ�10
0 01
∗
�
�
1
=
�′
�′
1
=
1∗�+??????ℎ�∗�+0∗1
??????ℎ�∗�+1∗�+0∗1
0∗�+0∗�+1∗1
=
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
22
Slide 23
CISALHAMENTO
�′
�′
1
=
�+??????ℎ�+0
??????ℎ�+�+0
0+0+1
=
�′
�′
1
=
�+??????ℎ�
??????ℎ�+�
1
�
′
=�+??????ℎ∗�
�
′
=??????ℎ∗�+�
��
′
=�
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
23
Slide 24
ESPELHAMENTO
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
24
Slide 25
OBSERVAÇÕES
•Umasequenciaarbitráriaderotações,
translaçõeseescalas,sãochamadasde
transformaçõesafins.
•AsTransformaçõesAfinspreservam
paralelismodelinhas,masnãocomprimentose
ângulos.
•MultiplicaçãodeMatrizesnãoécomutativa
•Ordemdasoperaçõesinfluenciadiretamente
•Rotaçãoseguidadetranslaçãoémuito
diferentedetranslaçãoseguidaderotação.
10/03/2018
Prof.ª M.ª Elaine Cecília Gatto
25
Tags
computacao grafica
transformadas geométricas
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
568
Slides
25
Age
2832 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
36 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
40 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
35 views
14
Fertility awareness methods for women in the society
Isaiah47
32 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
31 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
34 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-25)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better