Category: 

What Is a Texture Atlas?

Article Details
  • Written By: Eugene P.
  • Edited By: Angela B.
  • Last Modified Date: 04 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
In late 19th-century London, mail was delivered to residential addresses up to twelve times each day.   more...

September 28 ,  1924 :  Two US military planes complete the first flights around the world.  more...

In computer graphics programming, a texture atlas is a two-dimensional (2D) image with either multiple textures or multiple images within the main image that can be extracted and used by the main application to save resources that otherwise would be used to load and maintain each individual image or texture. In three-dimensional (3D) computer graphics, a texture atlas is slightly different in that it contains the entire image intended to be textured to a given 3D object, but that image is arranged in a sometimes confusing and distorted way, with the individual faces of each polygon in the 3D model plotted out flat on the 2D image. Some programming languages, graphics libraries and even hardware have a certain amount of system overhead associated with the use of a single image. Combining multiple images into a single sheet, or texture atlas, allows a program to reduce overhead at the expense of extra computer code and, possibly, processing time to draw subsections of the atlas to the surfaces that require them.

Ad

When used in 3D computer graphics, a texture atlas is the result of a process known as UVW mapping. The letters UVW are not an acronym but are references to the coordinates of a texture and are used to avoid confusion with the more standard X, Y and Z coordinates that are used for the geometry of a scene. If a 3D model is going to use UVW mapping, then each of the polygons is first flattened to create a 2D image, with each polygon remaining connected to its neighboring polygons. The resulting texture atlas — which is all of the polygons of the 3D model laid out flat, a process sometimes called unwrapping — can then be used as a template to ensure the accurate placement of images on the various surfaces of the object.

In 2D applications, a texture atlas can save system resources and time spent loading the image, and increase rendering speed by reducing the amount of work a graphics card must perform to change images rapidly. A 2D texture atlas can be used for a graphical user interface (GUI) in which each of the images for a button is within the same image, in a grid pattern. This way, whenever the image of a button needs to be rendered to the screen, the subsection of the larger image can be drawn instead of first having to shift memory locations or load the individual texture into graphics memory.

One complication with the use a texture atlas is the amount of precision required if the atlas is created by hand. For an application that uses 32-pixel-wide tiles, the atlas needs to have each tile aligned exactly at 32-pixel increments, which can be very time consuming and tedious. Many times, programmers will use some type of utility software to take a batch of individual images and construct the atlas procedurally, removing the need to count pixels in a paint program.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}