Alpha to coverage

Source: Internet
Author: User
Alpha to coverage

In the game, a polygonal model with translucent information textures is often used to simulate complex objects, such as grass, leaves, barbed wire, etc. If a real model is used, a grass with uneven edges may consume hundreds of polygons, but with a transparent texture, it can be solved with just two or three polygons.

However, when using such a texture with translucent information, unsightly jagged edges often appear on the boundary lines of its opaque and transparent parts. This problem can be solved by using the semitransparent blending technique, but it is necessary to draw all such objects in the scene in the order from far to near to ensure that their occlusion is correct, which puts a lot of pressure on the CPU and is undesirable. In previous versions of DirectX, Alpha testing and blending was simply a nightmare for graphic programmers.

In DirectX 10, a new technique is used called the alpha to coverage. Using this technique, texture pixels at the transparent and opaque junctions are sampled in a multipole manner (multi-sample) to achieve anti-aliasing effects. This solves this problem simply and effectively without introducing a large performance overhead. Outdoor scenes of the game will greatly benefit from this technology, leaves, barbed wire, grass edge will be more soft, smooth.

Related information:

Http://www.zwqxin.com/archives/opengl/talk-about-alpha-to-coverage.html

http://www.zhihu.com/question/25822656

http://www.zhihu.com/question/35725024

Alpha to coverage

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.