Jump to content
  • Advertisement
Sign in to follow this  
Quat

Updating Cube Maps

This topic is 1828 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

I am working on a 3d editor type program.  I use local cube maps for static reflections.  Because this is an editor, users can move otherwise static objects around.  This means the local cube maps need to be updated.  However, if many local cube maps are affected by moving a large object, it would take a bit of time to update all the cube maps.  My idea was to have a "GraphicsWorkQueue" where tasks would be added to (like update cube map).  My rendering engine would then proceed to do one of these tasks per frame.  This might create a temporary drop in frame rate, but not a complete stall so the program will remain responsive.  Does this sound reasonable?  Or is there a better way people handle this issue?

Share this post


Link to post
Share on other sites
Advertisement

It doesn't sound unreasonable to me. We just make the artists press a button to re-bake probes, and that works out well enough. For us baking the probes is a pretty heavy operation and our overall framerate inside the editor isn't that great to begin with, so I don't think background updating approach would work out too well for us.

Share this post


Link to post
Share on other sites
As MJP says it sounds reasonable, however you might want to consider the granularity of the task - instead of 'update cube map' you might want to have 6 'update texture' commands which just happen to render to cube map faces, that way you can spread the work over a few frames without having to take the hit in one go.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!