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

Clipping (computer graphics)

Clipping, in the context of computer graphics, is a method to selectively enable or disable rendering operations within a defined region of interest. Mathematically, clipping can be described using the terminology of constructive geometry. A rendering algorithm only draws pixels in the intersection between the clip region and the scene model. Lines and surfaces outside the view volume (aka. frustum) are removed.[1]

Clip regions are commonly specified to improve render performance. A well-chosen clip[clarification needed] allows the renderer to save time and energy by skipping calculations related to pixels that the user cannot see. Pixels that will be drawn are said to be within the clip region. Pixels that will not be drawn are outside the clip region. More informally, pixels that will not be drawn are said to be "clipped."

In 2D graphics

In two-dimensional graphics, a clip region may be defined so that pixels are only drawn within the boundaries of a window or frame. Clip regions can also be used to selectively control pixel rendering for aesthetic or artistic purposes. In many implementations, the final clip region is the composite (or intersection) of one or more application-defined shapes, as well as any system hardware constraints

In one example application, consider an image editing program. A user application may render the image into a viewport. As the user zooms and scrolls to view a smaller portion of the image, the application can set a clip boundary so that pixels outside the viewport are not rendered. In addition, GUI widgets, overlays, and other windows or frames may obscure some pixels from the original image. In this sense, the clip region is the composite of the application-defined "user clip" and the "device clip" enforced by the system's software and hardware implementation.[2] Application software can take advantage of this clip information to save computation time, energy, and memory, avoiding work related to pixels that aren't visible.

In 3D graphics

A view frustum, with near- and far- clip planes. Only the shaded volume is rendered.

In three-dimensional graphics, the terminology of clipping can be used to describe many related features. Typically, "clipping" refers to operations in the plane that work with rectangular shapes, and "culling" refers to more general methods to selectively process scene model elements. This terminology is not rigid, and exact usage varies among many sources.

Scene model elements include geometric primitives: points or vertices; line segments or edges; polygons or faces; and more abstract model objects such as curves, splines, surfaces, and even text. In complicated scene models, individual elements may be selectively disabled (clipped) for reasons including visibility within the viewport (frustum culling); orientation (backface culling), obscuration by other scene or model elements (occlusion culling, depth- or "z" clipping). Sophisticated algorithms exist to efficiently detect and perform such clipping. Many optimized clipping methods rely on specific hardware acceleration logic provided by a graphics processing unit (GPU).

The concept of clipping can be extended to higher dimensionality using methods of abstract algebraic geometry.

Near clipping

Beyond projection of vertices & 2D clipping, near clipping is required to correctly rasterise 3D primitives; this is because vertices may have been projected behind the eye. Near clipping ensures that all the vertices used have valid 2D coordinates. Together with far-clipping it also helps prevent overflow of depth-buffer values. Some early texture mapping hardware (using forward texture mapping) in video games suffered from complications associated with near clipping and UV coordinates.

Occlusion clipping (Z- or depth clipping)

In 3D computer graphics, "Z" often refers to the depth axis in the system of coordinates centered at the viewport origin: "Z" is used interchangeably with "depth", and conceptually corresponds to the distance "into the virtual screen." In this coordinate system, "X" and "Y" therefore refer to a conventional cartesian coordinate system laid out on the user's screen or viewport. This viewport is defined by the geometry of the viewing frustum, and parameterizes the field of view.

Z-clipping, or depth clipping, refers to techniques that selectively render certain scene objects based on their depth relative to the screen. Most graphics toolkits allow the programmer to specify a "near" and "far" clip depth, and only portions of objects between those two planes are displayed. A creative application programmer can use this method to render visualizations of the interior of a 3D object in the scene. For example, a medical imaging application could use this technique to render the organs inside a human body. A video game programmer can use clipping information to accelerate game logic.[3] For example, a tall wall or building that occludes other game entities can save GPU time that would otherwise be spent transforming and texturing items in the rear areas of the scene; and a tightly integrated software program can use this same information to save CPU time by optimizing out game logic for objects that aren't seen by the player.[3]

Algorithms

See also

Further reading

References

  1. ^ Bertoline, Gary; Wiebe, Eric (2002). Fundamentals of Graphics Communication (3rd ed.). McGraw-Hill. p. G-3. ISBN 0-07-232209-8. Retrieved 2015-01-04.
  2. ^ a b "java.awt.Graphics.clipRect". Oracle. 2014.
  3. ^ a b c Sekulic, Dean (2004). "Efficient Occlusion Culling". GPU Gems. Pearson. Archived from the original on 2013-06-05. Retrieved 2015-01-02.
  4. ^ Paul Martz (2001). "Clipping, Culling, and Visibility Testing". OpenGL.org. Retrieved 2015-01-02.

Read other articles:

مصحة ترافرس سيتي في مدينة ترافرس سيتي، ميشيغان مستشفى الأمراض النفسية أو البيمارستان[1] هو المستشفى الذي يستقبل ويعالج المرضى المصابين بالأمراض العقلية.[2][3][4] التاريخ أدى ضغط قضاة المحكمة على الحكومة البريطانية، إلى إصدار قانون جديد من البرلمان سنة 1828 يقض...

