【Game Reverse】D3D HOOK realizes perspective explanation

achieved goals:

At present, most games realize 3D effects through Direct3D. By hooking up the corresponding functions, 3D perspective and screen hanging text effects can be realized. And perspective, blocking specific effects, and setting transparency play a huge role in many games (especially FPS)!

Implementation ideas:

[D3D]

The functions of DirectX are provided in the form of COM components. In Direct3D, programming is mainly achieved by taking the following actions:

Call the appropriate function to get the interface pointer;

Call the method (member function) of the interface to complete the required function;

After using the interface, call the Release method to "release". Note that the order of release should be opposite to the order in which they were acquired.

The implementation process of D3D:

It can be roughly divided into three parts: design, rendering and display. After designing the vertex, texture, material and other information of the object, and converting the coordinates into screen coordinates, call the rendering method, calculate the brightness according to the coordinate change, material texture, etc., perform back elimination, cropping, projection and viewport calculation, and finally in the backup The graphics drawn in the buffer are exchanged to the current buffer.

design phase:

Here are some concepts to facilitate your understanding

Primitive

In d3d programming, all graphics are composed of primitives, for example:
insert image description here

Guess you like

Origin blog.csdn.net/douluo998/article/details/131505147