13.07.2015 Views

Manual de Apoio 2010

Manual de Apoio 2010

Manual de Apoio 2010

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 Mapeamento <strong>de</strong> Texturas: Conceitos Avançados 909.1 Cor Secundária . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909.2 Anisotropic Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909.3 Compressão <strong>de</strong> Texturas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929.4 Geração <strong>de</strong> Coor<strong>de</strong>nadas <strong>de</strong> Texturas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939.4.1 Oject Linear Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939.4.2 Eye Linear Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949.4.3 Sphere Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959.5 Cube Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959.5.1 Carregamento do Cube Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959.5.2 Utilização dos Cube Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9810 Curvas e Superfícies 10010.1 Superfícies Incorporadas no OpenGL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10010.1.1 Configuração <strong>de</strong> Superfícies Quádricas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10110.1.2 Desenho <strong>de</strong> Superfícies Quádricas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10210.2 Curvas <strong>de</strong> Bézier e Superfícies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10410.2.1 Representação Paramétrica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10510.2.2 Pontos <strong>de</strong> Control (control points) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10510.2.3 Continuida<strong>de</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10610.2.4 Evaluators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10610.2.5 Superfícies 3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10810.2.6 Luzes e Vectores Normais . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10911 Conceitos Avançados 11111.1 Display Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11111.1.1 Prós e Contras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112A Exemplos 113A.1 Exemplo Simples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113B Tabelas 114B.1 Formato <strong>de</strong> Imagem (pixmap) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114B.2 Tipo <strong>de</strong> Dados (pixmap) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115C Código Fonte 116C.1 Example0.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116C.2 Imaging.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118C.3 Pyramid.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122C.4 TexGen.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126C.5 CubeMap.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131C.6 SnowMan.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136C.7 Bezier2D.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139C.8 Bezier3D.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141C.9 BezierLighting.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1443

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!