Environemtn Map

This is what is the aim, render a scene and then take the images from the scene, and store them as textures, and then draw objects and environment map the stored textured, the second part is okay.

for the first part, i have three questions,

  1. How do we store a scene, say point camera in +x dir and then we have a image on the screen, how do we store this as a texture, it would be great if you can give me the syntax.

  2. Once we store is as the texture what are the modes that we trigger for it to generate a linear map.

Thankyou for your time,
Regards

you can either render and use readpixels to actually ‘save’ the image or somthing like copytexsubimage, look at using pbuffers etc.