Share to: share facebook share twitter share wa share telegram print page

Mipmap

In computer graphics, mipmaps (also MIP maps) or pyramids[1][2][3] are pre-calculated, optimized sequences of images, each of which is a progressively lower resolution representation of the previous. The height and width of each image, or level, in the mipmap is a factor of two smaller than the previous level. Mipmaps do not have to be square. They are intended to increase rendering speed and reduce aliasing artifacts. A high-resolution mipmap image is used for high-density samples, such as for objects close to the camera; lower-resolution images are used as the object appears farther away. This is a more efficient way of downscaling a texture than sampling all texels in the original texture that would contribute to a screen pixel; it is faster to take a constant number of samples from the appropriately downfiltered textures. Mipmaps are widely used in 3D computer games, flight simulators, other 3D imaging systems for texture filtering, and 2D and 3D GIS software. Their use is known as mipmapping. The letters MIP in the name are an acronym of the Latin phrase multum in parvo, meaning "much in little".[4]

Since mipmaps, by definition, are pre-allocated, additional storage space is required to take advantage of them. They are also related to wavelet compression. Mipmap textures are used in 3D scenes to decrease the time required to render a scene. They also improve image quality by reducing aliasing and Moiré patterns that occur at large viewing distances,[5] at the cost of 33% more memory per texture.

Overview

Image showing how mipmaps reduce aliasing at large distances.
Image showing how mipmaps reduce aliasing at large distances (Aliasing causes a Moiré pattern in the left image.)

Mipmaps are used for:

  • Level of detail (LOD)[6][7]
  • Improving image quality. Rendering from large textures where only small, discontiguous subsets of texels are used can easily produce Moiré patterns;
  • Speeding up rendering times, either by reducing the number of texels sampled to render each pixel, or increasing the memory locality of the samples taken;
  • Reducing stress on the GPU or CPU.
  • Water surface reflections[8]

Origin

Mipmapping was invented by Lance Williams in 1983 and is described in his paper Pyramidal parametrics.[4] From the abstract: "This paper advances a 'pyramidal parametric' prefiltering and sampling geometry which minimizes aliasing effects and assures continuity within and between target images." The referenced pyramid can be imagined as the set of mipmaps stacked in front of each other.

The first patent issued on Mipmap and texture generation was in 1983 by Johnson Yan, Nicholas Szabo, and Lish-Yann Chen of Link Flight Simulation (Singer). Using their approach, texture could be generated and superimposed on surfaces (curvilinear and planar) of any orientation and could be done in real-time. Texture patterns could be modeled suggestive of the real world material they were intended to represent in a continuous way and free of aliasing, ultimately providing level of detail and gradual (imperceptible) detail level transitions. Texture generating became repeatable and coherent from frame to frame and remained in correct perspective and appropriate occultation. Because the application of real time texturing was applied to early three dimensional flight simulator CGI systems, and texture being a prerequsite for realistic graphics, this patent became widely cited and many of these techniques were later applied in graphics computing and gaming as applications expanded over the years.[9]

The origin of the term mipmap is an initialism of the Latin phrase multum in parvo ("much in a small space"), and map, modeled on bitmap.[4] The term pyramids is still commonly used in a GIS context. In GIS software, pyramids are primarily used for speeding up rendering times.

Mechanism

Example mipmap image storage: the principal image on the left is accompanied by filtered copies of reduced size.

Each bitmap image of the mipmap set is a downsized duplicate of the main texture, but at a certain reduced level of detail. Although the main texture would still be used when the view is sufficient to render it in full detail, the renderer will switch to a suitable mipmap image (or in fact, interpolate between the two nearest, if trilinear filtering is activated) when the texture is viewed from a distance or at a small size. Rendering speed increases since the number of texture pixels (texels) being processed per display pixel can be much lower for similar results with the simpler mipmap textures. If using a limited number of texture samples per display pixel (as is the case with bilinear filtering) then artifacts are reduced since the mipmap images are effectively already anti-aliased. Scaling down and up is made more efficient with mipmaps as well.

