## Chapter 5 DirectX lighting, materials and textures

In the computer three-dimensional world, if you want to simulate a real object and make its surface look more realistic, you need to use the "texture mapping" technology. In short, it is a way to map 2D images onto 3D objects. Generally speaking, texture is one or more 2D images representing the surface details of an object, also know ...

Posted by aftabn10 on Fri, 22 Oct 2021 01:47:57 -0700

## Chapter 5 DirectX lighting, materials and textures

Using lighting in 3D scene is very simple. We don't need to assign color values to each vertex of the model object. As long as we use some kind of lighting and set the material of the model object, Direct3D will calculate the color value of each vertex according to the lighting model algorithm to make the model produce color. As we have roughly ...

Posted by marlonbtx on Fri, 22 Oct 2021 01:23:30 -0700

## Chapter III DirectX graphics rendering

In the computer 3D world, all object models are approximated and represented by polygon meshes, which can be triangles or quadrangles. Polygon mesh is the basic unit of object model. From the perspective of storage, the essence of 3D model is realized through vertices. In Direct3D, Vertex Buffer is used to store vertex data. Vertex data can be ...

Posted by rick007 on Thu, 21 Oct 2021 09:20:11 -0700

## Chapter V basic operations

C + + language uses operators and expressions to manipulate data. Operators are symbols used to represent various operations in programs. The high-level language uses a method similar to mathematical calculation to represent various operations, such as y = x + 10; Where y and x represent variables and = and + represent operators. An expression ...

Posted by northcave on Mon, 20 Sep 2021 07:40:49 -0700

## Chapter IV construction data type

The basic data type can handle some simple data alone. For some complex data, it needs to be described with structural data types. Construction data type is a data type defined by users according to certain syntax rules. The constructed data types supported by C + + language include array, pointer, reference, class, structure, union, enumeratio ...

Posted by ozman26 on Sun, 19 Sep 2021 16:49:24 -0700