texture mapping presented by potluri,kiran. introduction texture : a detailed pattern that is...

29
Texture Mapping Presented by POTLURI,KIRAN

Upload: derek-anthony

Post on 23-Dec-2015

231 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Texture Mapping

Presented byPOTLURI,KIRAN

Page 2: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Introduction 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.

Page 3: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Texture Mapped on to Tea Pot

Page 4: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Texture Mapped on to Tea Pot

Page 5: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Introduction (contd ..) 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.

Page 6: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

How is texture mapping done

Two Dimensional Texture Mapping ::

TextureSpaceT(u,v)

ObjectSpace(x,y,z)

ScreenSpace

(Xs,Ys)

surface

parameterization

Projection

Page 7: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Algorithm 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.

Page 8: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Difficulties Two difficulties

1. Inventing suitable surface parameterization

2. Anti-aliasing.

Page 9: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Types of Texture Mapping Two Types

1. Forward texture mappingcomputing 3D positions of

the texture points and then projecting them onto the image plane.

2. Inverse texture mappingselecting every pixel in the

image plane and finding what point of the texture plane is projected there.

Page 10: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Drawbacks Forward Texture mapping :

Adjacent texture points may project onto non adjacent image points, thus creating a non colored area .

Page 11: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Drawbacks Inverse Texture Mapping :

Aliasing would appear, if sampling the texture map is done at a frequency higher than its Nyquist rate.

Nyquist rate :the minimum theoretical sampling rate .

Page 12: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Polygon Mesh Texture Mapping 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

Page 13: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

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 .

Page 14: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Mapping to sphere or cylinder Scylinder :: (,h) (u,v)

= (r/c(-o),1/d(h-ho))

Ssphere :: (,) (u,v)

= (2q/1+(1+p2+q2)1/2, (2q/1+(1+p2+q2)1/2 )P=tan()cos() q= tan()sin()

Page 15: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

O-mapping 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.

Page 16: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Map to object surface There are four possible ways

1. The intersection of the reflected view ray with intermediate surface

View point Intermediate surface

(xi,yi,zi)

(xw,yw,zw)

Page 17: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Map to object surface(Contd..)

2 . The intersection of the surface normal at (x,y,z) with the intermediate surface.

Intermediate surface

(xi,yi,zi)

(xw,yw,zw)

Page 18: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Map to object surface(Contd..)

3 .The intersection of a line through (x,y,z) and object centroid with intermediate surface.

Intermediate surface

(xi,yi,zi)(xw,yw,zw)

Page 19: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

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)

Intermediate surface

(xi,yi,zi)

(xw,yw,zw)

Page 20: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Applications

Page 21: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Molecular Graphics Isocontouring of

the hydrophobic potential on the solvent-accessible surface of Gramicidin A

Page 22: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Molecular Graphics Solvent-accessible

surface of ethanol, color coded against the electrostatic potential, using the traditional color coding (left) and using texture mapping (right).

Page 23: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Molecular Graphics The 13,767

spheres of a hydrated phospholipid bilayer (DLPE), part of a cell membrane can be rotated in real time.

Page 24: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Crash Simulations

Page 25: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Wire Frame Mapping

Page 26: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Force tube

Page 27: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

Drawback Major draw back is the image

quality . Usually for high quality images Ray Tracing is used .

Page 28: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

References Alan Watt, 3D Computer graphics . Addison –

Wesley 1993. Fredrick M Weinhaus, Venkat

Devarajan,Texture mapping 3D 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.

Page 29: Texture Mapping Presented by POTLURI,KIRAN. Introduction Texture : A detailed pattern that is repeated many times to tile the plane. Texture mapping is

References (Contd ..)  http://www.cs.csustan.edu/~rsc/

CS3600F00/TextureMapping.pdf http://www.sgi.com/grafica/texmap/

index.html http://www-2.cs.cmu.edu/~ph/

texsurv.pdf