Texture Mapping Presented by POTLURI KIRAN Introduction n
Texture Mapping Presented by POTLURI, KIRAN
Introduction n Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is a powerful technique for adding realism to a computer-generated scene.
Texture Mapped on to Tea Pot
Texture Mapped on to Tea Pot
Introduction (contd. . ) n n The First use of texture was developed by Catmull in the year 1974. Algorithm is applied to bicubic parametric patch model, since the parametric patch models already possesses the U, V values everywhere on its surface.
How is texture mapping done Two Dimensional Texture Mapping : : Texture Space T(u, v) surface Object Screen Space Projection Space (x, y, z) (Xs, Ys) parameterization
Algorithm n n n The Algorithm divides the surface patch in object space. At the same time , executes subdivision in texture space. Patch subdivision proceeds until it ends in single pixel. After it reached this point, Subdivision process terminates. The required texture value for each pixel is obtained from texture domain.
Difficulties n Two difficulties 1. 2. Inventing suitable surface parameterization Anti-aliasing.
Types of Texture Mapping n Two Types 1. 2. Forward texture mapping computing 3 D positions of the texture points and then projecting them onto the image plane. Inverse texture mapping selecting every pixel in the image plane and finding what point of the texture plane is projected there.
Drawbacks n Forward Texture mapping : Adjacent texture points may project onto non adjacent image points, thus creating a non colored area.
Drawbacks Inverse Texture Mapping : Aliasing would appear, if sampling the texture map is done at a frequency higher than its Nyquist rate : the minimum theoretical sampling rate. n
Polygon Mesh Texture Mapping n n It is also called Two-part texture mapping Introduced by Bier and Sloan Year 1986. The texture is mapped onto an intermediate surface before being mapped onto the object
How this Method Works Step 1 : mapping from two-dimensional texture space – simple three dimensional intermediate surface. e. g. : cylinder , sphere. T(u, v) T’(xi, yi, zi) This is know is S-mapping. n
Mapping to sphere or cylinder n n Scylinder : : ( , h) (u, v) = (r/c( - o), 1/d(h-ho)) Ssphere : : ( , ) (u, v) = (2 q/1+(1+p 2+q 2)1/2, (2 q/1+(1+p 2+q 2)1/2 ) P=tan( )cos( ) q= tan( )sin( )
O-mapping n Step 2 : Mapping from 3 -dimensional texture pattern onto object surface. T’(xi, yi, zi) O(xw, yw, zw) This is know as O-mapping.
Map to object surface n There are four possible ways 1. The intersection of the reflected view ray with intermediate surface (xi, yi, zi) View point (xw, yw, zw) Intermediate surface
Map to object surface(Contd. . ) 2. The intersection of the surface normal at (x, y, z) with the intermediate surface. (xi, yi, zi) (xw, yw, zw) Intermediate surface
Map to object surface(Contd. . ) 3. The intersection of a line through (x, y, z) and object centroid with intermediate surface. (xw, yw, zw) (xi, yi, zi) Intermediate surface
Map to object surface(Contd. . ) 4. The intersection of line from (x, y, z) to T’ whose orientation is given by surface normal at (xi, yi, zi) (xw, yw, zw) Intermediate surface
Applications
Molecular Graphics n Isocontouring of the hydrophobic potential on the solvent-accessible surface of Gramicidin A
Molecular Graphics n Solvent-accessible surface of ethanol, color coded against the electrostatic potential, using the traditional color coding (left) and using texture mapping (right).
Molecular Graphics n The 13, 767 spheres of a hydrated phospholipid bilayer (DLPE), part of a cell membrane can be rotated in real time.
Crash Simulations
Wire Frame Mapping
Force tube
Drawback n Major draw back is the image quality. Usually for high quality images Ray Tracing is used.
References n n n Alan Watt, 3 D Computer graphics. Addison – Wesley 1993. Fredrick M Weinhaus, Venkat Devarajan, Texture mapping 3 D models of real-world scenes. ACM computing survey , Volume 29 1997. James F. Blinn and Martin E. Newel, Texture and Reflection in computer generated images. ACM computing survey.
References (Contd. . ) n n n http: //www. csustan. edu/~rsc/CS 3600 F 00/ Texture. Mapping. pdf http: //www. sgi. com/grafica/texmap/index. ht ml http: //www-2. cs. cmu. edu/~ph/texsurv. pdf
- Slides: 29