码迷,mamicode.com
首页 > 移动开发 > 详细

UV mapping

时间:2014-07-22 22:45:15      阅读:303      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   strong   io   

UV mapping

  UV mapping is the 3D modeling process of making a 2D image representation of a 3D model‘s surface.

  This process projects a texture map onto a 3D object. The letters "U" and "V" denote the axes of the 2D texture[note 1] because "X", "Y" and "Z" are already used to denote the axes of the 3D object in model space.

  UV texturing permits polygons that make up a 3D object to be painted with color from an image. The image is called a UV texture map,[1] but it‘s just an ordinary image. The UV mapping process involves assigning pixels in the image to surface mappings on the polygon, usually done by "programmatically" copying a triangle shaped piece of the image map and pasting it onto a triangle on the object.[2] UV is the alternative to XY, it only maps into a texture space rather than into the geometric space of the object. But the rendering computation uses the UV texture coordinates to determine how to paint the three-dimensional surface.

  When a model is created as a polygon mesh using a 3D modeler, UV coordinates can be generated for each vertexin the mesh. One way is for the 3D modeler to unfold the triangle mesh at the seams, automatically laying out the triangles on a flat page. If the mesh is a UV sphere, for example, the modeler might transform it into anequirectangular projection. Once the model is unwrapped, the artist can paint a texture on each triangle individually, using the unwrapped mesh as a template. When the scene is rendered, each triangle will map to the appropriate texture from the "decal sheet".

  bubuko.com,布布扣

参考:http://en.wikipedia.org/wiki/UV_mapping

UV mapping,布布扣,bubuko.com

UV mapping

标签:style   blog   http   color   strong   io   

原文地址:http://www.cnblogs.com/tekkaman/p/3859862.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!