DOC

Using Texture Mapping Techniques to Simulate Lights and ...

By Walter Marshall,2014-06-12 17:27
10 views 0
Using Texture Mapping Techniques to Simulate Lights and ...Usin

    Light and Shadow Mapping

    Using Texture Mapping Techniques to Simulate Lights and Shadows in

    Real Time Computer Graphics

    Author: Tomasz Zaniewski

    November 2000

    1

    Light and Shadow Mapping

    Using Texture Mapping Techniques to

    Simulate Lights and Shadows in Real Time

    Computer Graphics

    Author: Tomasz Zaniewski

    Supervisor: Professor Shaun Bangay

    November 2000

    Submitted in partial fulfillment of the

    requirements for the Bachelor of

    Science (Honours) degree in the

    Department of Computer Science at

    Rhodes University.

    2

    Light and Shadow Mapping

    Acknowledgements Acknowledgements

    Firstly, I would like to thank my supervisor, Shaun Bangay, for his assistance in this project and for finding some serious bugs in my code.

    Secondly, I would also like to thank my parents, for giving me all the support that made it possible for me to engage in postgraduate studies.

    I would also like to than the Computer Science Department of Rhodes University for providing and giving access to all the resources necessary for completing the project.

    3

    Light and Shadow Mapping

    Table of contents Table of contents

    Chapter 1: Introductory Chapter ………………………………………………………………….1 1.1 Abstract….………………………………………………………………..………….1

    1.2 Development tools …………………………………………………………………………………2 1.3 Layout of document ...……………………………………………………………………………...2

    Chapter 2: Background to Lighting and Texture mapping…………………………………….4 2.1 Introduction………………………………………………………………………………………….4 2.2 Light………………………………………………………………………………………………….4 2.3 Shading………………………………………………………………………………………………7

    2.3.1 Flat shading……………………………………………………………………………...7

    2.3.2 Gouraud shading………………………………………………………………………..7

    2.3.3 Phong Shading…………………………………………………………………………..8 2.4 Texture Mapping…………………………………………………………………………………….8 2.5 Other mapping techniques…………………………………………………………………………10

    2.5.1 Affine Mapping…………………………………………………………………………..11

    2.5.2 Perspective texture mapping…………………………………………………………..11

    2.5.3 Bump Mapping…………………………………………………………………………..11

    2.5.4 Environment mapping…………………………………………………………………..11 2.6 Summary……………………………………………………………………………………………..12

    Chapter 3 Light Mapping: Background and Design……………………………………………..13 3.1 Introduction…………………………………………………………………………………………..13

    3.1.1 Problem statement………………………………………………………………………13 3.2 Introduction to light mapping ……………………………………………………………………….14 3.2.1 Why use light maps?………………………………………………………………………………15

    3.2.3 Static light mapping………………………………………………………………………16

    3.2.3.1 Disadvantages of using static light maps …………………………………22

    3.2.4 Dynamic light maps………………………………………………………………………22

    3.2.4.1 Disadvantages of using dynamic light maps………………………………23

    3.2.5 Three-dimensional light maps…………………………………………………………..23 3.3 Related work………………………………………………………………………………………….24

    3.3.1 The H-Test………………………………………………………………………………..24

    3.3.2 Generalization of the shading Model…………………………………………………..28 3.4 Design