C + + Small Project: Directx11 graphics Program (ix): summary

Source: Internet
Author: User

I don't know much about directx11 in the whole article, and I'm not sure how to introduce it, and I should say that for DirectX, it has its own parts, such as device, device context (Devicecontext), vertex cache, index cache, and so on. There are also parts of graphics such as the World matrix, observation matrix, projection matrix, triangle rendering, illumination, and blending. It is very difficult to describe the features, parameters, and object one by one of the API that are involved here. To the graph of the world matrix, observation matrix, projection matrix reasoning, why choose to render triangles instead of rendering quadrilateral Pentagon these one by one plainly, more difficult (this content is my own according to "3d Game Master Programming Skills" and then the software implementation of a 3d renderer to understand). In addition, I also have a lot of things I do not understand, such as special effects files involved in the high-level coloring language of the writing, I feel very difficult. Therefore, if this article for directx11 introduction is not enough, also please many forgive me. In fact, there are a lot of information on the introduction of DirectX and about the 3d space graphics conversion, if you feel that there are questions can be completely to see their article.

But the C + + architecture of this article I think is very good, although not the use of many advanced features of C + +, but it is obvious to see that the use of C + + to make the whole program is much easier to write, here is a good embodiment of the benefits of object-oriented programming. It makes us feel as if there really is a world space in which there are various models and particles, and a camera (or our eyes), I want to add a model to a new modelclass, and want to add a bunch of particles to the new one particlesysclass. But I still haven't entered the hall of C + + programming, I think to really learn C + + programming, it must have a very good architectural view. Peel and dismantle a requirement, and then reassemble it. If you want to use the advanced features of C + +, it is more necessary to have a very good architectural view, the function of data common with template implementation, in very similar to the implementation of different things with inheritance and derivation, in the need for flexible use of memory space where the use of containers. When can I use these details features of C + +? Of course, when there is a need, when the demand is right. So, do a lot of programming and work hard.

Finally attached, the particle system is not very good because many things are not beautiful.

Set the example size to 0.5 (uglier, alpha channel not playing)

Do not draw the particles and change the camera angle. Here are two pictures, because the model is a picture, if you modify the model file, the rendering effect will be different.

C + + Small Project: Directx11 graphics Program (ix): summary

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.