Stasiun Tangerang T11 Pintu masuk Stasiun Tangerang, 2015LokasiJalan KiasnawiSukarasa, Tangerang, Tangerang, Banten 15111IndonesiaKetinggian+15 mOperatorKAI CommuterLetak dari pangkalkm 19+297 lintas Duri-Tangerang[1]Jumlah peronDua peron sisi dan satu peron pulau yang sama-sama tinggiJumlah jalur4 (jalur 1 dan 2: sepur lurus)Informasi lainKode stasiunTNG0301[2]KlasifikasiBesar tipe C[2]SejarahDibuka1899Elektrifikasi1997Operasi layananKRL Commuter Line Stasiun sebelumn...

Untuk kegunaan lain, lihat Ikonoklasme. Sebuah salib sederhana: contoh dari seni rupa ikonoklas di Gereja Hagia Irene di Istanbul. Ikonoklasme Bizantium, Chludov Psalter, abad ke-9.[1] Ikonoklasme Bizantium (bahasa Yunani: Εἰκονομαχία, Eikonomachía) merujuk kepada dua periode dalam sejarah Kekaisaran Bizantium ketika penggunaan gambar-gambar keagamaan atau ikon-ikon ditentang oleh otoritas keagamaan dan kekaisaran pada Gereja Timur dan hierarki kekaisaran temporal. Ik...

Juan Atilio Bramuglia Ministro de Relaciones Exteriores y Culto de la Nación Argentina 4 de junio de 1946-11 de agosto de 1949Presidente Juan Domingo PerónPredecesor Juan Isaac CookeSucesor Hipólito Jesús Paz Presidente de la Junta Nacional de Coordinación Política 24 de octubre de 1945-21 de noviembre de 1946Predecesor Entidad creadaSucesor Juan Domingo Perón (como presidente del Partido Único de la Revolución) Gobernador de la Provincia de Buenos AiresDe facto 12 de enero de 1945-1...

Śuddhodana (Sánscrito: शुद्धोदन; Pali: Suddhōdana), que significa el que cultiva arroz puro,[1]​ fue un líder de los Shakya, que vivió en una república oligárquica en el actual Nepal, con su capital en Kapilavastu. También fue el padre de Siddhartha Gautama, quien más tarde se convirtió en Buddha.[2]​ En interpretaciones posteriores de la vida de Buddha, a menudo se hacía referencia a Śuddhodana como un rey, aunque ese estatus no se puede establecer con...

Leon Lai Información personalNombre de nacimiento 黎明 Nombre en inglés Leon Lai Ming Apodo Leon y 黎天王 Nacimiento 11 de diciembre de 1966 (56 años)Pekín (China) Residencia Hong Kong Nacionalidad ChinaLengua materna Chino Características físicasAltura 1,8 m Peso 76 kg FamiliaCónyuge Gaile Lok (2008-2012) EducaciónEducado en Westminster Kingsway CollegeLewisham College Información profesionalOcupación Actor, cantante, actor de cine, actor de televisión, artista...