If the texture has a basic size of 256 by 256 pixels, then the associated mipmap set may contain a series of 8 images, each one-fourth the total area of the previous one: 128×128 pixels, 64×64, 32×32, 16×16, 8×8, 4×4, 2×2, 1×1 (a single pixel). If, for example, a scene is rendering this texture in a space of 40×40 pixels, then either a scaled-up version of the 32×32 (without trilinear interpolation) or an interpolation of the 64×64 and the 32×32 mipmaps (with trilinear interpolation) would be used. The simplest way to generate these textures is by successive averaging; however, more sophisticated algorithms (perhaps based on signal processing and Fourier transforms) can also be used.

Showing each color channel of each level of an RGB mipmap as a separate plane (left) demonstrates that the whole mipmap forms a square of 4 times the area. As each plane requires 13 the storage, mipmaps therefore require 43 the memory; i.e., 13 ≈ 33% more.

The increase in storage space required for all of these mipmaps is a third of the original texture, because the sum of the areas 1/4 + 1/16 + 1/64 + 1/256 + ⋯ converges to 1/3. In the case of an RGB image with three channels stored as separate planes, the total mipmap can be visualized as fitting neatly into a square area twice as large as the dimensions of the original image on each side (twice as large on each side is four times the original area - one plane of the original size for each of red, green and blue makes three times the original area, and then since the smaller textures take 1/3 of the original, 1/3 of three is one, so they will take the same total space as just one of the original red, green, or blue planes). This is the inspiration for the tag multum in parvo.

Anisotropic filtering

When a texture is viewed at a steep angle, the filtering should not be uniform in each direction (it should be anisotropic rather than isotropic), and a compromise resolution is required. If a higher resolution is used, the cache coherence goes down, and the aliasing is increased in one direction, but the image tends to be clearer. If a lower resolution is used, the cache coherence is improved, but the image is overly blurry. This would be a tradeoff of MIP level of detail (LOD) for aliasing vs blurriness. However anisotropic filtering attempts to resolve this trade-off by sampling a non isotropic texture footprint for each pixel rather than merely adjusting the MIP LOD. This non isotropic texture sampling requires either a more sophisticated storage scheme or a summation of more texture fetches at higher frequencies.[10]

Summed-area tables

Summed-area tables can conserve memory and provide more resolutions. However, they again hurt cache coherence, and need wider types to store the partial sums, which are larger than the base texture's word size. Thus, modern graphics hardware does not support them.

See also

References

  1. ^ "Texture Filtering with Mipmaps (Direct3D 9)". microsoft.com. Microsoft.
  2. ^ "Texture Filtering with Mipmaps". microsoft.com. Microsoft. April 8, 2010.
  3. ^ "Mipmap Texturing" (PDF). Retrieved December 10, 2019.
  4. ^ a b c Williams, Lance. "Pyramidal Parametrics" (PDF). Archived from the original (PDF) on 2014-04-14. Retrieved 2012-09-25.
  5. ^ "Anti-Aliasing Problem and Mipmapping". textureingraphics. 2011-12-13. Retrieved 2019-02-21.
  6. ^ "Multiple levels of Detail" (PDF).
  7. ^ "D3D11_SAMPLER_DESC structure". microsoft.com. Microsoft.
  8. ^ "Deconstructing the water effect in Super Mario Sunshine". Retrieved 25 February 2023.
  9. ^ Johnson K. Yan, Nicholas S. Szabo, Lish-Yann Chen. "Texture Generation" (PDF).{{cite web}}: CS1 maint: multiple names: authors list (link)
  10. ^ Olano, Marc; Mukherjee, Shrijeet]]; Dorbie, Angus. "Vertex-based Anisotropic Texturing" (PDF).

Read other articles:

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (مارس 2019) هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (سبتمبر 2017) واساب   بداية 2013  النوع بوب كوري  شر

lon_sec = lat_dir = region = lon_dir = lat_sec = lat_min = скасований = CoordScale = lon_min = Маріїнська міська лікарня Будівля, в якій розмістився перший пологовий притулок Будівля, в якій розмістився перший пологовий притулок 47°14′15″ пн. ш. 39°45′18″ сх. д. / 47.23760000002777559° пн. ш. 39.755200000...

