Supersampling

Calculating the end color value
Comparison of a rendered scene without (left side) and with supersampling anti-aliasing applied (right) (Not applying AA is analogous to a nearest-neighbor interpolation.)

Supersampling or supersampling anti-aliasing (SSAA) is a spatial anti-aliasing method, i.e. a method used to remove aliasing (jagged and pixelated edges, colloquially known as "jaggies") from images rendered in computer games or other computer programs that generate imagery. Aliasing occurs because unlike real-world objects, which have continuous smooth curves and lines, a computer screen shows the viewer a large number of small squares. These pixels all have the same size, and each one has a single color. A line can only be shown as a collection of pixels, and therefore appears jagged unless it is perfectly horizontal or vertical. The aim of supersampling is to reduce this effect. Color samples are taken at several instances inside the pixel (not just at the center as normal), and an average color value is calculated. This is achieved by rendering the image at a much higher resolution than the one being displayed, then shrinking it to the desired size, using the extra pixels for calculation. The result is a downsampled image with smoother transitions from one line of pixels to another along the edges of objects. The number of samples determines the quality of the output.

Motivation

Aliasing is manifested in the case of 2D images as moiré pattern and pixelated edges, colloquially known as "jaggies". Common signal processing and image processing knowledge suggests that to achieve perfect elimination of aliasing, proper spatial sampling at the Nyquist rate (or higher) after applying a 2D Anti-aliasing filter is required. As this approach would require a forward and inverse fourier transformation, computationally less demanding approximations like supersampling were developed to avoid domain switches by staying in the spatial domain ("image domain").

Method

Computational cost and adaptive supersampling

Supersampling is computationally expensive because it requires much greater video card memory and memory bandwidth, since the amount of buffer used is several times larger.[1] A way around this problem is to use a technique known as adaptive supersampling, where only pixels at the edges of objects are supersampled.

Initially only a few samples are taken within each pixel. If these values are very similar, only these samples are used to determine the color. If not, more are used. The result of this method is that a higher number of samples are calculated only where necessary, thus improving performance.

Supersampling patterns

When taking samples within a pixel, the sample positions have to be determined in some way. Although the number of ways in which this can be done is infinite, there are a few ways which are commonly used.[1][2]

Grid

The simplest algorithm. The pixel is split into several sub-pixels, and a sample is taken from the center of each. It is fast and easy to implement. Although, due to the regular nature of sampling, aliasing can still occur if a low number of sub-pixels is used.

Random

Also known as stochastic sampling, it avoids the regularity of grid supersampling. However, due to the irregularity of the pattern, samples end up being unnecessary in some areas of the pixel and lacking in others.[3]

Poisson disk

Point samples generated using Poisson disk sampling, and graphical representation of the minimum inter-point distance

The Poisson disk sampling algorithm [4] places the samples randomly, but then checks that any two are not too close. The end result is an even but random distribution of samples. The naive "dart throwing" algorithm is extremely slow for large data sets, which once limited its applications for real-time rendering.[3] However, many fast algorithms now exist to generate Poisson disk noise, even those with variable density.[5][6][7] The Delone set provides a mathematical description of such sampling.

Jittered

A modification of the grid algorithm to approximate the Poisson disk. A pixel is split into several sub-pixels, but a sample is not taken from the center of each, but from a random point within the sub-pixel. Congregation can still occur, but to a lesser degree.[3]

Rotated grid

A 2×2 grid layout is used but the sample pattern is rotated to avoid samples aligning on the horizontal or vertical axis, greatly improving antialiasing quality for the most commonly encountered cases. For an optimal pattern, the rotation angle is arctan (1/2) (about 26.6°) and the square is stretched by a factor of 5/2[8][citation needed], making it also a 4-queens solution.

See also

