mgsx-dev/gdx-gltf

Capturing scene displays only the skybox via FBO

ronjunevaldoz opened this issue · 1 comments

How to properly capture the whole scene FBO using scene manager?

Example fbo capturing

// capture reflection
sceneManager.renderShadows()
reflectionFbo.begin()
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT or GL20.GL_DEPTH_BUFFER_BIT)
sceneManager.renderColors()
reflectionFbo.end()

Actual screenshot of fbo

image

Hi, it looks like your framebuffer doesn't have depth buffer, maybe you forgot to set it during its creation.

For questions and help, please use discord server instead : https://libgdx.com/community/