Render to texture - dynamic cube map generation

Started by
3 comments, last by phong666 21 years, 2 months ago
hi, I want to generate my cube map dynamically every frame. To save render time, it might be good to render the 6 cube faces directly to the textures, am I right? Does anyone know how to render directly to cube map textures? Thanks
Advertisement
There''s the ARB_pbuffer and ARB_render_texture extensions, if your video card supports them. If not then you''re stuck with rendering the scene first, then copying it to the texture.
-Ostsol
Check out some of the stuff over @ nvidia''s site. Especially their Per Pixel attenuation demo, they have an entire class divoted to cube mapping

~Main

==
Colt "MainRoach" McAnlis
Programmer
www.badheat.com/sinewave
==Colt "MainRoach" McAnlisGraphics Engineer - http://mainroach.blogspot.com
Do you mean the "Per-pixel Attenuation in OpenGL" sample?

This example loads the cube map textures from disc, but I want render them in real-time directly to video ram.
I need a render to texture code sample, I think.

Do you know where to get one?
opengl.nutty.org

"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

This topic is closed to new replies.

Advertisement