mgsx-dev/gdx-gltf

Frustum culling renderables

krojew opened this issue · 3 comments

SceneManager currently seems to render everything - it would be great if it checked which objects are in the frustum (for shadows too).

hi, sorry for the delay.. the thing is some models may have animations, some other could be dynamic, so it's not possible to have that information. It's user code responsibility to perform culling depending on their scenes.

@mgsx-dev that's understandable, but at the moment, there's no way to do even that - there's simply no API which would allow culling renderables. SceneManager simply renders everything, every time.

@krojew actually you can by using sceneManager.getRenderableProviders and manage this list yourself, or by implementing your own RenderableProvider (with culling).
SceneManager is well suited for basic stuff, and for beginners, so if you have more complex handling and features, i suggest you to implement your own.