Presentation is loading. Please wait.

Presentation is loading. Please wait.

ENVIRONMENT MAPPING. Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel.

Similar presentations


Presentation on theme: "ENVIRONMENT MAPPING. Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel."— Presentation transcript:

1 ENVIRONMENT MAPPING

2 Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel Term Environment mapped bump mapping Environment mapping with OpenGL

3 Kriglstein, WallnerEnvironment mapping3 What is environment mapping?

4 Kriglstein, WallnerEnvironment mapping4 What is environment mapping? Developed by Blinn and Newell (1976) Reflecting the surroundings on an object Describes the incoming or outgoing light Objects can not reflect themselves Another problem is distortion Cube mapping, spherical mapping, parabolic mapping

5 Kriglstein, WallnerEnvironment mapping5 What is environment mapping?

6 Kriglstein, WallnerEnvironment mapping6 Parameterization Directions Texture coordinates

7 Kriglstein, WallnerEnvironment mapping7 Parameterization No recreation of the map for every frame Easy creation of the map Easy calculation of texture coordinates

8 Kriglstein, WallnerEnvironment mapping8 Parameterization Spherical Cubic Parabolic

9 Kriglstein, WallnerEnvironment mapping9 Sphere Maps

10 Kriglstein, WallnerEnvironment mapping10 Sphere Maps

11 Kriglstein, WallnerEnvironment mapping11 Sphere Maps

12 Kriglstein, WallnerEnvironment mapping12 Sphere Maps

13 Kriglstein, WallnerEnvironment mapping13 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene

14 Kriglstein, WallnerEnvironment mapping14 Sphere Maps

15 Kriglstein, WallnerEnvironment mapping15 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene

16 Kriglstein, WallnerEnvironment mapping16 Parameterization Spherical Cubic Parabolic

17 Kriglstein, WallnerEnvironment mapping17 Cube Maps Advantages No warping step required Viewpoint independent

18 Kriglstein, WallnerEnvironment mapping18 Cube Maps

19 Kriglstein, WallnerEnvironment mapping19 Cube Maps

20 Kriglstein, WallnerEnvironment mapping20 Cube Maps

21 Kriglstein, WallnerEnvironment mapping21 Parameterization Spherical Cubic Parabolic

22 Kriglstein, WallnerEnvironment mapping22 Parabolic Maps

23 Kriglstein, WallnerEnvironment mapping23 Phong Model Linear combination of 3 components: Diffuse Ambient Specular

24 Kriglstein, WallnerEnvironment mapping24 Phong Model

25 Kriglstein, WallnerEnvironment mapping25 Phong Model

26 Kriglstein, WallnerEnvironment mapping26 Fresnel Term

27 Kriglstein, WallnerEnvironment mapping27 Fresnel Term Reflectivity of a material depending on it`s optical density and angle of the incoming light. For metallic surfaces the incoming illumination = outgoing illumination. For non-metallic surfaces the angle of incoming light is important.

28 Kriglstein, WallnerEnvironment mapping28 Fresnel Term

29 Kriglstein, WallnerEnvironment mapping29 Fresnel Term

30 Kriglstein, WallnerEnvironment mapping30 Environment mapped bump mapping (EMBM) Objects get more details Is a possibility to represent plastically objects Three different textures

31 Kriglstein, WallnerEnvironment mapping31 Three different textures 1.Base texture 2.Bump map 3.Environment map

32 Kriglstein, WallnerEnvironment mapping32 Environment mapped bump mapping (EMBM)

33 Kriglstein, WallnerEnvironment mapping33 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping

34 Kriglstein, WallnerEnvironment mapping34 Bump mapping with a light map

35 Kriglstein, WallnerEnvironment mapping35 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping

36 Kriglstein, WallnerEnvironment mapping36 Real environmental bump mapping

37 Kriglstein, WallnerEnvironment mapping37 Environment mapped bump mapping (EMBM) Same effects with cube environment maps possible Makes environment mapping possible in all directions Non-cube environment mapped bump mapping is limited to few directions

38 Kriglstein, WallnerEnvironment mapping38 OpenGL sphere mapping Four steps: Create texture Define texture generation Enable texture coordinate generation Draw object

39 Kriglstein, WallnerEnvironment mapping39 OpenGL Cube mapping New extension Ext_texture_cube_map Six images Quadratic images glCopySubTexImage2D

40 Kriglstein, WallnerEnvironment mapping40 The End Thank you, for your attention !!


Download ppt "ENVIRONMENT MAPPING. Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel."

Similar presentations


Ads by Google