Texture mapping concept

Texture mapping in CAD software systems can be considered like stickers. The process of texturing is like pasting stickers on a face of a box or any other object. Texture mapping is a way of imparting visual realism and interest to a computer generated graphic. An image — the texture — is added (mapped) to a simpler shape that is part of the scene, like a decal pasted to a flat surface. This does not affect the "smoothness" of a surface but only changes its color patterns. This will aid in rendering the model. Again going by the sticker analogy, when you try to paste stickers on the surface of an object, you can wrap that object completely or partially depending on the size of the sticker. This is similar to the decal transferring. You may decide to paste the sticker's one after the other in succession to cover up the entire surface, if the sticker is smaller than the surface to be covered. If the sticker is of an elastic material like a printed rubber sheet, you may stretch it to cover up the surface. In CAD systems, texturing may be considered similar to the above two actions.

Defining the mapping method

Several different methods to apply the texture onto the surface are available.
In general, an auxiliary surface, called the Mapping surface is used for the mapping (it can be a plane, a sphere, a cylinder and so on: the image, originally flat, will be mapped onto the selected shape, thus adapting to the latter).

1 — The selected surface
2 — The mapping surface
Once the method has been defined, the chosen image is tiled onto the mapping surface so as to cover it entirely, thus creating the texture. From the mapping surface, the texture is then applied to the selected surface, the projection of which is included within the mapping surface itself.



The number of repetitions of the image on the selected surface depends on the scale that you want to apply to the image itself. What the program does initially, if you do not specify any scale, is to try to fit just one instance of image to the entire surface (or set of surfaces) you have selected, as displayed in the image above.

Scaling the texture

A scale (or even two different scales along the two parametric directions) can also be applied to the image when tiling it onto the selected surface.

Moving the origin of the texture or Rotating the texture

An auxiliary bi-dimensional coordinate system (S,T) is associated with the original image. The origin is in its lower-left corner. By default, the origin of the image will coincide with the point of the mapping surface where the value of both the surface parameters is 0. If you move the origin of the image, the tiling — and thus the resulting texture — will be different.



You can also rotate the selected image about its origin.




Related Topics

Take a look at the video list  e-Learning video list for rendering