PDA

View Full Version : Planar Reflections not working



niotxx
05-09-2005, 08:28 PM
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

CWiC
05-11-2005, 07:22 AM
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?

dorbie
05-11-2005, 05:57 PM
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.