Exercise: Vertex Buffers & Textures

 

NOTE: Create a Directory "GraphicsExercises" for all your 3DGraphics Lab work.

Part A

  1. Create an 8x8 chequered grid on the floor.
  2. Light the scene.
  3. Texture the grid with the following wood textures, such that we have alternating dark and light squares, like a chess board.

  

Part B

  1. Create a vertex buffer & index buffer to store vertices to render an 6 sided jar.
  2. Light the scene and rotate the tube.
  3. Wrap the following texture around the tube

 

Part C

  1. Programatically fill a vertex buffer with the coordinates for an 'n' sided cylinder.
  2. Wrap the soup can image around the cylinder
  3. How many side must the cylinder have before it no longer looks like a polyhedron?

Part D

  1. Place a pyramid of 10 soup cans on a checker floor