• Home
  • Textbooks
  • Computer Graphics with Open GL
  • Texturing and Surface-Detail Methods

Computer Graphics with Open GL

Donald Hearn. M. Pauline. Baker, Warren R.Carithers

Chapter 16

Texturing and Surface-Detail Methods - all with Video Answers

Educators


Chapter Questions

03:37

Problem 1

Write a program to map a given texture pattern onto each face of a specified cube.

Grant Castaneda
Grant Castaneda
Numerade Educator
02:06

Problem 2

Modify the program in the preceding exercise so that the pattern is mapped to each face of a tetrahedron.

Selena Armstrong
Selena Armstrong
Numerade Educator
02:58

Problem 3

Modify the program in the preceding exercise so that the pattern is mapped to a specified section of a spherical surface.

Chris Trentman
Chris Trentman
Numerade Educator
22:52

Problem 4

Write a program to map a given one-dimensional texture pattern onto a specified face of a cube as a diagonal stripe.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
06:26

Problem 5

Modify the program in the preceding example so that the one-dimensional texture is mapped to the surface of a sphere, given two points on the spherical surface.

Chris Trentman
Chris Trentman
Numerade Educator
02:58

Problem 6

Given a spherical surface, write a bump-mapping procedure to simulate the bumpy surface of an orange.

Chris Trentman
Chris Trentman
Numerade Educator
02:08

Problem 7

Write a bump-mapping routine to produce surfacenormal variations for any specified bump function.

Emily Min
Emily Min
Numerade Educator
03:54

Problem 8

Write a complete OpenGL program to display a set of diagonal lines using various one-dimensional texture patterns.

Foster Wisusik
Foster Wisusik
Numerade Educator
22:52

Problem 9

Write a program using a two-dimensional OpenGL texture pattern to display a red-and-black checkerboard on a gray background.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
22:52

Problem 10

Modify the program in the preceding exercise so that the checkerboard has blue and yellow squares and the background is black.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
22:52

Problem 11

Write a program using a two-dimensional OpenGL texture pattern to display a red rectangle with a set of evenly spaced horizontal blue stripes. Set the background color to white.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
06:26

Problem 12

Modify the program in the preceding exercise to map the texture pattern onto the surface of a sphere.

Chris Trentman
Chris Trentman
Numerade Educator
01:34

Problem 13

Modify the program in the preceding exercise to map the texture pattern onto the surface of the GLUT teapot.

ag
Alan Ghazarians
Numerade Educator