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

Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

1

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

Page 2: Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

2

Planar Reflections

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

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

Just like shadows…..

Good BadGood Bad

Page 3: Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

3

Page 4: Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

4

Page 5: Mirror is XY plane at some Mirror is XY plane at some ––z ...cs5610/lectures/PlanarReflections2015.pdfMirror can have color, texture, lighting, etc Stencil: Draw modulated by reflection

5

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)

Demo