As posted on Gamedev:
I've successfully implemented dynamic reflections in an OpenGL scene where I render the environment into a cubemap and then map onto an object. At first I had an issue where moving around the reflective object made the reflection map rotate towards the viewer, but plugging in the inverse modelview matrix in the first texture matrix seemed to fix that problem.
Then I decided to spice things up a bit by using GLSL to simulate a per-pixel reflection, things worked really well until I decided to rotate the reflective object a bit, that's when all hell broke loose: The reflection map seems to rotate by the same amount of the object instead of staying stationary, I tried multiplying few things by gl_TextureMatrix[0] but nothing seems to fix the said bug.

I'm posting my shaders code right here as well as links to the actual executables and the full source code with hope that someone out there can help me out.

PS: You can look into the Data/XML folder and check out the scenelayout.xml file that stores all the info describing the scene, you should be interested in the transforms affecting <Group name="ReflectiveGroup">

PS2: You can manually set shadersSupported to “false” at the end of “initialize” and look at how things are handled through the fixed OpenGL functionality.