Download presentation
Presentation is loading. Please wait.
Published byKatherine Hunter Modified over 9 years ago
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
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?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.