ENVIRONMENT MAPPING
Kriglstein, WallnerEnvironment mapping2 INTRODUCTION What is environment mapping? Parameterization Prefiltering & Phong Model Fresnel Term Environment mapped bump mapping Environment mapping with OpenGL
Kriglstein, WallnerEnvironment mapping3 What is environment mapping?
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
Kriglstein, WallnerEnvironment mapping5 What is environment mapping?
Kriglstein, WallnerEnvironment mapping6 Parameterization Directions Texture coordinates
Kriglstein, WallnerEnvironment mapping7 Parameterization No recreation of the map for every frame Easy creation of the map Easy calculation of texture coordinates
Kriglstein, WallnerEnvironment mapping8 Parameterization Spherical Cubic Parabolic
Kriglstein, WallnerEnvironment mapping9 Sphere Maps
Kriglstein, WallnerEnvironment mapping10 Sphere Maps
Kriglstein, WallnerEnvironment mapping11 Sphere Maps
Kriglstein, WallnerEnvironment mapping12 Sphere Maps
Kriglstein, WallnerEnvironment mapping13 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene
Kriglstein, WallnerEnvironment mapping14 Sphere Maps
Kriglstein, WallnerEnvironment mapping15 Sphere Maps Disadvantages Only suitable for original viewing direction Doesn´t reflect changes in the scene
Kriglstein, WallnerEnvironment mapping16 Parameterization Spherical Cubic Parabolic
Kriglstein, WallnerEnvironment mapping17 Cube Maps Advantages No warping step required Viewpoint independent
Kriglstein, WallnerEnvironment mapping18 Cube Maps
Kriglstein, WallnerEnvironment mapping19 Cube Maps
Kriglstein, WallnerEnvironment mapping20 Cube Maps
Kriglstein, WallnerEnvironment mapping21 Parameterization Spherical Cubic Parabolic
Kriglstein, WallnerEnvironment mapping22 Parabolic Maps
Kriglstein, WallnerEnvironment mapping23 Phong Model Linear combination of 3 components: Diffuse Ambient Specular
Kriglstein, WallnerEnvironment mapping24 Phong Model
Kriglstein, WallnerEnvironment mapping25 Phong Model
Kriglstein, WallnerEnvironment mapping26 Fresnel Term
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.
Kriglstein, WallnerEnvironment mapping28 Fresnel Term
Kriglstein, WallnerEnvironment mapping29 Fresnel Term
Kriglstein, WallnerEnvironment mapping30 Environment mapped bump mapping (EMBM) Objects get more details Is a possibility to represent plastically objects Three different textures
Kriglstein, WallnerEnvironment mapping31 Three different textures 1.Base texture 2.Bump map 3.Environment map
Kriglstein, WallnerEnvironment mapping32 Environment mapped bump mapping (EMBM)
Kriglstein, WallnerEnvironment mapping33 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping
Kriglstein, WallnerEnvironment mapping34 Bump mapping with a light map
Kriglstein, WallnerEnvironment mapping35 Environment mapped bump mapping (EMBM) Bump mapping with a light map Real environmental bump mapping
Kriglstein, WallnerEnvironment mapping36 Real environmental bump mapping
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
Kriglstein, WallnerEnvironment mapping38 OpenGL sphere mapping Four steps: Create texture Define texture generation Enable texture coordinate generation Draw object
Kriglstein, WallnerEnvironment mapping39 OpenGL Cube mapping New extension Ext_texture_cube_map Six images Quadratic images glCopySubTexImage2D
Kriglstein, WallnerEnvironment mapping40 The End Thank you, for your attention !!