Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

phong666

Render to texture - dynamic cube map generation

This topic is 5674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!