Книга: DirectX 8 Programming Tutorial
How to make a cube
How to make a cube
Below are two diagrams showing how our cube is going to be made up. Here we have used three triangle strips, one for the top of the cube, one for the sides and one for the bottom. The diagram below shows the vertices and polygons for each triangle strip (Fig 3.3). The vertices are numbered from 0 to 17, this is the order that we must specify our vertices in the vertex buffer. Under that is a diagram that shows our cube (Fig 3.4). Notice where each of the vertices are in relation to each other. Also, look at how the vertices are always in a clockwise direction (except the bottom). This is because we have enabled Backface Culling (see above).
Fig 3.3
Fig 3.4
Оглавление статьи/книги
Похожие страницы
- Backface Culling
- How to read
- Chapter 9. How a rule is built
- How it was written
- How to plan an IP filter
- chown
- How to place proxies
- How to use this License for your documents
- 2. How to Apply These Terms to Your New Programs
- 4.3.3. Makefile Targets
- Scaling makes your object darker?
- 1.3. Автоматизация процесса с помощью GNU-утилиты make