Presentation is loading. Please wait.

Presentation is loading. Please wait.

OpenGL Graphics Textures. Quiz You didn't see that coming!

Similar presentations


Presentation on theme: "OpenGL Graphics Textures. Quiz You didn't see that coming!"— Presentation transcript:

1 OpenGL Graphics Textures

2 Quiz You didn't see that coming!

3 1. What is OpenGL?

4 2. What is a vertex?

5 3. What are the three steps to render with depth testing?

6 4. What is the difference between an orthographic and a perspective projection matrix?

7 5. What are the three components of the fixed functionality lighting model?

8 Textures

9 What is a Texture? Image applied to geometry.tga,.jpg,.png files 1, 2 or 3 dimensional!

10 Texture Coordinates Vertex attribute Values between 0 and 1 1, 2 or 3-dimensional OpenGL will interpolate between the vertices

11 TextureTriangle

12 Sampling Textures Exceedingly rare that the texture will fit the geometry exactly We need a way of mapping to the best representative texel Nearest-neighbour filtering Bilinear filtering

13 Mipmaps Used to improve the sampling quality

14

15 Mipmaps Can specify mipmap level when loading a texture into OpenGL glGenerateMipmap() Trilinear filtering

16 OpenGL Texture Objects Stores a texture in GPU memory and holds texture properties glGenTextures() glBindTexture() glTexImage2D() glTexParamf() glDeleteTextures()

17 Demo

18 Questions?

19


Download ppt "OpenGL Graphics Textures. Quiz You didn't see that coming!"

Similar presentations


Ads by Google