You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Scene instance returned by scene loaders are fairly generic. It contains both the scene structure and is responsible for rendering. This is a problem when handling scenes from different formats, but at least does a decent job at rendering any scene using generic shaders.
Improvements
The Scene class should ideally ONLY contain the scene tree with nodes, meshes, materials.
Keep the old rendering code intact in the Scene class to not break compatibility.
Should support different material classes with with a common base class. Each material should have the same common minimum set of properties that still allows for basic rendering regardless of material class. This way we for example expand material support for wavefront and PBR materials for GLTF2.
Move to separate SceneRenderer classes. Have a basic scene renderer what will render any scene and expand to specific ones for wavefront and PBR rendeing for GLTF2. These could take a scene as input and generate a list of scopes ready for rendering. Stick to UBOs and drop as many single uniform setters as possible.
Better support for bounding box data.
Ensure to provide a decent interface for users to extend and/or implement renderer.
The text was updated successfully, but these errors were encountered:
Currently the
Scene
instance returned by scene loaders are fairly generic. It contains both the scene structure and is responsible for rendering. This is a problem when handling scenes from different formats, but at least does a decent job at rendering any scene using generic shaders.Improvements
Scene
class should ideally ONLY contain the scene tree with nodes, meshes, materials.Scene
class to not break compatibility.SceneRenderer
classes. Have a basic scene renderer what will render any scene and expand to specific ones for wavefront and PBR rendeing for GLTF2. These could take a scene as input and generate a list of scopes ready for rendering. Stick to UBOs and drop as many single uniform setters as possible.The text was updated successfully, but these errors were encountered: