09-18-2004, 11:45 PM | #1 (permalink) |
Junkie
|
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? |
09-20-2004, 09:46 AM | #2 (permalink) |
Upright
Location: Salt Lake City
|
Yes. If you want dynamic cube textures, you render each face and save off the texture.
NOTE: You could probably get away with reusing the cube for multiple frames. Maybe even rendering only one side each frame cycling through which side is rendered each frame, and reusing the other 5. |
Tags |
cube, dynamic, map, opengl |
|
|