This demo uses the EXT_framebuffer_object extension to render four reflective spheres (this can be easily extended to other objects). For each sphere a cubemap is generated containing the image which is seen on the corresponding sphere. For older graphics cards or drivers which don’t support the extension yet, a compatibility code-path using texture-copy-operations is supplied. The complete source code of the demo and the framework is available