Practical sessions
As in the previous chapters, here are some additional suggestions on what to do after you finish reading this chapter:
- Add more vertices to the mockup model object, and create a fully textured, six-faced cube. Check for the face orientation of the single triangles, as they may be in the wrong direction and create holes in the cube. Also, watch out for the proper orientation of the texture (i.e., add some text to the texture and try to have it readable on all six faces). This will add a lot of duplicated code, though, but in Part 3 of the book, we will load real models from files.
- Duplicate the model after creating a cube and try to transform and concatenate the vertex data to draw all models at once. You could create three or four cubes, translate them to some place in 3D space, and rotate them around their center. Check out the differences between local rotation and translation, and global rotation and translation, and observe the results if you change...