[0918 박민수] 범프 매핑

Click here to load reader

Upload: moonlightms

Post on 29-Jun-2015

506 views

Category:

Education


4 download

DESCRIPTION

Bump mapping's basic by MSPark( Devrookie )

TRANSCRIPT

1

( bump mapping )2010/09/18Devrookie ( ) ? Q & A ? : 1978 blinn ( ) .

. 3D . 2D ( ) .

3D .

. .

. . . .

.

.

. .

( ) .

.

. . .

-> !( )R , G , B X , Y , Z . R , G , B X , Y , Z .

-> -> -> . .

. . Offset Vector Bump MapHeight Field Bump MapNormal Map

Emboss Bump MappingDot Product Bump MappingEnvironment Map Bump Mapping

Offset Vector Bump MapHeight Field Bump MapNormal Map

Emboss Bump MappingDot Product Bump MappingEnvironment Map Bump Mapping

.

.

0~255 . ( . )

.

UV .

D3DXComputeNormalMap() .

x , y 1 .

.

UV U X V Y Z . ...

. X , Y , Z

?

: .

. ( . )

.( . )

: .

.

, .

.

.

.

NVDIA Photoshop Normal Map Plugin .

. , , .

T : Tangent VectorB : Binormal VectorN : Normal Vector 3 .

X -> U , Y -> V .

P0 , P1 , P2 .

UV( u0 , v0 ) , ( u1 , v1 ) , ( u2 , v2 ) .

Q UV( u , v ) .

.

.

T , B .

.

D3DXComputeTangent() T = T (N T)NB = B (N B)N (T B)T/T2

36 , .

RGB .37

Real Time Rendering 2DirectX 9 http://allosha.tistory.com/category/3D%20%20/()http://www.gamasutra.com/view/feature/1515/messing_with_tangent_space.php?page=1http://www.terathon.com/code/tangent.htmlhttp://en.wikipedia.org/wiki/Gram-Schmidt

39