References

  1. ^ a b "Anti-aliasing techniques comparison". sapphirenation.net. 2016-11-29. Retrieved 2020-04-19. Generally speaking, SSAA provides exceptional image quality, but the performance hit is major here because the scene is rendered at a very high resolution.
  2. ^ "What is supersampling?". everything2.com. 2004-05-20. Retrieved 2020-04-19.
  3. ^ a b c Allen Sherrod (2008). Game Graphic Programming. Charles River Media. p. 336. ISBN 978-1584505167.
  4. ^ Cook, R. L. (1986). "Stochastic sampling in computer graphics". ACM Transactions on Graphics. 5 (1): 51–72. doi:10.1145/7529.8927. S2CID 8551941.
  5. ^ Dunbar, Daniel; Humphreys, Greg (2006). "A spatial data structure for fast Poisson-disk sample generation". ACM SIGGRAPH 2006 Papers on - SIGGRAPH '06. p. 503. doi:10.1145/1179352.1141915. ISBN 1595933646. S2CID 13954223. Retrieved 7 January 2023.
  6. ^ Bridson, Robert (2007). "Fast Poisson disk sampling in arbitrary dimensions" (PDF). ACM SIGGRAPH 2007 sketches. p. 22. doi:10.1145/1278780.1278807. ISBN 9781450347266. S2CID 3129455. Retrieved 7 January 2023.
  7. ^ Dwork, N; Baron, CA; Johnson, EMI; O'Connor, D; Pauly, JM; Larson, PEZ (April 2021). "Fast variable density Poisson-disc sample generation with directional variation for compressed sensing in MRI". Magnetic Resonance Imaging. 77: 186–193. doi:10.1016/j.mri.2020.11.012. PMC 7878411. PMID 33232767.
  8. ^ "Super-sampling Anti-aliasing Analyzed" (PDF). Beyond3D.com. Retrieved 2020-04-19.

Read other articles:

Weinberg bei Steinau IUCN-Kategorie IV – Habitat/Species Management Area Naturschutzgebiet Weinberg bei Steinau Naturschutzgebiet Weinberg bei Steinau Lage Hessen, Deutschland Fläche 34,85 ha Kennung 1435065 WDPA-ID 163485 Natura-2000-ID DE5623306 FFH-Gebiet 34,85 ha Geographische Lage 50° 19′ N, 9° 27′ O50.324649.44167Koordinaten: 50° 19′ 29″ N, 9° 26′ 30″ O Weinberg bei Steinau (Hessen) Einrichtungsdatum 197...

Claire Anderson Información personalNacimiento 8 de mayo de 1891Detroit, Míchigan, Estados UnidosFallecimiento 23 de marzo de 1964 (72 años)Venice, Los Ángeles, California, Estados UnidosResidencia Detroit Nacionalidad EstadounidenseLengua materna Inglés FamiliaCónyuge Harry H. AndersonInformación profesionalOcupación ActrizAños activa 1914 - 1938[editar datos en Wikidata] Claire Mathis Anderson (8 de mayo de 1891 -23 de marzo de 1964), nacida en Detroit,[1]​...

2021 Big Ten women's soccer tournamentClassificationDivision ITeams8Matches7Attendance12,273Quarterfinals siteHigher seedsSemifinals siteYurcak FieldPiscataway, New JerseyFinals siteYurcak FieldPiscataway, New JerseyChampionsMichigan (3rd title)Winning coachJennifer Klein (1st title)MVPRaleigh Loughman (offensive)Alia Martin (defensive) (Michigan)BroadcastBTN Big Ten women's soccer tournament «2020  2022» 2021 Big Ten Conference women's soccer standings vte Conf Overall Team ...

GLIPR1 Наявні структури PDBПошук ортологів: PDBe RCSB Список кодів PDB 3Q2R, 3Q2U Ідентифікатори Символи GLIPR1, CRISP7, GLIPR, RTVP1, GLI pathogenesis related 1 Зовнішні ІД OMIM: 602692 MGI: 1920940 HomoloGene: 21357 GeneCards: GLIPR1 Шаблон експресії Більше даних Ортологи Види Людина Миша Entrez 11010 73690 Ensembl ENSG00000139278 ENSMUSG00000056888 UniProt P48060 Q9CWG1 Re...

Minor league baseball teamKannapolis Cannon BallersFounded in 1995 Kannapolis, North Carolina Team logo Cap insignia Minor league affiliationsClassSingle-A (2022–present)Previous classes Low-A (2021) Class A (1995–2020) LeagueCarolina League (2022–present)DivisionSouth DivisionPrevious leagues Low-A East (2021) South Atlantic League (1995–2020) Major league affiliationsTeamChicago White Sox (2001–present)Previous teamsPhiladelphia Phillies (1995–2000)Minor league titlesLeague titl...

Artikel ini perlu diwikifikasi agar memenuhi standar kualitas Wikipedia. Anda dapat memberikan bantuan berupa penambahan pranala dalam, atau dengan merapikan tata letak dari artikel ini. Untuk keterangan lebih lanjut, klik [tampil] di bagian kanan. Mengganti markah HTML dengan markah wiki bila dimungkinkan. Tambahkan pranala wiki. Bila dirasa perlu, buatlah pautan ke artikel wiki lainnya dengan cara menambahkan [[ dan ]] pada kata yang bersangkutan (lihat WP:LINK untuk keterangan lebih lanjut...

MaronKecamatanNegara IndonesiaProvinsiJawa TimurKabupatenProbolinggoPemerintahan • CamatDrs. H. Mahbub MalikiPopulasi • Total- jiwaKode Kemendagri35.13.17 Kode BPS3513180 Luas- km²Desa/kelurahan18 desa Sekolah untuk anak-anak pribumi di pabrik gula Maron (1906) Untuk pengertian lain, lihat Maron. Maron adalah sebuah kecamatan di Kabupaten Probolinggo, Provinsi Jawa Timur, Indonesia. lbsKecamatan Maron, Kabupaten Probolinggo, Jawa TimurDesa Brabe Brani Kulon Brani...

Ethnic group of Malaysia Kristang peopleOrang Kristang / Serani / Jenti KristangA group of Kristang people performing a traditional dance in Malacca, Malaysia.Total population37,000[1][failed verification]Regions with significant populationsMalaysia (Malacca, Kuala Lumpur, Penang)SingaporeLanguagesPapia Kristang, English, MalayReligionPredominantly Christianity (Roman Catholic), minority Judaism, Sunni Islam, and SecularRelated ethnic groupsEurasian, Mardijker, Goan Catholics,...

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Julho de 2019) Um smartphone tocando um podcast. Rádio portátil estéreo Wi-Fi/DAB+/FM/podcast/Bluetooth Podcasting é uma forma de publicação de ficheiros multimídia (áudio, vídeo, foto, etc.) na Internet para assistir ao vivo ou d...

Chủ đề của bài viết này có thể không thỏa mãn chỉ dẫn chung về độ nổi bật. Nếu bạn am hiểu về chủ đề của bài viết này, hãy mở rộng hoặc viết lại bài để xác lập độ nổi bật của chủ đề. Cách tốt nhất để làm điều đó là dẫn chiếu các tài liệu nói về chủ đề đã được công bố bởi các nguồn độc lập. Nếu không thể xác lập được độ nổi bật, bài viết có ...

2021 video game 2021 video gameThe Legend of Heroes: Trails Through DaybreakDeveloper(s)Nihon FalcomPublisher(s)NIS AmericaJP: Nihon FalcomPAL: Clouded Leopard EntertainmentDirector(s)Takayuki KusanoProducer(s)Toshihiro KondoProgrammer(s)Yuki HirataToru EndoNobuhiro HiokiArtist(s)Katsumi EnamiWriter(s)Hisayoshi TakeiriYuuta MiyazakiSyunsei ShikataComposer(s)Hayato SonodaShuntaro KoguchiYukihiro JindoMitsuo SingaSeriesTrailsPlatform(s)PlayStation 4PlayStation 5WindowsNintendo SwitchReleasePlay...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this article by introducing more precise citations. (April 2017) (Learn how and when to remove this template message) This article relies largely or entirely on a single sour...

Sân vận động José AlvaladeUEFA Tên đầy đủEstádio José Alvalade (Sân vận động José Alvalade)Vị tríLisbon, Bồ Đào NhaTọa độ38°45′40,3″B 9°9′38,82″T / 38,75°B 9,15°T / 38.75000; -9.15000Giao thông công cộng  Verde   Amarela  tại Campo GrandeChủ sở hữuSporting Clube de PortugalSức chứa50.095Kỷ lục khán giả50.046 vs Real Madrid[1](22 tháng 11 năm...

Kiesdistrict Enschede (1888) Tweede Kamerverkiezingen in het kiesdistrict Enschede (1888-1918) geeft een overzicht van verkiezingen voor de Nederlandse Tweede Kamer in het kiesdistrict Enschede in de periode 1888-1918.[1] Het kiesdistrict Enschede was eerder ingesteld geweest in de periode 1848-1850. Het kiesdistrict werd opnieuw ingesteld na de grondwetsherziening van 1887. Tot het kiesdistrict behoorden de volgende gemeenten: Enschede, Haaksbergen, Hengelo, Lonneker, Losser en Olden...

1998 single by OrgyStitchesSingle by Orgyfrom the album Candyass ReleasedApril 30, 1998November 23, 1999[1] (re-release)Genre Industrial rock nu metal[2] Length3:13 (Album version)Label Warner Bros. Reprise Elementree Songwriter(s) Amir Derakh Jay Gordon Bobby Hewitt Ryan Shuck Producer(s) Josh Abraham Orgy Orgy singles chronology Stitches (1998) Blue Monday (1998) Stitches is a song by Orgy, released as the band's first single in 1998, and then re-released the following year ...

Academic journalModern Language NotesDisciplineLiteratureLanguageEnglish, French, German, Italian, SpanishPublication detailsHistory1886–presentPublisherJohns Hopkins University Press (United States)Frequency5/yearOpen accessHybridStandard abbreviationsISO 4 (alt) · Bluebook (alt1 · alt2)NLM (alt) · MathSciNet (alt )ISO 4Mod. Lang. NotesIndexingCODEN (alt · alt2) · JSTOR (alt) · LCCN (alt)MIAR ...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Gak Jonze – news...

Chilean actress In this Spanish name, the first or paternal surname is Pulido and the second or maternal family name is Anker. Catalina PulidoPulido in 2011Personal detailsBornMaría Catalina Pulido Anker (1974-09-14) 14 September 1974 (age 49)Santiago, ChilePolitical partyRepublican Party (2020–)Height1.76 m (5 ft 9+1⁄2 in)OccupationActress, model (1993–) María Catalina Pulido Anker (born 14 September 1974) is a Chilean actress, model, and television pr...

Antonio Sbardella Presidente della Divisione Calcio a 5Durata mandato1989 –1992 SuccessoreMarcello de Luca Tamajo Antonio Sbardella Informazioni personali Arbitro di Calcio Sezione Roma Professione Dirigente Attività nazionale Anni Campionato Ruolo 1958-19591959-1971 Serie BSerie A e B ArbitroArbitro Attività internazionale ?-1971 UEFA e FIFA Arbitro Premi Anno Premio 1970 Fischietto d'oro Antonio Sbardella (Palestrina, 17 ottobre 1925 – Roma, 14 gennaio 2002) è stato un ...

Estrecho de Vilkitski пролив Вилькицкого Localización del estrecho helado (vista de Severnaya Zemlya)Ubicación geográficaContinente AsiaOcéano Mar de Kara - Mar de Láptev (océano Ártico)Archipiélago Severnaya ZemlyaIsla Isla BolcheviqueCoordenadas 77°57′43″N 103°26′50″E / 77.961944, 103.447222Ubicación administrativaPaís RusiaDivisión Krai de KrasnoyarskAccidentes geográficosOtros accidentes Península de TaimyrCuerpo de aguaLongitud 104 ...