Jon Seda Información personalNombre de nacimiento Jonathan SedaNacimiento 14 de octubre de 1970 (53 años) Nueva York, Nueva York, Estados UnidosResidencia Chicago Nacionalidad EstadounidenseLengua materna Inglés Características físicasAltura 1,75 mFamiliaCónyuge Lisa Gómez (2000-presente)Hijos 3EducaciónEducado en Clifton High School Información profesionalOcupación ActorAños activo desde 1992Carrera deportivaDeporte Boxeo Representante de Estados Unidos [editar datos en ...

JA PrestwichIndustries Limited Logotipo de la marca Motocicleta J.A.P. de 1948Tipo fabricante de motocicletas y engine manufacturerIndustria Ingenjería y fabricación de lápicesForma legal Empresa de capital abierto limitadaFundación 1951Fundador John Alfred PrestwichDisolución 1964Sede central Tariff Road, Northumberland Park, LondresPersonas clave John Alfred PrestwichProductos Motores industriales y de motocicleta, lápicesCronología J.A.Prestwich and Company Limited and Pencils Limit...

Міст дей ПуньїНазва на честь: удар кулаком Міст дей Пуньї 45°25′59″ пн. ш. 12°19′27″ сх. д. / 45.4331583° пн. ш. 12.3243472° сх. д. / 45.4331583; 12.3243472Тип Венеційські мостиКраїна  Італія : ISO3166-1 alpha-3:ITA; ISO3166-1 цифровий:380; Розташування ВенеціяВисота 2,27 

село Любимо-Мар'ївка Країна  Україна Область Херсонська область Район Каховський район Громада Тавричанська сільська громада Основні дані Засноване 1886 Населення 92 Площа 16,79 км² Густота населення 5,48 осіб/км² Поштовий індекс 74801 Телефонний код +380 5536 Географічні д...

Simon ClarkeInformacjeData i miejsce urodzenia18 lipca 1986MelbourneKrajAustraliaObecna grupaIsrael-Premier TechWzrost175 cmGrupy zawodowe2006-2008Southaustralia.com-AIS2009-8.2009Amica Chips-Knauf8.2009-2010ISD-Neri2011Astana2012-4.2012GreenEDGE5.2012-2015Orica-GreenEDGE2016-6.2016Cannondale7.2016-2017Cannondale-Drapac2018EF Education First-Drapac2019EF Education First2020EF Pro Cycling2021-6.2021Qhubeka Assos6.2021-2021Qhubeka NextHash2022-Israel-Premier TechDokumentacja Simon Clarke (ur. 1...

Hochschule für angewandte Wissenschaften Weihenstephan-Triesdorf Gründung 1971 Trägerschaft staatlich Ort Freising und Triesdorf Bundesland Bayern Bayern Land Deutschland Deutschland Präsident Eric Veulliet Studierende 6.350 WS 2016/17 Mitarbeiter 652 davon Professoren 146 Professoren, 268 Lehrbeauftragte Website www.hswt.de Übersicht über die Hochschulanlage auf dem Campus Freising-Weihenstephan Erläuterung zur Übersicht Die Hochschule für angewandte Wissenschaften Weihens...

Altos de San Lorenzo Localidad Altos de San LorenzoCoordenadas 34°56′36″S 57°56′20″O / -34.9433, -57.9389Idioma oficial EspañolEntidad Localidad • País  Argentina • Provincia  Buenos Aires • Partido La PlataIntendente Julio Garro (PRO-JxC)Altitud   • Media 23 m s. n. m.Clima TempladoPoblación (2001)   • Total 30 192 hab.[1]​ • Metropolitana 719 013 hab.Gentilicio sanlorencense/...

Claude-Élisée de Court de La Bruyère Naissance 15 février 1666à Pont-de-Vaux (Royaume de France) Décès 19 août 1752 (à 86 ans)à Gournay-sur-Marne (Royaume de France) Origine Français Allégeance Royaume de France Arme  Marine royale française Grade Vice-amiral de la Flotte du Ponant Années de service 1684 – 1744 Commandement Flotte du PonantLe Terrible Conflits Guerre de la Ligue d'AugsbourgGuerre de Succession d'EspagneGuerre de Succession d'Autriche Faits d'armes 17...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2019) هيلج جونغ   معلومات شخصية اسم الولادة (بالسويدية: Helge Victor Jung)‏  الميلاد 23 مارس 1886  مالمو  الوفاة 3 يناير 1978 (91 سنة)   ستوكهولم  مواطنة السويد  من...

For the village in Syria, see Al-Rabwah, Homs. Town in Punjab, PakistanRabwah ربوہTownChenab NagarRabwahLocation in Punjab, PakistanShow map of Punjab, PakistanRabwahRabwah (Pakistan)Show map of PakistanCoordinates: 31°45′10″N 72°55′20″E / 31.75278°N 72.92222°E / 31.75278; 72.92222Country PakistanProvincePunjabDistrictChiniot DistrictSub-districtLalian TehsilSettled20 September 1948[1]Area • Total24 km2 (9 sq mi)E...

1991 book by Leonard Peikoff Objectivism: The Philosophy of Ayn Rand Cover of the first edition, showing photograph of Rand in her New York office, 1974AuthorLeonard PeikoffCountryUnited StatesLanguageEnglishSeriesAyn Rand LibrarySubjectObjectivismPublisherDuttonPublication date1991Media typePrint (Hardcover and Paperback)Pages493 (first edition)ISBN0-525-93380-8 (hardcover)ISBN 0-452-01101-9 (paperback)OCLC23647748 Objectivism: The Philosophy of Ayn Rand is a 1991 book by the philo...

Estonia Stasiun anggotaERREven seleksi nasionalEurolaul, Eesti LaulPartisipasiTotal partisipasi16Partisipasi pertama1994Hasil terbaikJuara: 2001Hasil terburukPosisi ke-24: 1994Pranala luarHalaman ETVEstonia pada Eurovision.tv Neiokõsõ di Istanbul (2004) Gerli Padar di Helsinki (2007) Kreisiraadio di Belgrade (2008) Estonia memulai debutnya di ajang Kontes Lagu Eurovision pada tahun 1994. Sebetulnya, negara yang bergabung dalam jajaran Negara Baltik ini mengikuti kontes pada tahun 1993. Namu...

Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Depot minyak – berita · surat kabar · buku · cendekiawan · JSTOR Depot minyak Kowloon, Hong Kong sekitar pertengahan 1980-an. Depot ini kemudian dinonaktifkan dan diubah menjadi kawasan perumahan Laguna City ...

Not to be confused with Pelham Parkway (IRT White Plains Road Line). New York City Subway station in the Bronx New York City Subway station in The Bronx, New York Pelham Parkway  New York City Subway station (rapid transit)View from southbound platformStation statisticsAddressPelham Parkway, Williamsbridge Road & EsplanadeBronx, NY 10469BoroughThe BronxLocalePelham Gardens, Pelham ParkwayCoordinates40°51′29″N 73°51′22″W / 40.85813°N 73.856063°W...

Kembali kehalaman sebelumnya