Planar Reflections not working

Hi guys,

I’m having an issue with my planar reflections. I’m trying to project a reflection of my objects onto a vertical mirror (i.e. an upright mirror). The code i’ve got from opengl.com does this fine for it being on a flat surface (floor reflection) but when i try to implement it via the algorithm of rotating and translating and enabling the stencil buffer, it loses the reflection all together. If anyone can help, I have code ready to email.

Thanks for any help,

  • niotxx

Why you need to “implement it via the algorithm of rotating and translating and enabling the stencil buffer” and not use code that work from this site?

There are ways to calculate the reflection matrix through the plane of the mirror. Apart from that everything should be the same as the floor reflection.