When drawing a black lineon a white background, the color of a partially covered pixel would be gray, with the shade ofgray depending on the fraction of the pixel that is covered by the line. The idea is that when a pixel is only partially covered by a shape, the color of the pixel should bea mixture of the color of the shape and the color of the background. An aliased high resolution texture image (left) and the same texture after mip-mapping (right).Īntialiasing is a term for techniques that are designed to mitigate the effects of aliasing.Then it is up to the renderer to select the correct mipmap to reduce aliasing artifacts at the scale of the rendered texture. What we really want is a high resolution texture for nearby viewing, and down-sampled textures for distant viewing.Ī technique called mip-mapping gives us this by pre-rendering a texture image at several different scales.įor example, a 256 × 256 image might be down-sampled to 128 × 128, 64 × 64, 32 × 32, 16 × 16, and so on. A problem with high resolution texturing is aliasing, which occurs when adjacent pixels in a rendered image are sampled from pixels that are far apart in a texture image.īy down-sampling- reducing the size of a texture-aliasing can be reduced for far away or small objects, but then textured objects look blurry when close to the viewer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |