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

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:

For the Congress of Deputies constituency, see Toledo (Congress of Deputies constituency). For the Senate constituency, see Toledo (Senate constituency). ToledoCortes of Castilla–La ManchaElectoral constituencyLocation of Toledo within Castilla–La ManchaProvinceToledoAutonomous communityCastilla–La ManchaPopulation709,403 (2021)[1]Electorate541,628 (2023)Major settlementsTalavera de la Reina, ToledoCurrent constituencyCreated1983Seats10 (1983–1986)11 (1986–2007)12 (2007–20...

سفارة دولة فلسطين لدى الصين فلسطين الصين الإحداثيات 39°56′10″N 116°27′17″E / 39.9362°N 116.4546°E / 39.9362; 116.4546  البلد الصين  المكان بكين العنوان منطقة سانليتون السَفير فريز مهداوي تعديل مصدري - تعديل   سفارة دولة فلسطين لدى الصين هي الممثلية الدبلوماسية العُليا لدولة...

Silvio Martinello Medallista olímpico Silvio Martinello (2014)Datos personalesNacimiento Padua, Italia19 de enero de 1963 (60 años)Altura 1,77 mCarrera deportivaRepresentante de Italia ItaliaDeporte CiclismoDisciplina Pista y rutaTrayectoria 1986 1987 1988-1989 1990 1991 1992-1995 1996-1997 1998-2000 Sammontana-Bianchi Gewiss-Bianchi Atala Alexia Alluminio Jolly Componibili Gis Gelati-Ballan Mercatone Uno Saeco Polti           ...

خزعة Biopsy خزعة دماغ معلومات عامة الاختصاص جراحة  من أنواع فحص باضع،  وجمع العينات في الطب  تعديل مصدري - تعديل   الخِزْعَة أو التشخيص النسيجي[1] (بالإنجليزية: Biopsy)‏ هو اختبارٌ طبي يجريه جراح أو طبيب أشعة تدخّلي أو طبيب قلب تدخّلي بأخذ عينة من خلايا أو أنسجة ليتم فح

Істлі Повна назва Eastleigh Football Club Засновано 1946 Населений пункт Істлі,  Велика Британія Стадіон «Тен Акрес» Вміщує 5 192 (2 700 сидячі) Головний тренер Мартін Аллен Ліга Національна ліга 2015–16 7 Домашня Виїзна «Істлі» (англ. «Eastleigh Football Club») — професіональний англійський футбол...

Pour les articles homonymes, voir Sainte-Catherine. Cet article est une ébauche concernant Montréal. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Côte-Sainte-Catherine La station. Localisation Pays Canada Ville Montréal (Québec) Arrondissement Côte-des-Neiges–Notre-Dame-de-Grâce Adresse 4780, ch. de la Côte-Ste-CatherineMontréal, Québec Canada Coordonnéesgéographiques 45° 29′ 32″&#...

Technische Hochschule Ingolstadt Gründung 1994 Trägerschaft staatlich Ort Ingolstadt Bundesland Bayern Bayern Land Deutschland Deutschland Präsident Walter Schober[1] Studierende 6.887 (2023) Mitarbeiter 826 (2023) davon Professoren 190 (2023) Website www.thi.de Die Technische Hochschule Ingolstadt (kurz THI) ist eine Technische Hochschule mit Sitz in Ingolstadt. Sie wurde 1994 gegründet und zählt rund 6.800 Studierende in sechs Fakultäten (Business School, Elektro- un...

  لمعانٍ أخرى، طالع لويس (توضيح). لويس     الإحداثيات 37°56′13″N 99°15′17″W / 37.9369°N 99.2547°W / 37.9369; -99.2547  تقسيم إداري  البلد الولايات المتحدة[1]  التقسيم الأعلى مقاطعة أدوردز، كانزاس  خصائص جغرافية  المساحة 0.848258 كيلومتر مربع0.848259 كيلومتر مربع (1 ...

1975 studio album by John Entwistle's OxMad DogStudio album by John Entwistle's OxReleasedFebruary 1975Studio Novasound Studios Scorpio Studios (both London) Genre Rock hard rock rock and roll rockabilly country disco Length36:39LabelTrackDeccaProducer John Alcock John Entwistle John Entwistle's Ox chronology Rigor Mortis Sets In(1973) Mad Dog(1975) Too Late the Hero(1981) Mad Dog is the fourth solo studio album by the English rock musician John Entwistle, who was the bassist for the ...

2018 American fantasy-adventure television series The OutpostGenre Fantasy-adventure[1] Drama[2] Created byJason FallerKynan GriffinStarring Jessica Green Jake Stormoen Imogen Waterhouse Anand Desai-Barochia Robyn Malcolm Andrew Howard Kevin McNally Aaron Fontaine Glynis Barber Reece Ritchie Izuka Hoyle Jaye Griffiths Adam Johnson Georgia May Foote ComposerJames SchaferCountry of originUnited StatesOriginal languageEnglishNo. of seasons4No. of episodes49ProductionExecutive pro...

Town in Hawd region, Somaliland Town in Maroodi Jeex, SomalilandBaligubadleTown Local council seal of BaligubadleBaligubadleShow map of Marodi JehBaligubadleShow map of SomalilandCoordinates: 9°0′0″N 44°0′1″E / 9.00000°N 44.00028°E / 9.00000; 44.00028Country SomalilandRegionMaroodi JeexDistrictBaligubadleGovernment • MayorShiine Abdi HayaanPopulation (2021)[1] • Total18,000Time zoneUTC+3 (EAT) Baligubadle is a town ...

2009 video gameMySims AgentsWii box artDeveloper(s)EA Redwood Shores (Wii)[1]Tose (DS)Publisher(s)Electronic ArtsDirector(s)Kazuya Watanabe (DS)[2]Brent Iverson (Wii)[3]Producer(s)Mitch Ueno (DS)[2]Rachel Bernstein (Wii)Designer(s)Hunter Howe (Wii)Writer(s)Brian Kaiser (Wii)SeriesMySimsPlatform(s)Nintendo DS, WiiReleaseEU: September 25, 2009NA: September 29, 2009AU: October 5, 2009Genre(s)Life simulationMode(s)Single-player MySims Agents is a 2009 mystery life ...

Art movement Hellenistic artFrom left to right: the Venus de Milo, discovered at the Greek island of Milos, 130–100 BC, Louvre the Winged Victory of Samothrace, from the island of Samothrace, 200–190 BC, Louvre Pergamon Altar, Pergamon Museum, Berlin.Hades abducting Persephone, fresco in the royal tomb at Vergina, Macedonia, Greece, c. 340 BC History of art Periods and movements Prehistoric Ancient Medieval Pre-Romanesque Romanesque Gothic Renaissance Mannerism Baroque Rococo Neoclassicis...

1967 live album by The Three SoundsLive at the LighthouseLive album by The Three SoundsReleasedNovember 1967[1]RecordedJune 9–10, 1967VenueLighthouse Club, Hermosa Beach, CAGenreJazzLength67:18LabelBlue NoteProducerDick BockThe Three Sounds chronology Vibrations(1966) Live at the Lighthouse(1967) Coldwater Flat(1967) Live at the Lighthouse is a live album by jazz group The Three Sounds featuring performances recorded in 1967 at the Lighthouse Club in California and released ...

English actress, comedian and writer (born 1969) For the Canadian television and film executive, see Catherine Tait. For the English philanthropist, see Catharine Tait. Catherine TateTate at the 2019 GalaxyCon RaleighBornCatherine Jane Ford (1969-12-05) 5 December 1969 (age 54)Bloomsbury, London, EnglandEducation Notre Dame High School, Southwark Royal Central School of Speech and Drama OccupationsActresscomedianwriterYears active1991–presentPartnersTwig Clark (2002–2011)Jeff Gu...

Private non-profit community hospital in Uganda Hospital in Northern Region, UgandaKuluva HospitalChurch of Uganda Medical BureauGeographyLocationArua, Arua District, Northern Region, UgandaCoordinates02°56′48″N 30°55′57″E / 2.94667°N 30.93250°E / 2.94667; 30.93250OrganisationCare systemPrivateTypeGeneralServicesBeds200HistoryOpened1902; 121 years ago (1902)LinksOther linksHospitals in Uganda Kuluva Hospital, is a private, non-profit, comm...

This is a dynamic list and may never be able to satisfy particular standards for completeness. You can help by adding missing items with reliable sources. Agitated workers face the factory owner in The Strike, painted by Robert Koehler in 1886 The following is a list of specific strikes (workers refusing to work, seeking to change their conditions in a particular industry or an individual workplace, or striking in solidarity with those in another particular workplace) and general strikes (wid...

This article is about the application intended for using an Android device in a vehicle. For the operating system tailored for cars, see Android Automotive. Mobile app providing a vehicle-optimized user interface Android Auto CoolWalk UI Legacy UIAndroid Auto's UIOriginal author(s)GoogleDeveloper(s)GoogleInitial releaseMarch 19, 2015; 8 years ago (2015-03-19)Operating systemAndroid 8.0+[1]TypeTelematicsLicenseProprietaryWebsiteandroid.com/auto Android Auto is a mobil...

Male horse that has not been castrated For other uses, see Stallion (disambiguation). A stallion A stallion is a male horse that has not been gelded (castrated). Stallions follow the conformation and phenotype of their breed, but within that standard, the presence of hormones such as testosterone may give stallions a thicker, cresty neck, as well as a somewhat more muscular physique as compared to female horses, known as mares, and castrated males, called geldings. Temperament varies widely b...

Dialect of South Estonian Not to be confused with the Seto dialect of the Fon language. This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (January 2022) (Learn how and when to remove this template message) Setoseto kiil´Native toEstoniaRegionSetomaaEthnicitySetosNative speakers13,000 (2011 census)[1]Language familyUralic FinnicSouth EstonianV...

Kembali kehalaman sebelumnya