Archived

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

mictian

render to cubemap textures?

Recommended Posts

is it feasible to render to five or six textres each frame, then pass these to opengl for cubemapping? i intend to make a demo in which some particles are reflected in some metaballs, and hence my plan was to render the particles to six textures, from six different angles, then use these for cubemapping the metaball

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Depends on what your aiming for.
A tip is to update the cubemaps every second frame or so. The result will usually be satisfying anyway.

/__fold

Share this post


Link to post
Share on other sites
You could also try updating just 2 or 3 of the cubemap faces every frame instead of 6 every other frame. Helps to keep frame rate more consistent and avoid big spikes if you try to update the whole cubemap in one go.

Cheers

Share this post


Link to post
Share on other sites
Rendring one CM per frame will not kill your performance. Just keep resolution small enough and you''ll be fine.

_MrC_ : this might be a good idea but you can get into alot of trouble since you need to keep history of just about everything in scene for a few frames. Is it realy worth it?

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites
I don''t bother keeping any sort of history, I just render using the current state of the scene into 2 faces of the cubemap every frame. Obviously there are going to be inaccuries at the edges where different frames meet up on the cubemap but nobody has noticed yet.

Cheers

Share this post


Link to post
Share on other sites