Sign in to follow this  

Hardware Depth Cube FBO's

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

Hey Everyone,

I've been reading throughout gd.net and Google about hardware depth cubes (rendered from an FBO) and how they are both hardware supported (or not) depending on which threads I read, and which GL/Shader/Extensions versions I am targeting. I'm targeting GL2.0 (GLSL 120) at the moment, and wondering if that's too low hardware requirement for them to be typically supported?

 

I'm trying to gather metrics at the moment to figure out if it's worth switching to GL3 (most likely 3.2), or not. I'm also wondering if it's just the depth texture lookup that's not supported or the sheer rendering to each of the six cube faces that's not supported for depth cubes? This is all leading up to getting omni-directional shadow mapping to work (ideally on an NVidia 8800 min-spec system), so any thoughts or links to papers/examples are appreciated.

 

Thanks!

 

Share this post


Link to post
Share on other sites

Two thoughts:

1. You can simulate a cube map, just render your 6 sides on a single shadowmap and calculate the offset before accessing it, at least as fallback solution.

2. If you need performance, take a look at dual paraboloid shadow mapping (rendering the scene 2x vs 6x).

Share this post


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