I want to create a hidden window and use it to draw a temporary image, for projected object shadows. I need a separate context, because I want the object shadows to be antialiased, regardless of what the main viewport antialias setting is. The model is drawn from the angle of the light, then I use glreadpixels to copy the resulting image into a texture, which then gets projected onto walls and floors.
Should this be done with an FBO? If so, how do I start? The examples I have read aren’t exactly straightforward.