Mirror is XY plane at some –z point?cs5610/lectures/Planar reflections 2009.pdfCould draw mirror...

Preview:

Citation preview

1

2

3

Mirror is XY plane at some Mirror is XY plane at some ––z point?z point?

4

5

Planar Reflections

Dinosaur is reflected by the planar floor.Dinosaur is reflected by the planar floor.Easy hack, draw Easy hack, draw dinodino twice, second time hastwice, second time hasglScalef(1,glScalef(1,--1,1) to reflect through the floor1,1) to reflect through the floor

But what if itBut what if it’’s not the XY plane?s not the XY plane?

6

Just like shadows…..

Good BadGood Bad

7

8

9

10

11

12

13

14

Recursive Planar Mirrors

Basic idea of planar reflections can be appliedBasic idea of planar reflections can be appliedrecursively. Requires more stencil bits.recursively. Requires more stencil bits.

The Trick (bird’s eye view)

15

Demo