Filtered Tilemaps (in Shader X6) - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Chapitre D'ouvrage Année : 2008

Filtered Tilemaps (in Shader X6)

Résumé

Tilings have several applications in Computer Graphics. They are used to progressively load large textures, only loading those tiles that are used by the current viewpoint. They are also used to generate large, non repeating textures from a small set of precomputed square tiles. Unfortunately, tilings present difficulties when it comes to filtering (bi-linear interpolation and MIP-mapping). The discontinuities at tile boundaries hinder direct filtering by the graphics hardware. Often, proper filtering implies to re-implement tri-linear filtering in the fragment program. This results in long shaders and possibly rendering artefacts. Moreover this hinders the use of anisotropic filtering which is crucial for terrain rendering. In this article, we will start by explaining the difficulties associated with rendering tilings. After a brief overview of existing methods, we will present a simple yet generic approach to display properly filtered tilings. Our approach exploits the recently introduced DirectX 10 texture arrays (or their OpenGL equivalent). It is as simple as summing four natively filtered lookups. In the far distance - where multiple entries of the tile-map project into a same pixel - a coarse texture is used to filter the tile-map itself. Our approach supports anisotropic filtering.
Fichier non déposé

Dates et versions

inria-00606811 , version 1 (07-07-2011)

Identifiants

  • HAL Id : inria-00606811 , version 1

Citer

Sylvain Lefebvre. Filtered Tilemaps (in Shader X6). Wolfgang Engel. Shader X6: Advanced Rendering Techniques, Charles River Media, pp.63--72, 2008, Shader X6. ⟨inria-00606811⟩
176 Consultations
0 Téléchargements

Partager

Gmail Facebook X LinkedIn More