???? ?? = Bump Map - PowerPoint PPT Presentation

About This Presentation
Title:

???? ?? = Bump Map

Description:

Title: PowerPoint Last modified by: red Document presentation format: Other titles: Times New Roman Verdana M ... – PowerPoint PPT presentation

Number of Views:174
Avg rating:3.0/5.0
Slides: 31
Provided by: webHally81
Category:
Tags: bump | map | terminator

less

Transcript and Presenter's Notes

Title: ???? ?? = Bump Map


1
11?. ???
  • ????
  • ???? ??? ??? ????.
  • ?? ???? ??? ?? ??? ????.
  • ????? ??? ?? ???? ??? ?? ??? ????.
  • ????? ??? ? ?? ?? ???? ??? ?? ??? ????.
  • ??? ???? ?????? ???? ??? ??-????? ??? ????.
  • ??? ??? ????? ????.

2
??? ?
  • ??? ??
  • ???? ????? ??? ??? ?????? ?? ?? ??
  • ???? ?? Bump Map
  • ??? ?? ??, ?? ???? ????? ???? ??

3
??? ?
  • ??? ??
  • ?? ?? ?, ?? ???? ??
  • ?? ?? ??? ???
  • ?? 2?? ??? ?? ?? ??? ??
  • ???(Texture, Texture Image, Texture Map)

4
??? ?? ?
  • ??? ??? ??
  • ??? ??(Light Mapping)
  • ???? ??? ???? ?? ???? ?? ??? ???? ???? ??? ??
    ???? ??.

5
??? ?? ?
  • ?? ??(Environmental Mapping)
  • ?? ?? ??? ?? ???? ??
  • ???? ???? ??

6
??? ??? ??
  • ?? ??
  • ?? ?????? ?? ?????
  • ??? ???? ??

7
??
  • Texel(Texture Element)
  • ??? ??? ????
  • ??? ????? (R, G, B, A) ??
  • ? 6?5 ??? 2?? ??? ??. ??? ??? ??? ??? ??.
  • ??? ?? (s, t) ??? ??? 2?? ??? ??? (x, y, z) ???
    ??? 3?? ????? ??

8
???????? ??? ??
  • ??? ????

9
?? ??
  • ????? ????
  • ???? ?? ???? ??
  • ????? ????
  • ?? ??? ???? ???? ?? ??

10
??? ??? ??
  • ???? ??? ????? ??? ???
  • ??? ???? ??? ???? ??? ???

11
???? ??
  • ? ??(???? ?? ??, ??? ????)

12
??? ??
  • 2 ?? ??(2-Stage Mapping)
  • ??? ????? ??? ? ?? ?
  • S ??(S Mapping)??? ???? ???, ???, ?? ? ???(??,
    Intermediate Surface)? ??.
  • S ??? ? ??? ???

13
??? ??
  • O ??
  • ??? ??? ??? ?? ???? ???? ??.
  • ???, ???, ?? ???

14
??? ??
  • O ??? ??
  • ??? ????, ?? ??, ??? ????, ?? ????

15
????(Environmental Mapping)
  • ?? ??(Specular Reflection)? ??? ??? ? ?? ??, ??
    ??(Reflective Mapping). Ex. Terminator II
  • 2?? ?? ??
  • O ???? ?? ????? ??
  • ?? ??? ?? ?? ?? ??

16
????(Environmental Mapping)
  • ?? ???? ?
  • ???? ??? ???? ??
  • 180? ????? ??? ???

17
?????
  • ??? ??
  • ??? ??(Non-Linear Mapping) ?? ???? ??
    ???(Curvilinear Quadrilateral)??
  • ? ???(Point Sampling)? ?? ????? ?????

18
????? ????
  • ????(Magnification)
  • ?? ??? ? ???
  • ????(Minification)
  • ?? ?? ??? ? ???
  • ? ?? ?? ????? ????

19
??????? ??? ????
  • ????? ?? ??
  • ?? ???? ??? ? p? ????? ??
  • ??? ??? ???? ???? ??
  • ??? ???? ???

20
? ???? ??? ????
21
??????? ??(MipMap)
  • ????? ?? ?? ? ??? ?? ??? ???
  • MIP Mapping Multum in Parvo, Many Things in a
    Small Place
  • ??? ?? ???? ???? ??? ?? ??(R, G, B ?)
  • ?? ???(Pre-Filtering), ???? ???(Multi-Resolution
    Texture)

22
?? ??
  • ???? ?? ??? ??
  • 1 ??? 1 ??? ?? Map 1
  • 1 ??? 4 ??? ?? Map 2
  • ?? ? ??? ?? ?????? ??-?????? ??.

23
3?? ????
  • ?? ????
  • ?? ???? ??? ???? ????.
  • ????? ????? ??? ? ??.
  • 3?? ???? (Tri-linear Interpolation)
  • 1 ??? 2 ??? ??
  • Map 1?  Map 2? ???? ??? ?? ??
  • ??? ??? ????? ??

24
??????? ??
  • ? ???? ??? ?? ? ???

25
??????? ??
  • ??? ??? ? ???? ??? ????

26
??? ??? ?? glTexImage2D( )
  • ???? ??? ???? ?? ???? ??? ???(Texture Memory,
    Texture Buffer)? ????? ??
  • ?? ????? ??

27
??? ??? ?? ?? ??
  • glBegin(GL_POLYGON)
  •     glNormal3f(0.0, 0.0, 1.0)
  •     glTexCoord2f(0.2, 0.8)                  ???
    ?? a?
  •     glVertex3f(7.5, 10.5, 0.0)               ??
    ?? A? ??
  •     glNormal3f(0.0, 0.0, 1.0)
  •     glTexCoord2f(0.4, 0.2)                 
    ??? ?? b?
  •     glVertex3f(0.0, 3.8, 0.0)                 ??
    ?? B? ??
  •     glNormal3f(0.0, 0.0, 1.0)
  •     glTexCoord2f(0.8, 0.4)                  ???
    ?? c?
  •     glVertex3f(12.0, 0.0, 0.0)               ??
    ?? C? ??
  • glEnd( )

28
??? ??? ?? ?? ??
  • void glTexGenifdv(GLenum coord, GLenum pname,
    TYPE param)
  • ?????? ???? ??

29
?? ??
  • ????, ???(180?), ???(360)?
  • ???(360?)

30
GL_REPEAT, GL_CLAMP
Write a Comment
User Comments (0)
About PowerShow.com