US Air Force base near Lancaster, California, United States (founded 1935) Edwards Air Force BaseNear Lancaster, California in the United StatesAn F-35 Lightning II of the 461st Flight Test Squadron taking off at Edwards Air Force BaseEdwards AFBShow map of CaliforniaEdwards AFBShow map of the United StatesCoordinates34°54′20″N 117°53′01″W / 34.90556°N 117.88361°W / 34.90556; -117.88361TypeUS Air Force BaseSite informationOwnerDepartment of DefenseOper...

Species of bird White-winged grosbeak Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Aves Order: Passeriformes Family: Fringillidae Subfamily: Carduelinae Genus: Mycerobas Species: M. carnipes Binomial name Mycerobas carnipes(Hodgson, 1836) White winged gros beak near Phortse Tanga at Sagarmatha National Park area. The white-winged grosbeak (Mycerobas carnipes) is a species of finch in the...

У Вікіпедії є статті про інші значення цього терміна: Корчин. село Корчин Країна  Україна Область Львівська область Район Стрийський район Громада Сколівська міська громада Основні дані Засноване 1446 Населення 1281 Площа 1,96 км² Густота населення 653,57 осіб/км² Пошто...

メクラネズミ科 シロハラヒメメクラネズミ (Spalax leucodon) 分類 ドメイン : 真核生物 Eukaryota 界 : 動物界 Animalia 門 : 脊索動物門 Chordata 亜門 : 脊椎動物亜門 Vertebrata 綱 : 哺乳綱 Mammalia 目 : 齧歯目 Rodentia 亜目 : ネズミ形亜目 Myomorpha 科 : メクラネズミ科 SpalacidaeGray[1], 1821 和名 メクラネズミ科[2] メクラネズミ科(Spalacidae)は齧歯目の科。地中での生活に適...

Dutch chess player & mathematician Max EuweEuwe in 1963Full nameMachgielis EuweCountryNetherlandsBorn(1901-05-20)May 20, 1901Amsterdam, NetherlandsDiedNovember 26, 1981(1981-11-26) (aged 80)Amsterdam, NetherlandsTitleGrandmaster (1950)World Champion1935–37Peak rating2530 (May 1974) Machgielis Max Euwe (Dutch: [ˈøːʋə];[1] May 20, 1901 – November 26, 1981) was a Dutch chess player, mathematician, author, and chess administrator. He was the fifth ...

