PDA

View Full Version : Dynamic Cube Maps



M/\dm/\n
11-04-2002, 02:51 AM
I'd like to include dynamic cube maps in my project. As far as I understand I need to create cm textures dinamicaly. So I must call 6x [gluLookAt(...), glCopyPixels(...)] and then use these 6 textures as my cm. And finally draw the object using created cm.
Is this the right way? How many passes that'll take? Maybe there is better way?

yakuza
11-04-2002, 08:40 AM
Here's a tutorial which should help you. It requires some OpenGL extensions, but should run on most Radeon and Geforce, I think.
http://opengl.nutty.org/extensions/index.html

The tutorial at the bottom is the one you're looking for.

Hope that helps!

M/\dm/\n
11-04-2002, 11:49 PM
Thanks, now I got it http://www.opengl.org/discussion_boards/ubb/smile.gif