OpenGL Dynamic Cube Map
Anyone ever do a dynamic cube map to do enviornment mapping in openGL before? I'm curious how I would go about generating the cubemap textures. Do I render the scene once without my object I want to put the texture on then take 6 pictures (one on each axis fov 90). Then rerender the scene for actual drawing?
Also I know the function I need to use to get the textures from the frame buffer but how do I actually get the scene to write to the frame buffer so I can take the picture?
|