Warner Bros. media franchise based on Lego toys The Lego MovieLogo to the first film.Created by Dan HagemanKevin Hageman Phil LordChristopher Miller Based on:Lego Construction ToysOriginal workThe Lego Movie (2014)Owner The Lego Group Warner Bros. (2014–2020) Universal Pictures (2020–present) Years2014–presentFilms and televisionFilm(s) The Lego Movie (2014) The Lego Batman Movie (2017) The Lego Ninjago Movie (2017) The Lego Movie 2: The Second Part (2019) Television seriesUnikitty! (20...

Christmas carol Hark! The Herald Angels SingWorship of the Shepherds, 1539, by BronzinoGenreChristmas carolWritten1739TextCharles Wesley, adapted by George Whitefield and othersBased onLuke 2:14Meter7.7.7.7 D with refrainMelodyVaterland, in deinen Gauen from Festgesang by Felix Mendelssohn, adapted by William H. CummingsAudio sampleHark! The Herald Angels Sing as performed by the United States Army Band Chorusfilehelp Hark! The Herald Angels Sing is an English Christmas carol that fir...

SMA Negeri 3 KediriInformasiJurusan atau peminatanIPA dan IPSRentang kelasX, X Akselerasi, XI IPA, XI IPS, XII IPA, XII IPS, XII AkselerasiKurikulumKurikulum Tingkat Satuan PendidikanAlamatLokasiJl. Mauni 88, Kediri, Jawa TimurMoto SMA Negeri (SMAN) 3 Kediri, merupakan salah satu Sekolah Menengah Atas Negeri yang ada di Provinsi Jawa Timur, Indonesia. Sama dengan SMA pada umumnya di Indonesia masa pendidikan sekolah di SMAN 3 Kediri ditempuh dalam waktu tiga tahun pelajaran, mulai dari Kelas ...

Межгосударственный совет по стандартизации, метрологии и сертификации Міждержавна рада зі стандартизації, метрології та сертифікаціїТип організаціяЗасновано 1992Країна  БілорусьШтаб-квартира  Білорусь, Мінськ Вебсайт: easc.by Міждержавна рада зі стандартизації, м...

Species of bat Mount Popa pipistrelle Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Chiroptera Family: Vespertilionidae Genus: Pipistrellus Species: P. paterculus Binomial name Pipistrellus paterculusThomas, 1915 The Mount Popa pipistrelle (Pipistrellus paterculus) is a species of vesper bat. It is found in China, India, Myanmar, Thailand, and Vietnam. References ^ Bates, ...

Creed discographyCreed in 2002Studio albums4Compilation albums2Video albums1Music videos15EPs1Singles18 American post-grunge band Creed has released four studio albums, two compilation albums, one extended play (EP), eighteen singles, one video album, and fifteen music videos. Formed in Tallahassee, Florida in 1994,[1] Creed consists of vocalist Scott Stapp, guitarist and vocalist Mark Tremonti, bassist Brian Marshall, and drummer Scott Phillips.[2] Signed to Wind-up Records, ...

Australian wheelchair basketball player Jannik BlairBlair warming up before a game in SydneyPersonal informationNationality AustraliaBorn (1992-02-03) 3 February 1992 (age 31)Horsham, VictoriaSportCountryAustraliaSportWheelchair basketballCollege teamThe University of AlabamaAchievements and titlesNational finals Medal record Wheelchair basketball Paralympic Games 2012 London Men's wheelchair basketball World Championships 2014 Incheon Team 2018 Hamburg Team Jannik Blair (born 3 Feb...

カミノ・レアル・デ・ティエラ・アデントロ(メキシコ) オフエロス橋(ハリスコ州、ID1351-019)英名 Camino Real de Tierra Adentro仏名 Camino Real de Tierra Adentro面積 3,102 ha (緩衝地域 268,057 ha)登録区分 文化遺産登録基準 (2),(4)登録年 2010年備考 5件の既登録物件を内包する。公式サイト 世界遺産センター(英語)地図 使用方法・表示 カミノ・レアル・デ・ティエラ・アデント...

Rugby player (born 1991) Rugby playerMaritino NemaniMaritino Nemani playing a Rugby game in 2018Birth nameMaritino Nemani William MarcusDate of birth (1991-05-25) 25 May 1991 (age 32)Place of birthFijiHeight1.82 m (5 ft 11+1⁄2 in)Weight105 kg (16 st 7 lb)Rugby union careerPosition(s) Wing, Inside CentreSenior careerYears Team Apps (Points)2015–2017 2017– Grenoble NEC Green Rockets 9 24 (15) (65) Correct as of 21 February 2021Provincial / State...

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Footlocker luggage – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this template message) A WWII footlocker on a bed at the National Infantry Museum, South Columbus, Georgia A footlocker is a cuboid container, secured by a padlock...

قرية الشرقى الاعلى  - قرية -  تقسيم إداري البلد  اليمن المحافظة محافظة حجة المديرية مديرية مدينة حجة العزلة عزلة عبس السكان التعداد السكاني 2004 السكان 229   • الذكور 113   • الإناث 116   • عدد الأسر 28   • عدد المساكن 25 معلومات أخرى التوقيت توقيت اليمن (+3 غرين...

Kumpulan mesin kepung Romawi. Mesin kepung (bahasa Inggris: Siege engine) adalah alat yang dirancang untuk menembus atau menerobos tembok kota atau perbentengan dalam peperangan kepung. Beberapa mesin kepung dioperasikan di dekat perbentengan, dan ada juga mesin kepung yang digunakan untuk menyerang dari jarak jauh. Sejak zaman antikuitas, mesin kepung sebagian besarnya dibuat dari kayu dan ditujukan untuk memanfaatkan keuntungan mekanis untuk melemparkan bebatuan dan misil serupa. Dengan...

National public aviation university in Deyang, Sichuan, China Not to be confused with Civil Aviation University of China. Civil Aviation Flight University of China中国民用航空飞行学院MottoLofty Aspiration, Far-reaching Flight, Profound Knowledge and Great PerseveranceTypeNationalEstablishedMay 26, 1956PresidentGuan Lixin (关立欣)Academic staff800Administrative staff1800Students16000LocationGuanghan, Sichuan, ChinaCampus10.66 square kilometers (2636 acres)Colorsblue, white and red...

Kembali kehalaman sebelumnya