vlj / YAGF

Yet Another GL Framework
Other
15 stars 5 forks source link

Incomplete framebuffer in tressfx demo #1

Closed Neill3d closed 7 years ago

Neill3d commented 9 years ago

I was trying to run a tressfx demo and on startup I have a message about incomplete framebuffer. File - Common.cpp, line 303 HairSMFBO = new GLRTTSet({ HairShadowMapTexture }, HairShadowMapDepth, 640, 640); Internaly GLRTTSet uses stencil depth format, but hair shadow map depth is depth_component_32f only. I've changed this line glTexStorage2D(GL_TEXTURE_2D, 1, GL_DEPTH_COMPONENT32F, 640, 640); into this one - glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, 640, 480, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, NULL); And that helps.

vlj commented 9 years ago

Thank for reporting, what is you video card ? I don't know which brand supports what in depth stencil format.

Neill3d commented 9 years ago

I have GF 690 GTX, and finaly I couldn't run a demo. Something with hair shadows shader, I will try to figure out.

vlj commented 7 years ago

I dropped OpenGL codepath in favor of a Vulkan one.