Skip to main content
GameDev.net gamedev.net
🔒 Locked

Render to texture - dynamic cube map generation

Started by phong666 Feb 2, 2003 at 5:17 AM 3 replies 650+ views
Original Post
phong666
phong666
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
Ostsol
Ostsol
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
duhroach
duhroach
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
phong666
phong666
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?
davepermen
davepermen
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.